This workflow follows the Chat Trigger → OpenAI recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "First Chatbot",
"nodes": [
{
"parameters": {
"public": true,
"initialMessages": "Hi there! \ud83d\udc4b\nMy name is Nation your AI automation assistant. How can I assist you today?",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.4,
"position": [
0,
0
],
"id": "3ee9aec4-101f-476c-a7a8-1e3ec6b3867b",
"name": "When chat message received"
},
{
"parameters": {
"modelId": {
"__rl": true,
"value": "gpt-5.4-nano",
"mode": "list",
"cachedResultName": "GPT-5.4-NANO"
},
"responses": {
"values": [
{
"role": "system",
"content": "You are the AI assistant for Insight Analytics, an AI and automation consultancy based in Lusaka, Zambia, serving Zambian SMEs.\n\nYour role:\n- Greet visitors warmly and find out what business problem they're trying to solve (e.g. manual processes, slow customer response, disorganized records, repetitive admin work).\n- Briefly explain how Insight Analytics can help: custom automation workflows, AI-powered tools (like resume screening, invoicing, WhatsApp assistants), and Excel-based systems tailored to their business.\n- Keep responses short and conversational \u2014 this is a WhatsApp-style chat, not an essay. 2-4 sentences per reply unless asked for detail.\n- Use simple, clear language. Avoid technical jargon unless the user demonstrates technical familiarity.\n- If pricing comes up, explain that engagements are retainer-based and mention that a quick call is the best way to scope their specific needs \u2014 don't quote numbers.\n- Always try to capture the lead's name, business name, and the problem they want solved, so it can be logged.\n- If you don't know something specific about current projects or pricing, say a team member will follow up rather than guessing.\n- Stay professional but friendly \u2014 reflect a local, approachable tone rather than a generic corporate one.\n\nNever invent client names, case studies, or pricing figures that haven't been provided to you."
},
{
"content": "={{ $json.chatInput }}"
}
]
},
"builtInTools": {},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.openAi",
"typeVersion": 2.3,
"position": [
256,
0
],
"id": "7a44488d-679f-4539-aae1-b961fae35a93",
"name": "Message a model",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
}
],
"connections": {
"When chat message received": {
"main": [
[
{
"node": "Message a model",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1",
"binaryMode": "separate",
"availableInMCP": false
},
"versionId": "0f3213bf-68fa-41c3-aaa4-b680b9fe3758",
"meta": {
"templateCredsSetupCompleted": true
},
"nodeGroups": [],
"id": "WCEFpfunfaLyC2go",
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
openAiApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
First Chatbot. Uses chatTrigger, openAi. Chat trigger; 2 nodes.
Source: https://github.com/buseko-Actuary/n8n-ai-chatbot/blob/main/workflow/first-chatbot.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
OpenAI Assistant is a powerful tool, but at the time of writing it doesn't automatically remember past messages from a conversation.
This workflow is for: People who want to quickly launch simple landing pages without paying monthly fees to landing page creators. It’s ideal for rapid prototyping, generation of large amounts of land
Most career advice is generic. This workflow builds a fully personalized AI coaching system that remembers every user, adapts to their career stage and goals, detects what kind of help they need, and
Automate the creation of high-performing YouTube Shorts in minutes! Content Creators: Generate engaging short videos effortlessly. Marketing Agencies: Produce client-ready content quickly. Business Ow
I prepared a comprehensive guide demonstrating how to build a multi-level retrieval AI agent in n8n that smartly narrows down search results first by file descriptions, then retrieves detailed vector