n8n Lark Chatbot: Reply to Messages with OpenAI Context
n8n Lark Chatbot: Reply to Messages with OpenAI Context
Regular price
£14.99
Regular price
£14.99
Sale price
Unit price
/
per
⬇
Instant Digital Download
∞
Unlimited Downloads
★
Lifetime Access in Your Account
Couldn't load pickup availability
🔥
128+ Sold
Popular with n8n builders
⚡
23 people viewing
High interest right now
✅
9 added today
Fast-moving digital product
n8n Lark Chatbot: Reply to Messages with OpenAI Context
Regular price
£14.99
Regular price
£14.99
Sale price
Unit price
/
per
Turn Lark Chat into an AI Concierge—Reply Automatically with OpenAI Context
This n8n workflow connects to Lark Suite message events and automatically generates contextual replies using an OpenAI-powered n8n AI Agent—while keeping short-term conversation memory per user. Simply connect your Lark app, provide OpenAI credentials, and your bot can respond in-thread.
What this workflow does
- Receives Lark event callbacks via a POST webhook endpoint.
- Handles URL verification by detecting url_verification requests and returning the required challenge response.
- Acknowledges incoming events and extracts the sender’s Lark user ID and the message content.
- Fetches sender context from Lark by requesting a tenant access token (using your Lark App ID and App Secret) and then retrieving the sender’s user profile from the Lark Contacts API.
- Generates an AI reply by sending the incoming message plus user context (e.g., name and time) to an n8n AI Agent backed by an OpenAI chat model, using short-term conversation memory keyed by user ID.
- Sends the response back to the same user using the Lark IM messages API.
Use cases
- Provide context-aware support in Lark chat based on what a user just said.
- Create a lightweight Lark chatbot for internal operations that remembers recent conversations.
- Automate message-based Q&A for SaaS teams without building a full application backend.
Technical details
- n8n nodes/tools: if, set, webhook, sticky note, http request, n8n-nodes-langchainagent (AI Agent)
- Integrations: Lark Suite event callbacks, Lark Contacts API, Lark IM messages API, and OpenAI chat model
- Security/config: requires Lark App ID + App Secret, plus OpenAI API credentials; uses conversation memory keyed by user ID for contextual replies
