TL;DR: A Lark AI agent bot in Sharkly takes four setup moves. An admin connects one organization Lark app for notifications and link previews. You bind a task assistant to each Space that files Tasks from group chats. You bind an Agent bot to one Agent by scanning a QR code. Then you bind a Lark topic to a Task, so progress flows back to the group without anyone opening the app.
Your partner team lives in Lark. They report problems in a group chat, and someone on your side retypes each one into the tracker. This tutorial removes that step. You’ll connect Sharkly to Lark so a mention in a Lark group becomes a tracked Task, an Agent picks it up, and status changes land back in the same thread.
Before you start
You need five things:
- A Sharkly organization and a Space. Ours is the Cancel Anything Space, with statuses Triage, Backlog, Todo, In Progress, QA and Done.
- An Agent on a Computer. A Computer is a device that runs the Sharkly local service; the Agent runs there. New to both? Read getting started with Sharkly and what a Sharkly Agent is.
- Owner or Admin rights in the Sharkly organization for the organization-level Lark app.
- A Lark account that can scan QR codes, plus tenant admin approval for a custom app on the Lark Open Platform.
- The right cloud. Lark and Feishu are separate clouds with separate accounts. The Lark entry connects only Lark. An account from the Feishu cloud lands on the Feishu entry instead.
How a Lark AI agent bot works in Sharkly
Sharkly ships three Lark connections, and they don’t depend on each other. The Lark integration help page describes each one:
| Connection | Who sets it up | What it does |
|---|---|---|
| Organization Lark app | Owner or Admin | Inbox notifications as Lark DMs, Task link previews |
| Task assistant | Space member | One per Space; turns a group discussion into Tasks |
| Agent bot | Any member, for Agents they can use | One per Agent; chat with that Agent in DMs, groups and topics |
A fourth piece, the Lark connector, points the other way. It lets a running Agent read Lark docs and Base tables. It doesn’t create a bot.

The task assistant isn’t a normal Agent. It doesn’t appear in Agent lists or assignment pickers, and you can’t chat with it in the app. Use it when you only need Tasks filed. Use an Agent bot when you want an Agent that talks back and does work.
Step 1: Connect the organization Lark app
In Sharkly, switch to your organization and open Integrations, then click Set up Lark. Before anything is connected, the Connection section reads “No Lark app connected yet.” Click Connect Lark to open the Connect a Lark app dialog. It lists nine numbered steps, with copy buttons for every value. Step 1 opens the Lark Open Platform.

The other eight steps:
- Create custom app. It must be a new app. The dialog suggests the name
Sharklyand provides the avatar under Download avatar. - App capabilities → Add capability: add Bot and Link preview.
- Link preview → Register URL rules: add
app.sharkly.ai/**. Nohttps://prefix. - Permissions → Request permissions: paste the JSON from Copy the full scope JSON into the permission importer. One missed scope makes a feature fail silently.
- Security settings → Redirect URL: paste the URL from Copy the redirect URL. This lets members link their own accounts through a standard OAuth redirect. Don’t put it under “H5 trusted domain”.
- Credentials & basic info: copy the App ID and App Secret into the Sharkly dialog and save. Sharkly verifies them against Lark and opens a long connection.
- Events & callbacks → Callback configuration: choose long-connection callbacks and add
url.preview.get. Leave Event configuration empty. - Version management & release → Create version: set the default capability to Bot, set the availability scope, and request release. Your Lark tenant admin then approves the release.


Order matters in steps 6 and 7. Lark accepts the long-connection method only while a client is online, so save the credentials first. Treat the App Secret like a password: paste it into the dialog and nowhere else.
Step 2: Bind the task assistant to your Space
On the same Lark page, the Task assistant section lists your Spaces. Click Bind Lark on the Cancel Anything row, pick the Runtime that runs the assistant, and scan the QR code.
Add the assistant to the partner group. When someone mentions it, it reads the discussion, including code blocks, writes the request up, and files it as a Task. Each row’s ··· menu has Settings, Unbind Lark and Remove assistant. Its instructions inherit the organization’s task assistant template until you override them.
Step 3: Connect Echo as an Agent bot
Under Connect Agents, click Connect Agent and pick Echo. Sharkly generates a one-time session; scan the QR code with Lark or click Open link, then finish creating and authorizing the bot in Lark. The entry moves through four states:
| State | Meaning |
|---|---|
| Generating | Sharkly is creating the authorization session |
| Waiting for authorization | QR ready, waiting for you in Lark |
| Connected | Echo is reachable from Lark |
| Failed | Canceled, expired or errored; click Retry |
By default the bot answers direct messages and group mentions. Echo’s Lark settings add an emoji reaction trigger and an any-message trigger, which must target selected groups. Each topic keeps its own context. Type /new to start a fresh session; it doesn’t create a Task.
@Echo The cancel flow for StreamBox fails after the retention offer.
Create a Task in Cancel Anything and bind this topic.
Step 4: Get progress back in the Lark topic
Lark messages don’t become Tasks on their own. Ask the Agent to create one and bind the topic, or mention the bot with an existing Task’s link. Once bound, the topic and the Task stay in step:
- Topic messages mirror into Task comments when Mirror the Lark topic’s messages into the task’s comments is on.
- Status changes can post to the topic as a separate notification.
- Comments synced in from Lark never trigger another Lark notification, so there’s no loop.
- History from before the binding is back-filled once.

To stop a run, anyone in the conversation adds the cross-mark reaction to the triggering message. Sharkly marks the run stopped, the same as clicking Stop in the app.
Step 5: Disconnect and reconnect
The Lark page lists every bound bot, with refresh and disconnect controls. Disconnecting stops new messages from reaching the Agent; sessions and history stay. Reconnecting means a new QR authorization. Your Lark notification switches are kept through an outage and take effect again after reconnecting, but disconnecting the organization app stops notifications at once.
One rule catches people: a Lark app can be used in only one place. It can’t back an Agent bot and the organization assistant at the same time, even across organizations. If two bindings share one app, the page shows a yellow banner naming them.
What went wrong for us
Our first attempt stopped at the door. The Cancel Anything org had no Lark app connected, so Link Lark account under My Lark account stayed disabled with “An admin has to connect the Lark organization first.” Connect the organization app before you invite members to link accounts.
One more to watch for, from the help page: Lark grants bot and user permissions separately, and an approved permission works only after you publish an app version. If a connector call fails, apply on both identities, publish, then re-authorize in Sharkly. The permission precheck lists any scope still missing.
Two other ways teams use this
- A support desk binds only the task assistant to a Triage-first Space. Agents in the support group file Tasks; nobody chats with an Agent. Pair it with triage rules.
- A platform team binds a coding Agent with the any-message trigger on one incident group. Every alert gets a reply in its own topic. For the Slack version, see Slack bug reports to agent Tasks.
Recap checklist
- [ ] Organization Lark app connected, version published and approved
- [ ] Task assistant bound to each Space that takes requests
- [ ] Agent bot connected and showing Connected
- [ ] Triggers set for DMs, mentions and reactions
- [ ] A test topic bound to a Task, status change seen in Lark
- [ ] Members linked their Lark accounts for notifications
Sharkly is free to start, and the integrations page lists the other tools it connects to. Connect the organization app today, then put your first Agent in the group where the work arrives.
FAQ
Do Lark messages automatically become Sharkly Tasks?
No. Messages go to the Agent’s session. A Task comes from the task assistant, from asking the Agent, or from binding a topic to an existing Task.
What’s the difference between the task assistant and an Agent bot?
The task assistant files Tasks for one Space and lives only in Lark. An Agent bot connects one of your Agents, so you can chat with it and have it work.
Why is there no Agent to select?
Each Agent holds one Lark bot entry at a time. Bound Agents drop out of the list, so create an Agent or disconnect an old binding.
Why did the QR code stop working?
Sessions are one-time and expire. Click Retry for a fresh code.



