> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connection Flow

> 次の図は、顧客が Connect AI Embed を使用して接続を設定する際の接続・認証フローを示しています。

<Frame>
  <img src="https://mintcdn.com/cdata/2PJ77blgDEduAzWi/ja/images/powered_by_cdata_connection_flow.svg?fit=max&auto=format&n=2PJ77blgDEduAzWi&q=85&s=4fce4e96f9a103e3390d9c32ed6013c3" alt="" width="867" height="1068" data-path="ja/images/powered_by_cdata_connection_flow.svg" />
</Frame>

クライアントアカウントから Connect AI データソースへのコネクションを作成するには、次のステップが必要です：

<Steps>
  <Step>
    顧客のアカウントのエンドユーザーが、Web ページで **Add Connection** をクリックします。
  </Step>

  <Step>
    アプリケーションは、秘密鍵で署名した JSON Web Token (JWT) を作成し、Connect AI Embed の Create Connection API にリクエストを送信します。
  </Step>

  <Step>
    Connect AI Embed は、アプリケーションにリダイレクト URL を返します。
  </Step>

  <Step>
    エンドユーザーは Connect AI の **Add Connection** ページにリダイレクトされます。
  </Step>

  <Step>
    エンドユーザーは Salesforce などの特定のデータコネクタの接続情報を入力し、接続をテストして保存します。
  </Step>

  <Step>
    Connect AI Embed が [Create Connection](/ja/API/Connection-API) を呼び出します。
  </Step>

  <Step>
    Create Connection は **Add Connection** ページに成功または失敗を返します。
  </Step>

  <Step>
    エンドユーザーが **Close** ボタンをクリックします。Connect AI Embed はコネクション ID を付けて自社の Web ページにリダイレクトします。
  </Step>

  <Step>
    自社の Web ページにエンドユーザーのコネクション一覧が表示されます。
  </Step>
</Steps>
