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

# Apollo.io 連携

> Apollo.io と連携してセッションデータを自動同期する方法

セッションデータを [Apollo.io](https://www.apollo.io) に自動送信します。セッション終了時に、訪問者のメールアドレスやセッション内容を Webhook 経由で Apollo.io に送信します。

## 前提条件

* Apollo.io アカウント

## Apollo.io 側の設定

### Webhook の作成

1. Apollo.io にログインし、Webhook の設定画面を開く
2. 新しい Webhook エンドポイントを作成
3. 表示される **Webhook URL** をコピー

## Turnint ダッシュボードでの設定

ダッシュボードの **インテグレーション** から新規作成し、タイプ「Apollo.io」を選択します。

| 項目          | 説明                      |
| ----------- | ----------------------- |
| Webhook URL | Apollo.io の Webhook URL |

## 送信されるデータ

セッション終了時に以下の JSON が Apollo.io に送信されます。

| フィールド         | 型              | 説明                                  |
| ------------- | -------------- | ----------------------------------- |
| `email`       | string         | セッション中に取得した訪問者のメールアドレス              |
| `sessionId`   | string         | セッション ID                            |
| `sessionLink` | string         | ダッシュボードのセッション詳細リンク                  |
| `agentId`     | string         | エージェント ID                           |
| `workspaceId` | string         | ワークスペース ID                          |
| `summary`     | string \| null | セッションの要約                            |
| `userContext` | object         | セッションに渡されたユーザーコンテキスト                |
| `messages`    | array          | セッション中のメッセージ一覧（`role` と `text` を含む） |
| `timestamp`   | string         | 送信日時（ISO 8601 形式）                   |

<Info>
  メールアドレスがセッションコンテキストに含まれない場合、データは送信されません。
</Info>
