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

# Slack ウェブフック連携

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

<video autoPlay muted loop playsInline controls className="w-full rounded-xl" src="https://mintcdn.com/unboundedpioneering/6Vh4FdxxXeZyJfjA/images/integrations/webhook.slack.mp4?fit=max&auto=format&n=6Vh4FdxxXeZyJfjA&q=85&s=f24b17e39bfa244a3d5c1bfacc036e90" data-path="images/integrations/webhook.slack.mp4" />

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

## 前提条件

Slack ワークスペースで Incoming Webhook を作成し、Webhook URL を取得してください。

1. [Slack API](https://api.slack.com/apps) でアプリを作成（または既存アプリを使用）
2. **Incoming Webhooks** を有効化
3. **Add New Webhook to Workspace** から通知先チャンネルを選択
4. 生成された Webhook URL（`https://hooks.slack.com/...`）をコピー

## 設定

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

| 項目          | 説明                                                 |
| ----------- | -------------------------------------------------- |
| Webhook URL | Slack の Incoming Webhook URL（`hooks.slack.com` のみ） |

### イベント設定

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

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

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