Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(bots): 补齐飞书卡片回调配置指引
xuzini-xzne59885ef80f7
diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.jsonindex db7e04818e..3d20d066a0 100644--- a/apps/desktop/src/renderer/i18n/locales/en/common.json+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json@@ -10618,7 +10618,7 @@"stepsLabel": "View setup steps","stepCreate": "Create a custom app on the Open Platform and add the bot capability. In Permissions, confirm that reading direct messages (im:message.p2p_msg:readonly) and sending messages as the app (im:message:send_as_bot) are enabled. Receiving group @mentions also requires im:message.group_at_msg:readonly.","stepCredentials": "Open Credentials & Basic Info in your app and copy the App ID and App Secret.",- "stepConnect": "Enter the credentials below and click “Connect {{service}}” to establish a connection. In Events & Callbacks on the Open Platform, select the long connection subscription mode and add the Receive message event (im.message.receive_v1). Publish the app version, wait for approval if required, then send the bot a message to verify it works.",+ "stepConnect": "Enter the credentials below and click “Connect {{service}}” to establish a connection. In Events & Callbacks on the Open Platform, select the long connection subscription mode and add the Receive message event (im.message.receive_v1). In Callback Configuration, select long connection mode and add the Card action callback (card.action.trigger) so card buttons work. Publish the app version, wait for approval if required, then send the bot a message and click a card button to verify both work.","confirm": "Connect {{service}}"},"wecom": {diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.jsonindex 585504c713..4938d145bc 100644--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json@@ -10583,7 +10583,7 @@"stepsLabel": "設定手順を見る","stepCreate": "オープンプラットフォームでカスタムアプリを作成し、ボット機能を追加します。「権限管理」で、個別メッセージの読み取り(im:message.p2p_msg:readonly)とアプリとしてのメッセージ送信(im:message:send_as_bot)が有効か確認します。グループ内の @メンションの受信には im:message.group_at_msg:readonly も必要です。","stepCredentials": "アプリの「認証情報と基本情報」を開き、App ID と App Secret をコピーします。",- "stepConnect": "下の欄に認証情報を入力し、「{{service}} に接続」をクリックして接続します。オープンプラットフォームの「イベントとコールバック」で長接続によるイベント受信を選び、メッセージ受信イベント(im.message.receive_v1)を追加します。アプリのバージョンを公開し、審査が必要な場合は承認を待ってから、ボットにメッセージを送って動作を確認します。",+ "stepConnect": "下の欄に認証情報を入力し、「{{service}} に接続」をクリックして接続します。オープンプラットフォームの「イベントとコールバック」で長接続によるイベント受信を選び、メッセージ受信イベント(im.message.receive_v1)を追加します。コールバック設定でも長接続による受信を選び、カード操作のコールバック(card.action.trigger)を追加して、カードのボタンを使えるようにします。アプリのバージョンを公開し、審査が必要な場合は承認を待ってから、ボットにメッセージを送り、カードのボタンもクリックして動作を確認します。","confirm": "{{service}} に接続"},"wecom": {diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.jsonindex 30db61d407..3301ae84e5 100644--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json@@ -10583,7 +10583,7 @@"stepsLabel": "설정 단계 보기","stepCreate": "오픈 플랫폼에서 사용자 지정 앱을 만들고 봇 기능을 추가하세요. 권한 관리에서 개인 메시지 읽기(im:message.p2p_msg:readonly)와 앱으로 메시지 보내기(im:message:send_as_bot) 권한이 활성화되어 있는지 확인하세요. 그룹의 @멘션을 받으려면 im:message.group_at_msg:readonly도 필요합니다.","stepCredentials": "앱의 “자격 증명 및 기본 정보”를 열어 App ID와 App Secret을 복사하세요.",- "stepConnect": "아래에 자격 증명을 입력하고 “{{service}} 연결”을 클릭해 연결하세요. 오픈 플랫폼의 이벤트 및 콜백에서 지속 연결로 이벤트를 받는 구독 방식을 선택하고 메시지 수신 이벤트(im.message.receive_v1)를 추가하세요. 앱 버전을 게시하고, 심사가 필요하면 승인을 기다린 뒤 봇에 메시지를 보내 동작을 확인하세요.",+ "stepConnect": "아래에 자격 증명을 입력하고 “{{service}} 연결”을 클릭해 연결하세요. 오픈 플랫폼의 이벤트 및 콜백에서 지속 연결로 이벤트를 받는 구독 방식을 선택하고 메시지 수신 이벤트(im.message.receive_v1)를 추가하세요. 콜백 설정에서도 지속 연결 방식을 선택하고 카드 동작 콜백(card.action.trigger)을 추가해 카드 버튼을 사용할 수 있도록 하세요. 앱 버전을 게시하고, 심사가 필요하면 승인을 기다린 뒤 봇에 메시지를 보내고 카드 버튼도 클릭해 동작을 확인하세요.","confirm": "{{service}} 연결"},"wecom": {diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.jsonindex 0b845a7fdb..085ca93b71 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json@@ -10583,7 +10583,7 @@"stepsLabel": "查看配置步骤","stepCreate": "在开放平台创建企业自建应用并添加机器人能力。在「权限管理」确认已开通读取单聊消息(im:message.p2p_msg:readonly)和以应用身份发消息(im:message:send_as_bot)权限;接收群聊 @ 消息还需 im:message.group_at_msg:readonly。","stepCredentials": "打开应用的「凭证与基础信息」,复制 App ID 和 App Secret。",- "stepConnect": "将凭证填入下方,点击「连接{{service}}」建立连接。回到开放平台「事件与回调」,将订阅方式设为「使用长连接接收事件」,并添加「接收消息」(im.message.receive_v1)事件。完成版本发布,需审核时等待通过,再给机器人发消息验证。",+ "stepConnect": "将凭证填入下方,点击「连接{{service}}」建立连接。回到开放平台「事件与回调」,将订阅方式设为「使用长连接接收事件」,并添加「接收消息」(im.message.receive_v1)事件。在「回调配置」中选择使用长连接接收回调,并添加「卡片回传交互」(card.action.trigger),让卡片按钮可用。完成版本发布,需审核时等待通过,再给机器人发消息并点击卡片按钮验证。","confirm": "连接{{service}}"},"wecom": {diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.jsonindex 356269de59..84b1574677 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json@@ -10583,7 +10583,7 @@"stepsLabel": "查看設定步驟","stepCreate": "在開放平台建立企業自建應用程式並新增機器人功能。在「權限管理」確認已開通讀取單聊訊息(im:message.p2p_msg:readonly)和以應用程式身分傳送訊息(im:message:send_as_bot)權限;接收群組 @ 訊息還需 im:message.group_at_msg:readonly。","stepCredentials": "開啟應用程式的「憑證與基礎資訊」,複製 App ID 和 App Secret。",- "stepConnect": "將憑證填入下方,點擊「連線{{service}}」建立連線。回到開放平台「事件與回呼」,將訂閱方式設為使用長連線接收事件,並新增接收訊息(im.message.receive_v1)事件。完成版本發布,如需審核則等待通過,再傳送訊息給機器人驗證。",+ "stepConnect": "將憑證填入下方,點擊「連線{{service}}」建立連線。回到開放平台「事件與回呼」,將訂閱方式設為使用長連線接收事件,並新增接收訊息(im.message.receive_v1)事件。在回呼設定中選擇使用長連線接收回呼,並新增卡片回傳互動(card.action.trigger),讓卡片按鈕可用。完成版本發布,如需審核則等待通過,再傳送訊息給機器人並點擊卡片按鈕驗證。","confirm": "連線{{service}}"},"wecom": {