Lark Integration
Connect a custom Lark bot to Vuon so your team can ask questions, continue conversations, receive charts, and use approved Lark Docs, Base, and Calendar context without leaving Lark. This integration is currently an operator-assisted beta.
Lark setup is coordinated with Vuon support. There is not currently a self-service Lark card in Vuon's Connections settings.
How the integration is organized
Your organization will normally create and own a custom app in its own Lark tenant. A custom app belongs to the tenant where it was created, so Vuon's existing internal custom app cannot simply be reused in another customer's Lark tenant.
The current integration intentionally associates one Lark App ID with one Vuon organization. This gives each incoming message one deterministic destination and helps maintain tenant isolation.
Prerequisites
Before starting, make sure you have:
- Permission to create, configure, and publish a custom app in your Lark tenant
- A Vuon organization with the intended Lark users already invited
- A secure secret-sharing method approved by your organization
- A Vuon support contact to coordinate activation and callback validation
Set up the Lark app
Lark console labels can vary slightly by region or console version. Use the equivalent custom-app, permission, event, and release controls in your tenant.
1. Create a custom app and enable the bot
- In the Lark Developer Console, create a Custom App in your organization's tenant.
- Give the app a recognizable name, such as Vuon.
- Add or enable the Bot capability.
- Record the App ID. You will use it in the callback URL and provide it to Vuon support.
2. Add tenant-token permissions
In the app's permissions section, add the following scopes for the tenant access token:
| Scope | Why Vuon needs it |
|---|---|
im:message | Work with Lark messages, including the reaction Vuon adds to a request while it works |
im:message:send_as_bot | Send bot replies |
im:message:update | Update the status card as a request progresses |
im:message.p2p_msg:readonly | Read direct messages sent to the bot |
im:message.group_at_msg:readonly | Read group messages that mention the bot |
im:resource | Upload message resources, including chart images |
contact:contact.base:readonly | Read the basic contact directory needed for identity lookup |
contact:user.base:readonly | Read basic user details |
contact:user.email:readonly | Match a Lark user to their Vuon account by email |
Use tenant-token permissions rather than user-token permissions for these scopes.
3. Add optional read-only context permissions
Request only the capabilities your organization is enabling. Add them as tenant-token scopes, like the bot scopes above. Vuon reads this context as your bot, not as any person:
| Scope | Why Vuon will need it |
|---|---|
search:docs:read | Search the documents shared with the bot |
wiki:wiki:readonly | Open Wiki pages the bot can read |
docx:document:readonly | Read Docx metadata and content |
bitable:app:readonly | Read fields and records from Base tables shared with the bot |
calendar:calendar:readonly | Find public calendars by name and read their events |
Docs, Base, and Calendar are separately flagged betas. Existing bot customers do not need these scopes unless they opt in. Vuon does not request write scopes and does not create, edit, RSVP to, subscribe to, or sync documents, records, or events. If Lark shows unpublished changes after you add scopes, publish a new app release.
4. Configure events and encryption
- In Event Subscriptions, subscribe to the Message received event (
im.message.receive_v1). - Enable encrypted event delivery.
- Record the app's Verification Token and Encryption Key.
- Configure the request URL, replacing
<APP_ID>with the App ID from step 1:
https://lark-webhook.vuon.ai/api/webhooks/lark/<APP_ID>
5. Securely provide the app details to Vuon
Provide all four values to Vuon support through the secure transfer method they give you:
- App ID
- App Secret
- Verification Token
- Encryption Key
6. Publish with limited availability
- Create and publish a release of the app.
- Initially restrict app availability to the users who will test the integration.
- Confirm those users can find the bot and start a direct message with it.
- Expand availability only after your initial validation succeeds.
7. Check user email addresses
Vuon identifies a Lark user by looking up their Lark email address in the associated Vuon organization. Each tester's email address in Lark must therefore match an email address on their Vuon account.
Enable read-only workspace context
Vuon reads Docs, Base, and Calendar context as your organization's Lark bot, so Lark's own sharing decides what Vuon sees. Everyone in your Vuon organization can ask the agent about what the bot can read; it never reads as the person asking.
The bot can read:
- documents and Bases shared with it, which are also the only ones Vuon's search returns;
- documents and Bases whose link sharing allows people in the organization with the link (Lark's default for new files), but only when someone gives Vuon that link. They never appear in search.
- calendars whose permissions are Public, which Lark already shows to everyone in your organization. The agent can find them by name.
To keep a document or Base out of Vuon entirely, set its link sharing to Restricted and don't add the bot. To keep a calendar out, keep it private.
Share sources with the bot
- Documents: open the document, then ⋯ → More → Add Applications, choose
your bot, and set it to Can view. Lark adds the bot as an editor by
default, so change it. The bot appears in that list only after the
docx:document:readonlyscope is added. - Folders: share the folder with a group chat that includes the bot. The bot can then read the documents in it.
- Base: add the bot to the Base the same way, with Add Applications.
- Calendar: set the team calendar's permissions to Public. Ask the agent about it by name, such as "the design team calendar". Private events on a public calendar come back only as busy time, with no title or description, and private calendars are invisible to the bot.
Wiki spaces, availability lookups, and personal connections, where each user connects their own Lark account, are not part of this beta.
What Vuon reads and stores
Vuon fetches context live when an agent needs it. It does not create a dataset, index, background sync, or event subscription. Access is read-only: Vuon cannot change documents or records, create or edit events, send invitations, or RSVP. The bot's credentials stay encrypted and scoped to your Vuon organization.
To stop sharing a source, remove the bot from the document or Base, or make the calendar private again.
What Vuon support configures
After receiving the app details securely, Vuon support will:
- Store the app credentials encrypted with AWS KMS and scoped to your Vuon organization.
- Associate the Lark App ID with that organization.
- Enable the per-organization
lark_bot_enabledbeta flag. - Validate callback verification, user identity resolution, direct messages, group mentions, replies, and chart delivery.
These are Vuon-side steps; you do not need to change production configuration or feature flags yourself.
How to use the bot
| Where | What to send | Behavior |
|---|---|---|
| Direct message | A normal request | Starts a conversation, or continues the current DM conversation |
| Direct message | /new <request> | Starts a fresh conversation with the supplied request |
| Direct message | An ordinary follow-up | Continues the current conversation without a command |
| Group conversation | @Vuon <request> | Starts a conversation for that group thread |
| Existing group thread | An ordinary reply | Continues the conversation in that thread; another mention is not required |
Put /new at the beginning of a direct message and include the request on the same message, for example: /new compare this month's revenue with last month.
Requests can include screenshots and files. Send an image or a file, or paste images into a rich-text message; Vuon opens images and files up to 25 MB from the same conversation. In a group, put the image in a rich-text message that mentions the bot, or reply with it in the bot's thread. Voice messages, videos, and stickers are ignored.
Troubleshooting
The bot does not reply
- Confirm the app is published and available to the affected user.
- Confirm the Bot capability is enabled.
- In a group, mention the bot in the first message. Ordinary top-level group messages are intentionally ignored.
- Ask Vuon support to confirm that activation and validation are complete.
A user is not recognized
Confirm the user's Lark email address exactly matches an email address on their Vuon account and that the user belongs to the associated Vuon organization. Also verify that contact:user.email:readonly and the other contact scopes are approved for the app.
Text replies work, but charts fail
Confirm that the app has the im:resource tenant-token scope. Without it, Vuon cannot upload chart images to Lark. After changing permissions, publish a new app release if Lark requires one.
The user cannot find or open the bot
Check the published release's availability range. During initial testing, make sure the affected user is explicitly included in the allowed audience.
Callback validation or events fail
- Confirm the callback is exactly
https://lark-webhook.vuon.ai/api/webhooks/lark/<APP_ID>and contains the same App ID provided to Vuon. - Confirm encrypted event delivery is enabled and that Vuon has the current Verification Token and Encryption Key.
- Confirm the Message received event is subscribed.
- After changing scopes, events, credentials, or availability, publish a new release when required by Lark.
Docs, Base, or Calendar context is unavailable
- Confirm the scope is listed as Tenant token / Added in the Lark app.
- For a document or Base, confirm the bot was added with Add Applications. A source that isn't shared returns "not shared with the Vuon bot".
- For a calendar, confirm it is Public; the bot can't see private calendars.
- Search queries are limited to 30 characters, so search for a short phrase.
FAQ
Can we use Vuon's existing internal Lark app?
No. A Lark custom app is owned by the tenant where it was created and cannot simply be installed into an unrelated customer tenant. Your organization will normally create its own tenant-owned custom app.
Can one Lark app connect to multiple Vuon organizations?
Not in the current beta. One App ID is associated with one Vuon organization so routing is deterministic and tenant boundaries remain clear.
Will existing customers be asked for new permissions?
No. Docs, Base, and Calendar are independently disabled by default. An administrator must opt in, add the corresponding tenant-token scope to the tenant-owned app, and share sources with the bot before Vuon reads anything.
Does Vuon use each person's own Lark calendar?
No. Vuon reads only public calendars, as your bot, and private events on them appear only as busy time. People's own primary calendars aren't searchable by the bot. Connecting each person's own Lark account would be a separate personal-integration mode.
Can we make the bot available to everyone immediately?
You can expand availability after validation, but Vuon recommends starting with a small intended-user group so permissions, identity matching, and message delivery can be checked safely.