Feishu Bot
Connect an agent to Feishu and hand it work directly from a DM or a group chat.
Connect a T-agent agent as a Feishu Bot and team members can DM it in Feishu, @-mention it in a group, or use /issue to create issues. Conversations and run records are still saved to the T-agent workspace.
Each Bot maps to exactly one agent. To use several agents in Feishu, connect a Bot for each of them.
Connect a Bot
The agent's owner and workspace owners and admins can start a connection:
- Open Agents and select the agent to connect to Feishu.
- Go to Integrations and click Bind to Feishu.
- Scan the QR code with Feishu and confirm the authorization.
- Return to T-agent. Once the page shows Connected to Feishu, the Bot is ready.
The QR code is a one-time credential; if it expires, generate a new one. An agent that is already connected no longer shows the scan entry point; to rename the Bot or adjust its permissions, click Manage in Feishu.
New connections are currently open only for mainland-China Feishu. Existing international Lark connections keep working and can still be managed.
First use
The first time a member messages the Bot, they receive an account binding link:
- Open the link and sign in to T-agent.
- Confirm the workspace account to link.
- Return to Feishu and send the message again.
Only after binding can T-agent confirm which workspace member a message comes from. Non-members cannot use the Bot.
Hand work to the agent in Feishu
Direct messages
Message the Bot directly. Consecutive messages stay in the same T-agent conversation, and the agent's replies go back to that conversation.
Group chats
Add the Bot to the group first, then @Bot and describe what you need. The Bot only responds to messages that explicitly @-mention it; when it runs, it draws on the recent context it can read in the current session.
Create an issue
Send:
/issue Fix the redirect after login
Safari stays on the login page after a successful sign-in.The first line becomes the title and the rest becomes the description. Sending /issue alone creates nothing; the Bot replies with the required format instead.
Manage connections
Open Settings → Integrations to view the Bots connected in the workspace. Workspace owners and admins can disconnect them here; an agent's owner can also manage their own Bot from that agent's Integrations page.
After disconnecting, the Bot stops receiving new messages. Existing conversations and audit records are not deleted.
Self-hosting setup
T-agent Cloud needs no extra configuration. A self-hosted deployment must first set a key used to encrypt Bot credentials:
AGENTDOCK_LARK_SECRET_KEY=<base64-encoded 32-byte key>Generate one like this:
openssl rand -base64 32Restart the API server, then connect the Bot from the agent's Integrations page. Keep this key long-term: if it is rotated or lost, existing credentials can no longer be decrypted and the Bot must be reconnected.
AGENTDOCK_LARK_HTTP_BASE_URL and AGENTDOCK_LARK_CALLBACK_BASE_URL exist only for special deployments such as proxies and testing; leave them unset in normal operation.
Troubleshooting
- No bind button: confirm the current account is the agent's owner or a workspace owner or admin, and check that the self-hosting key is configured.
- QR code expired: close the dialog and start the connection again.
- The Bot asks for account binding: open the binding link and sign in with the T-agent account for that workspace.
- The Bot doesn't run: check whether the agent is archived and whether the runtime it uses is online.
Next steps
- Chat integrations — platform comparison, session isolation, and account binding mechanics.
- Chat — the conversation and execution model behind the Bot.
- Issues — the unit of work
/issuecreates.