> ## 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.

# Discord ウェブフック連携

> Discord ウェブフックでセッション通知を受け取る設定方法

[Discord](https://discord.com) の Webhook を使って、セッションイベントの通知を Discord チャンネルに送信します。

## 前提条件

Discord サーバーで Webhook を作成し、Webhook URL を取得してください。

1. Discord サーバーの **サーバー設定** > **連携サービス** > **ウェブフック** を開く
2. **新しいウェブフック** を作成
3. 通知先チャンネルを選択
4. **ウェブフック URL をコピー**（`https://discord.com/api/webhooks/...`）

## 設定

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

| 項目          | 説明                                      |
| ----------- | --------------------------------------- |
| Webhook URL | Discord の Webhook URL（`discord.com` のみ） |

### イベント設定

イベントごとに通知の有効/無効とカスタムメッセージを設定できます。

| イベント                  | 説明              |
| --------------------- | --------------- |
| On Session Started    | セッション開始時に通知     |
| On Message Sent       | ユーザーメッセージ送信時に通知 |
| On Action Executed    | アクション実行時に通知     |
| On Session Summarized | セッション要約完了時に通知   |

各イベントで `message` フィールドにカスタムメッセージテンプレートを設定できます。
