Connect Lark
Talk with Rome in Lark
Agent-readable version: Markdown · llms.txt
Use this page to connect Rome to a Lark bot so you can talk with Rome from Lark. Rome uses the same internal channel as Feishu, but you must choose the Lark International region when connecting.
Before you start
You need:
- Admin access to a Lark tenant where you can create and publish a custom app.
- Access to Rome's web app as the guardian.
- The Lark app's
App IDandApp Secret.
Create the Lark app
- Open the Lark Developer Console.
- Create a custom app, then open the app.
- In the app settings, add the Bot capability.
- In Permissions & Scopes, grant the permissions Rome needs: the
im:messageread and send scopes shown by the console, plusim:message:update,im:message.reactions:write_only, and the card scopescardkit:card:readandcardkit:card:write. Rome uses an interactive card to verify your guardian account and a temporary reaction to show that it is processing a message. - In Events & Callbacks, subscribe to both the
im.message.receive_v1event and thecard.action.triggercallback. - Choose the long-connection / WebSocket delivery mode. Rome does not need a public callback URL for Lark.
- Create and publish a version of the app, then have the tenant admin approve it so the bot, scopes, and event subscription go live.
Connect in Rome
- Open Rome and go to Settings.
- Open Channel Connections.
- Open the Feishu card.
- Set Region to Lark (International).
- Select the Enter credentials tab. (The card defaults to the Create Agent app tab, which can create a new app for you and pre-configure the bot, scopes, and callbacks automatically — use it if you'd rather skip the developer console steps above.)
- Paste the app's
App ID. - Paste the app's
App Secret. - Click Test & Connect.
Rome validates the credentials, stores them locally, starts the long connection, and shows a verification code.
Link your guardian account
- In Lark, find the bot from the app you just published and send it any message.
- The bot replies with a verification card.
- Enter the verification code shown in Rome into the card and submit it.
- Keep the Rome settings page open. It polls automatically and updates once your Lark account is linked as the guardian.
You have five attempts. After too many incorrect codes the card locks — disconnect the channel in Rome and connect again to generate a new verification code.
After this, messages sent to the bot are delivered to Rome.