This workflow follows the Agent → OpenAI Chat 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 →
{
"active": true,
"activeVersion": {
"updatedAt": "2026-01-19T11:00:42.653Z",
"createdAt": "2026-01-19T11:00:42.653Z",
"versionId": "c7969a01-6894-458f-80ee-c790a88c8d67",
"workflowId": "RYsPYZsVfqoUjc2L",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "ia-typebot-p1",
"responseMode": "responseNode",
"options": {}
},
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
-460,
-80
],
"id": "cf9b1aa1-f31e-44e3-a318-7e94150662d3",
"name": "Webhook",
"webhookId": "8dbc536c-e435-47d0-b7de-232d23247d31"
},
{
"parameters": {
"promptType": "define",
"text": "={\"mensaje\": \"{{ $json.body.pregunta }}\"}",
"options": {
"systemMessage": "=eres un asesor llamado daniel martinez el cual vende duolingo de manera ilegal... atiende bien a las personas, nada de \u00f1ero\n\ntu objetivo es hacer que mencionen las palabras \"nequi, daviplata, bancolombia o transfiyta\"\n\ndebido a que en el momento que las digan, otro asistente tomar\u00e1 la conversaci\u00f3n..."
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.8,
"position": [
-120,
-80
],
"id": "bfbe0e3f-b904-4e87-a696-d181751c3cae",
"name": "AI Agent"
},
{
"parameters": {
"model": {
"__rl": true,
"value": "gpt-4.1-mini",
"mode": "list",
"cachedResultName": "gpt-4.1-mini"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
-180,
140
],
"id": "558b590c-00ca-409d-85a3-68cbf72e4f15",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"id": "nZ98FVO8dD6bJnEc",
"name": "GPT SANTIAGO"
}
}
},
{
"parameters": {
"respondWith": "text",
"responseBody": "={{ $json.output }}",
"options": {
"responseCode": 200
}
},
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [
320,
-80
],
"id": "57f5c60b-19a2-482c-b979-95a9840e800d",
"name": "Respond to Webhook"
},
{
"parameters": {
"sessionIdType": "customKey",
"sessionKey": "=win-{{ $('Webhook').item.json.body.whatsapp }}",
"contextWindowLength": 30
},
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
-20,
160
],
"id": "087cd978-936c-4c42-92b9-2666787c74ac",
"name": "Simple Memory"
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
}
},
"authors": "system migration",
"name": null,
"description": null,
"autosaved": false
},
"activeVersionId": "c7969a01-6894-458f-80ee-c790a88c8d67",
"connections": {
"Webhook": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
}
},
"createdAt": "2025-05-07T02:33:14.840Z",
"id": "RYsPYZsVfqoUjc2L",
"isArchived": false,
"meta": {
"templateCredsSetupCompleted": true
},
"name": "[PLANTILLA][BACKEND] AGENTE IA - OBJECIONES",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "ia-typebot-p1",
"responseMode": "responseNode",
"options": {}
},
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
-460,
-80
],
"id": "cf9b1aa1-f31e-44e3-a318-7e94150662d3",
"name": "Webhook"
},
{
"parameters": {
"promptType": "define",
"text": "={\"mensaje\": \"{{ $json.body.pregunta }}\"}",
"options": {
"systemMessage": "=eres un asesor llamado daniel martinez el cual vende duolingo de manera ilegal... atiende bien a las personas, nada de \u00f1ero\n\ntu objetivo es hacer que mencionen las palabras \"nequi, daviplata, bancolombia o transfiyta\"\n\ndebido a que en el momento que las digan, otro asistente tomar\u00e1 la conversaci\u00f3n..."
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.8,
"position": [
-120,
-80
],
"id": "bfbe0e3f-b904-4e87-a696-d181751c3cae",
"name": "AI Agent"
},
{
"parameters": {
"model": {
"__rl": true,
"value": "gpt-4.1-mini",
"mode": "list",
"cachedResultName": "gpt-4.1-mini"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
-180,
140
],
"id": "558b590c-00ca-409d-85a3-68cbf72e4f15",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"respondWith": "text",
"responseBody": "={{ $json.output }}",
"options": {
"responseCode": 200
}
},
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [
320,
-80
],
"id": "57f5c60b-19a2-482c-b979-95a9840e800d",
"name": "Respond to Webhook"
},
{
"parameters": {
"sessionIdType": "customKey",
"sessionKey": "=win-{{ $('Webhook').item.json.body.whatsapp }}",
"contextWindowLength": 30
},
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
-20,
160
],
"id": "087cd978-936c-4c42-92b9-2666787c74ac",
"name": "Simple Memory"
}
],
"repo_name": "backupn8n",
"repo_owner": "Santiagociroc11",
"repo_path": "backup/",
"settings": {
"executionOrder": "v1"
},
"shared": [
{
"updatedAt": "2025-05-07T02:33:14.847Z",
"createdAt": "2025-05-07T02:33:14.847Z",
"role": "workflow:owner",
"workflowId": "RYsPYZsVfqoUjc2L",
"projectId": "703bt8e3CRxfBTYZ"
}
],
"staticData": null,
"tags": [],
"triggerCount": 1,
"updatedAt": "2025-06-06T17:03:31.000Z",
"versionId": "c7969a01-6894-458f-80ee-c790a88c8d67"
}
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
[PLANTILLA][BACKEND] AGENTE IA - OBJECIONES. Uses agent, lmChatOpenAi, memoryBufferWindow. Webhook trigger; 5 nodes.
Source: https://github.com/Santiagociroc11/backupn8n/blob/7ed65553fd994e2aa71e96ca14dbf6d412aa04ad/backup/2025/05/RYsPYZsVfqoUjc2L.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.
AI chatbot for appointment scheduling. Uses memoryBufferWindow, lmChatOpenAi, toolWorkflow, chatTrigger. Webhook trigger; 12 nodes.
InstaTest. Uses memoryBufferWindow, lmChatOpenAi, respondToWebhook, stickyNote. Webhook trigger; 11 nodes.
Once connected, GPT will automatically initiate conversations with messages from new recipients in Intagram.
A natural conversational AI chatbot that collects lead information (Name, Phone, Email, Message) one question at a time without feeling like a form. Uses session-based memory to track conversations, i
Read - Automação de Reunião. Uses agent, lmChatOpenAi, memoryBufferWindow, googleDocsTool. Webhook trigger; 9 nodes.