This workflow follows the Agent → Chat Trigger 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": "Chatting",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "chatapp",
"responseMode": "responseNode",
"options": {}
},
"type": "n8n-nodes-base.webhook",
"typeVersion": 2.1,
"position": [
-224,
-16
],
"id": "0433f174-7a61-42b1-9a75-56430fe48edc",
"name": "Webhook"
},
{
"parameters": {
"promptType": "define",
"text": "={{ $json.body.message }}\n\nAnswer requirements:\n- Use table if comparison is involved.\n- Use bullet points if explanation.\n- Use boxed final answer if calculation.\n- Keep answer structured.\n",
"options": {
"systemMessage": "You are a precise and structured AI assistant.\n\nAlways follow these rules:\n\n1. Give clear, direct answers.\n2. Use simple language.\n3. If the answer involves comparison, data, pros/cons, or categories \u2192 use a Markdown table.\n4. If explaining steps \u2192 use numbered steps.\n5. If listing ideas \u2192 use bullet points.\n6. If solving a math or coding problem \u2192 show steps and then provide a clearly separated final answer section.\n7. Highlight final answers using:\n \u2705 Final Answer:\n8. Never add unnecessary introduction or filler text.\n9. Keep responses clean and properly formatted in Markdown.\n"
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 3.1,
"position": [
208,
0
],
"id": "2924c0ed-c51f-4831-8a10-7fad8edc09f7",
"name": "AI Agent"
},
{
"parameters": {
"model": "openai/gpt-oss-20b",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatGroq",
"typeVersion": 1,
"position": [
80,
208
],
"id": "7d3d04f0-b7ba-4468-98d9-75a0687d196c",
"name": "Groq Chat Model",
"credentials": {
"groqApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"options": {}
},
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.5,
"position": [
560,
0
],
"id": "886181eb-4745-4396-9f5f-3128c31418ea",
"name": "Respond to Webhook"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.4,
"position": [
-304,
272
],
"id": "d3c91ad9-20ce-44a6-ac00-cdd5d066b460",
"name": "When chat message received"
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Groq Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
},
"When chat message received": {
"main": [
[]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1",
"availableInMCP": false
},
"versionId": "d99a1e5e-9d81-4927-8543-a61718124d42",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "K4PnWqeHL7q5_eIXkP3Qh",
"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.
groqApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Chatting. Uses agent, lmChatGroq, chatTrigger. Webhook trigger; 5 nodes.
Source: https://github.com/itz-ravikumar/n8n-groq-chatbot/blob/dd2c4fec53e60c4341ef079e888db26a56cbe0cd/n8n-workflows/chatting-workflow.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.
A reasoning agent that can think, search, calculate, and remember — powered by GROQ inference and ready to deploy in one click.
Workflow Hcmute. Uses agent, lmChatGoogleGemini, memoryBufferWindow, googleSheetsTool. Webhook trigger; 13 nodes.
AI chatbot for appointment scheduling. Uses memoryBufferWindow, lmChatOpenAi, toolWorkflow, chatTrigger. Webhook trigger; 12 nodes.
This guide shows you how to deploy a chatbot that lets you query your database using natural language. You will build a system that accepts chat messages, retains conversation history, constructs dyna
This guide shows you how to deploy a chatbot that lets you query your PostgreSQL database using natural language. You will build a system that accepts chat messages, retains conversation history, cons