Grok BotWorkPlanningAI score · 73/100AI-assisted edit · no obvious prompt-injection riskX

Connect Grok Bot to Feishu: Single-Bot DM and Group Collaboration

Use a six-step 'burn decree' prompt to have Grok Bot install the Feishu CLI, create an app, and complete OAuth, enabling bidirectional messaging in Feishu

Some experienceStepsPromptWorkflowTip
Who
Enterprise users or team admins with a Grok Bot account who need to integrate AI digital workers into Feishu
You get
A Grok Bot robot available in Feishu DMs that can receive and reply to messages; multiple bots can be added to groups for team collaboration
You need
Feishu

Constraints

Prerequisites: Grok Bot account, Feishu account (with permissions to create and authorize Open Platform apps). Workflow switches between Grok Bot chat and Feishu web/client. Costs: Grok Bot subscription fee unknown; Feishu Open Platform basic capabilities typically free. Security: app credentials stored in Feishu CLI keychain, whitelist filtered by your own open_id.

What they did

Author Kin (@KinGao476942), a SpaceXAI-certified ambassador, published a tutorial for connecting Grok Bot to Feishu. The core operation is sending a six-step 'burn decree' prompt to Grok Bot, instructing it to install the Feishu CLI on its cloud computer, create a Feishu app, and configure a webhook routine for bidirectional messaging. The author reports having connected 7 digital workers to an enterprise Feishu workspace, and describes two group collaboration examples: an AI customer-service model evaluation (tagging multiple bot roles to benchmark GPT Luna vs. Haiku 5.5) and a VOC pipeline that scrapes Reddit reviews, identifies negative issues, and generates tickets pushed back to a Feishu group.

How it went

Author report (author_report): after single-bot setup, the robot successfully replied in Feishu DM; multiple bots can be @-mentioned in the same group and assigned分工. Case two has no screenshots due to sensitive customer information.

Worth knowing

1. Security: uses official Feishu Open Platform tools and authorization pages; app credentials remain in the Feishu CLI keychain, not chat; messages are filtered by user open_id whitelist. 2. Bulk onboarding: each bot requires an independent Feishu app and webhook routine; the author references cgnot996's tutorial for batch management. 3. Gaps: webhook relay program code not provided; post-reboot auto-start solution is only described as 'ask Grok Bot to tell you', without concrete implementation. 4. Not tested: this site has not reproduced the workflow; reproduction=not_tested.

Steps

  1. Send the burn-decree prompt to Grok Bot

    Open Grok Bot and copy-paste the prompt below verbatim to your main Bot. Grok Bot will execute the following six steps on its cloud computer, reporting back after each step and pausing when human action is required.

    Execution prompt · Source text。Grok Bot main chat input; send as a user message

    我想把你接到我的飞书上,让我能在飞书里直接给你发消息、收到你的回复。请按下面的步骤做,每做完一步告诉我结果,需要我操作的地方停下来等我。
    1、在你的云端电脑上安装飞书官方的飞书 CLI(npm 包 @larksuite/cli)。然后运行 lark-cli config init --new 新建一个飞书应用,把生成的配置链接发给我,等我在浏览器里配完、回复你之后再继续。
    2、运行 lark-cli auth login,生成授权链接和二维码发给我,等我点开链接或用飞书扫码完成授权。
    3、用这个应用的机器人,通过飞书官方长连接订阅 im.message.receive_v1 事件,接收我发给机器人的消息。只认我本人:按我的 open_id 过滤,别人的消息一律忽略。按 message_id 去重。
    4、在 Grok Bot 里建一个由 webhook 触发的 routine。在云端电脑上写一个转发程序,收到消息就立刻 POST 给这个 routine(请求里带 Authorization 钥匙)。需要我提供 Webhook URL 和钥匙时,用加密弹框让我填,不要让我在聊天里发明文。应用密钥留在飞书 CLI 的钥匙串里,不要发到聊天里。
    5、你处理完以后,用机器人身份把回复发回同一个飞书对话。
    6、发不出去的消息先存起来,定时重试。同一个应用只开一个接收程序。最后告诉我:云端电脑重启以后,怎么把转发程序重新拉起来。
  2. Configure the Feishu app and complete authorization

    After processing, Grok Bot will send a Feishu Open Platform configuration link. Click it to finish app setup in your browser, then return to Grok Bot and reply '配置好了'. Grok Bot will then send an authorization link and QR code; click the link or scan with Feishu to approve.

  3. Test the bot in Feishu DM

    Once setup is complete, Grok Bot will tell you the robot's name. Open Feishu, search for that name, start a DM, and send any message (e.g., '介绍下你自己'). Success indicator: you receive a reply from the robot in the DM.

Prompt you can copy

Execution prompt · Source text。Confirm the destination, input variables and output format before use.

This block is the prompt. Ads are never placed here.

我想把你接到我的飞书上,让我能在飞书里直接给你发消息、收到你的回复。请按下面的步骤做,每做完一步告诉我结果,需要我操作的地方停下来等我。
1、在你的云端电脑上安装飞书官方的飞书 CLI(npm 包 @larksuite/cli)。然后运行 lark-cli config init --new 新建一个飞书应用,把生成的配置链接发给我,等我在浏览器里配完、回复你之后再继续。
2、运行 lark-cli auth login,生成授权链接和二维码发给我,等我点开链接或用飞书扫码完成授权。
3、用这个应用的机器人,通过飞书官方长连接订阅 im.message.receive_v1 事件,接收我发给机器人的消息。只认我本人:按我的 open_id 过滤,别人的消息一律忽略。按 message_id 去重。
4、在 Grok Bot 里建一个由 webhook 触发的 routine。在云端电脑上写一个转发程序,收到消息就立刻 POST 给这个 routine(请求里带 Authorization 钥匙)。需要我提供 Webhook URL 和钥匙时,用加密弹框让我填,不要让我在聊天里发明文。应用密钥留在飞书 CLI 的钥匙串里,不要发到聊天里。
5、你处理完以后,用机器人身份把回复发回同一个飞书对话。
6、发不出去的消息先存起来,定时重试。同一个应用只开一个接收程序。最后告诉我:云端电脑重启以后,怎么把转发程序重新拉起来。 —— 提示词结束 ——

The executable prompt (six-step burn decree) is embedded in step 1 prompts. This field left empty per agent_no_prompt convention.

Source

(中文)Grok Bot 接飞书:焚决六步装 CLI→建应用→授权→webhook routine→回消息 · KinGao476942 · X · 2026-10-14T11:01:16.000Z

Comments & feedback

Tried this method? Share results, problems or improvements. Comments appear after moderation. Please avoid sensitive information.

Loading…

    Related