Guides

Feishu bot: create it by QR code, or enter credentials by hand

The Feishu bot is for your team: a colleague DMs the bot or @-mentions it in a group, and it asks that person's own assistant, as that person — so everyone only sees what they are allowed to see.

It uses Feishu's "long connection": your computer connects out to Feishu, so there is no public URL and no callback address to configure. As long as Agents Workshop is running on this computer, the bot can receive and reply.

Fastest: create the bot by QR code

Only the owner or a company admin can do this. The whole company shares this one bot, so there is no position to pick.

  1. In Settings → Chat channels, on the Feishu bot card, click Create bot by QR code (the same button is on the connection card that pops up in a conversation).
  2. A card shows a QR code. Scan it with Feishu and tap confirm on your phone. The code is valid for 10 minutes; if it expires, click Generate again.
  3. After you confirm, Feishu creates the app with the three message permissions the bot needs, and the workshop stores the credentials and connects. You, the person who scanned, are linked as your own Feishu account — no 6-digit code needed.
  4. Open Feishu and DM the bot to try it.

The App ID and App Secret go from Feishu straight to this computer, into the local encrypted store — never sent to the AI, never logged, never shown. Once colleagues can find the bot in Feishu, each links their account once, as in "Everyone links their own account once" below.

If you can't find the bot in Feishu or it doesn't reply: open the app in the Feishu Open Platform and check two things from steps 7 and 9 below — the subscription mode is persistent connection, and the app is released.

What follows is the manual route, for when scanning isn't available (for example this machine has no secrets key, so the card only offers manual entry).

Manual 1. Create an app on the Feishu Open Platform

  1. Open the Feishu Open Platform, sign in as an admin, and click Create custom app. Give it a name and icon (that's what colleagues see). Lark (international) users go to open.larksuite.com — same steps.
  2. In the app, Add features → add Bot.
  3. Permissions → search for and enable:
  • Read direct messages sent to the bot (im:message.p2p_msg:readonly)
  • Receive group messages that @-mention the bot (im:message.group_at_msg:readonly)
  • Send messages as the app (im:message:send_as_bot)
  1. Credentials & Basic Info → copy the App ID (starts with cli_) and the App Secret.

Manual 2. Enter them in Agents Workshop

Only the owner or a company admin can do this; everyone else only sees the status on the card.

  1. In Settings → Chat channels, in the Feishu bot card, enter the App ID and App Secret (tick "Lark (international)" if that's you) and click Save and connect.
  2. When the card says "Connecting" or "Receiving", you're good.

The App Secret goes straight into the encrypted store on this machine — never sent to the AI, never logged, never shown again.

Manual 3. Back on the Open Platform: long connection and release

  1. Events & Callbacks → Event configuration → set the subscription mode to Receive events through persistent connection and save. Feishu checks that a connection is already up when you save — that's why step 5 comes first.
  2. On the same page, Add event → Receive message (im.message.receive_v1).
  3. Version management & release → create a version → request release. Once your admin approves, colleagues can find the bot in Feishu.

The bot only answers colleagues it knows. Whoever created the bot by QR code is already linked; the first time for everyone else:

  1. In the Feishu card, click Link my account — you get a 6-digit code.
  2. In Feishu, DM the bot: bind 123456 (your code). Valid for 10 minutes, single use.
  3. Once it replies that you're linked, ask it in a DM or @ it in a group.

To add it to a group: group settings → Bots → add bot → pick your app.

Write reports into Feishu docs

Once the app is connected, reports from your positions (weekly, daily…) can also go into Feishu docs. Just say it once in the position:

From now on, sync the Reddit weekly report to this Feishu folder https://…

After that each report is written automatically and you get the link back; a revised report updates the same doc. The report itself also has a small "Write to Feishu doc" icon at the top right.

Reading and writing docs / sheets now goes through Feishu docs / sheets → Connect Feishu on the Connections page (your own Feishu account; see Connect Feishu), so you no longer need to give the bot document permissions. What follows is the fallback for earlier users: if that connection is missing, the workshop falls back to the bot app.

On the Feishu side, give the app access first:

  1. Permissions → enable docx:document, docx:document.block:convert and drive:drive (add wiki:wiki for a wiki), then release a new version.
  2. Into a folder: Feishu doesn't let an app be a folder collaborator directly. Create a group, add this app's bot to it, then share the folder with that group as "Can edit".
  3. Into an existing doc: open the doc → "…" at the top right → "…More" → "Add document app" → pick this app, "Can edit".
  4. Into a wiki: Wiki settings → Members, add the group with the bot as an editable member.
  5. No link: it goes into the app's own space. If you linked your Feishu account in step 4, you're added as the doc's manager; if not, it's set to "anyone in the organization with the link can edit".

If it can't write, the workshop first puts a card in your card flow saying what's missing. Only when you pick "Paste it for me with ego" does it use the Feishu you're signed in to in ego.

What it won't do

  • Decisions don't happen in Feishu: cards arrive as a summary plus a link back to the workstation — no approve/reject buttons.
  • It won't answer strangers: an account that hasn't linked gets one line telling it to link first.
  • In groups it only reacts when @-mentioned; @all doesn't count. Exception: groups you tick under Settings > Messaging channels > "Watch chosen groups (listen only)" (next section).

Watch chosen groups (listen only)

For a ticked group, every message (not only @ mentions) is received, but the bot never speaks in the group. When something looks like a request it raises a card for you (open as a matter / not needed / stop watching this group).

  • Grant the app im:message.group_msg (read all group messages): tick "Let the bot see all group messages" (off by default) when creating the bot or adding permissions by QR code, or enable it yourself in the Feishu developer console and publish a new version. Without it only @ mentions arrive; Settings says so and offers an "Add permission" button.
  • A newly ticked group is observed for a week first: nothing is raised, and Settings shows which cards it would have raised so you can turn it on when you trust it.
  • Originals stay on this device and are deleted after 14 days; only the owner can open them. Turning a group off can also delete what is already stored.
  • A rule-based screen (keywords, speaker, whether it concerns an existing matter) runs first; only what passes is judged once by a low-cost model, so not every line costs money.

FAQ

  • "App ID or App Secret is wrong": copy them again from Credentials & Basic Info and click Re-enter credentials.
  • "Feishu refused the long connection": check that the Bot feature is added, the subscription mode is persistent connection, and the app is released.
  • "Too many connections": the same app is connected from another computer. Close that one first.
  • Does it reply when my computer is off? No. The connection lives on this computer — while it sleeps, is offline, or Agents Workshop is closed, the bot hears nothing.