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 →
{
"name": "Instagram DM otomasyonu V2",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"responseMode": "responseNode",
"options": {}
},
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
-100,
-80
],
"id": "36e2b588-9662-49c4-ae91-914db20c6853",
"name": "Webhook"
},
{
"parameters": {
"respondWith": "allIncomingItems",
"options": {}
},
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [
520,
-80
],
"id": "51634882-8465-46b1-bcfe-9a7a604a73cb",
"name": "Respond to Webhook"
},
{
"parameters": {
"promptType": "define",
"text": "={{ $json.body.userInput }}",
"options": {
"systemMessage": "Buraya kendinizi veya sirketinizi tanitan bir yazi yazin."
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.8,
"position": [
140,
-80
],
"id": "0e3afebc-757a-43df-958d-fe3a4cd0bdb2",
"name": "AI Agent"
},
{
"parameters": {
"model": {
"__rl": true,
"value": "gpt-4o-mini",
"mode": "list",
"cachedResultName": "gpt-4o-mini"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
0,
140
],
"id": "c49cbf98-a7c4-46e5-92b1-a3e65185a0ee",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"sessionIdType": "customKey",
"sessionKey": "={{ $('Webhook').item.json.body.contactId }}",
"contextWindowLength": 10
},
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
160,
140
],
"id": "18f69b04-4f96-4230-b653-a93f82a56da4",
"name": "Simple Memory"
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "ad8150bf-b83d-475b-ad93-dfaabe81042b",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "pSIYLeleNzu7KVkr",
"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
Instagram DM otomasyonu V2. Uses agent, lmChatOpenAi, memoryBufferWindow. Webhook trigger; 5 nodes.
Source: https://github.com/salihoglueyup/AxiarIntelligence/blob/c67e1f0a43a1b27fda421a5393f6cf5d6a06c814/axiarautomation/n8n-free-templates-main/Instagram_DM_otomasyonu_V2.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.
consulta-cnpj. Uses agent, lmChatOpenAi, memoryBufferWindow, httpRequestTool. Webhook trigger; 11 nodes.
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