-
Notifications
You must be signed in to change notification settings - Fork 1.5k
ja tags webhook
langbot-wiki-sync[bot] edited this page Jul 29, 2026
·
1 revision
Webhookを使用すると、ボットメッセージイベントを外部サービスに送信して処理できます。
- LangBot WebUIで、サイドバーの「API統合」をクリックします
- 「Webhooks」タブに切り替えます
- 「+」をクリックして新しいWebhookを作成します
- 以下を入力します:
- Name: Webhook識別子
- URL: イベントを受信するターゲットURL
- Description: オプション
- Status: 有効または無効
{
"uuid": "event-unique-id",
"event_type": "bot.person_message",
"data": {
"bot_uuid": "bot-uuid",
"adapter_name": "AdapterName",
"sender": {
"id": "user-id",
"name": "User Name"
},
"message": [
{
"type": "Plain",
"text": "Message content"
}
],
"timestamp": 1234567890
}
}{
"uuid": "event-unique-id",
"event_type": "bot.group_message",
"data": {
"bot_uuid": "bot-uuid",
"adapter_name": "AdapterName",
"group": {
"id": "group-id",
"name": "Group Name"
},
"sender": {
"id": "user-id",
"name": "User Name"
},
"message": [
{
"type": "Plain",
"text": "Message content"
}
],
"timestamp": 1234567890
}
}WebhookサービスはJSONを返す必要があります:
{
"status": "ok",
"skip_pipeline": false
}- status: 処理ステータス(「ok」を推奨)
-
skip_pipeline: LangBotパイプライン処理をスキップするかどうか
-
true: メッセージはパイプラインで続行されません -
false: メッセージは通常どおり続行されます
-
Tip
skip_pipelineを使用すると、メッセージ処理を完全に引き継ぐことができます。trueの場合、メッセージはWebhookサービスによってのみ処理され、LangBotのAI機能はトリガーされません。
dify-plugin-langbot-triggerプラグインを使用して、LangBotのWebhookイベントを受信し、Difyでワークフローを作成できます。
- Webhook URLはアクセス可能である必要があります
- リクエストタイムアウト: 15秒
- 失敗したリクエストは通常の処理に影響しません
- 複数のWebhookは並行して実行されます
-
skip_pipeline: trueを返すWebhookがある場合、パイプライン処理はスキップされます
Automatically synchronized from langbot-app/langbot-wiki.
简体中文
指南
开发者
- 插件开发
- 插件 SDK API
- 核心开发
API 参考
- Service API
English
Guides
Developers
-
Plugin Development
- Plugin Development Tutorial
- Completing Plugin Configuration Information
- Plugin Directory Structure
- Component Development
- Code Style Guide
- Migration Guide
- Publish Plugin
- Plugin SDK API
- Core Development
API Reference
- Service API