每个功能都是一次 HTTP 调用。一份有类型的契约。
curl https://api.example.com/v1/bots/$BOT/messages \
-H "Authorization: Bearer $OPENBOT_TOKEN" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{"input":"帮我规划三天的罗马行程。","commandKey":"trip-1"}
JSON{
"executionId": "<executionId>",
"commandKey": "trip-1",
"sequence": 2,
"chat": "<chatId>",
"turn": "<turnId>"
}curl -N \
-H "Authorization: Bearer $OPENBOT_TOKEN" \
"https://api.example.com/v1/executions/$EXECUTION_ID/observe?afterSequence=0"@openbot-build/apiHTTP APITypeScriptOpenAPI把服务变成能力。
App 发布规范apps.example.com.well-known/ai-catalog.jsonmcp/calendar/server-cardmcp/calendar
{
"specVersion": "1.0",
"entries": [
{
"identifier": "urn:air:apps.example.com:mcp:calendar",
"type": "application/mcp-server-card+json",
"url": "https://apps.example.com/mcp/calendar/server-card"
}
]
}发现服务读取连接配置调用工具和界面
接入人们工作的地方。
SlackLarkTelegram
Channel
验证消息来源,识别发送者身份
Bot
处理任务
结果发回原来的讨论串
聊天渠道接入指南运行在你的基础设施上。
git clone https://github.com/openbot-build/openbot.git
cd openbot
devenv shell -- pnpm dev:setup
devenv shell -- pnpm dev快速开始