Created
March 8, 2025 22:53
-
-
Save dodyw/bac26662580933475b34d0a70583e79c to your computer and use it in GitHub Desktop.
N8N shopify chatbot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "chatbot shopify v0.1", | |
"nodes": [ | |
{ | |
"parameters": { | |
"options": {} | |
}, | |
"type": "@n8n/n8n-nodes-langchain.chatTrigger", | |
"typeVersion": 1.1, | |
"position": [ | |
0, | |
0 | |
], | |
"id": "0e1ebde9-b0b5-4ade-b3ec-ea5ad47c8299", | |
"name": "When chat message received", | |
"webhookId": "63afcee1-7b8a-42ca-af3d-ed3d50264e4c" | |
}, | |
{ | |
"parameters": { | |
"options": {} | |
}, | |
"type": "@n8n/n8n-nodes-langchain.agent", | |
"typeVersion": 1.8, | |
"position": [ | |
180, | |
20 | |
], | |
"id": "9682a867-899c-4c62-ab57-d16efccbe1af", | |
"name": "AI Agent" | |
}, | |
{ | |
"parameters": { | |
"model": "gpt-4o", | |
"options": {} | |
}, | |
"type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi", | |
"typeVersion": 1, | |
"position": [ | |
120, | |
240 | |
], | |
"id": "046bd0fa-1cf3-4b4d-a859-e26e45a1b0eb", | |
"name": "Azure OpenAI Chat Model", | |
"credentials": { | |
"azureOpenAiApi": { | |
"id": "hT18S4UUofwzehMC", | |
"name": "Azure Open AI account" | |
} | |
} | |
}, | |
{ | |
"parameters": {}, | |
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", | |
"typeVersion": 1.3, | |
"position": [ | |
320, | |
280 | |
], | |
"id": "8fa4f4be-d58a-4bc1-abe5-5d1a8e29803d", | |
"name": "Simple Memory" | |
}, | |
{ | |
"parameters": { | |
"descriptionType": "manual", | |
"toolDescription": "Consume Shopify API to find products", | |
"authentication": "accessToken", | |
"resource": "product", | |
"operation": "getAll", | |
"additionalFields": {} | |
}, | |
"type": "n8n-nodes-base.shopifyTool", | |
"typeVersion": 1, | |
"position": [ | |
500, | |
260 | |
], | |
"id": "9b09772f-89ff-4dce-a089-440c0d5da049", | |
"name": "Search products", | |
"credentials": { | |
"shopifyAccessTokenApi": { | |
"id": "gNdAw2tc8GuIEKPj", | |
"name": "Shopify Access Token account" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"descriptionType": "manual", | |
"toolDescription": "Consume Shopify API, ask require email and quantity, mark all order as unpaid", | |
"authentication": "accessToken", | |
"additionalFields": { | |
"email": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Email', ``, 'string') }}" | |
}, | |
"limeItemsUi": { | |
"lineItemValues": [ | |
{ | |
"productId": "={{ $fromAI('id', ``, 'string') }}\n", | |
"title": "={{ $fromAI('title', ``, 'string') }}", | |
"quantity": "={{ $fromAI('quantity', ``, 'string') }}", | |
"price": "={{ $fromAI('price', ``, 'string') }}" | |
} | |
] | |
} | |
}, | |
"type": "n8n-nodes-base.shopifyTool", | |
"typeVersion": 1, | |
"position": [ | |
660, | |
240 | |
], | |
"id": "d8f9bb35-e6d7-4683-b781-690da4d62e0c", | |
"name": "Create an order", | |
"credentials": { | |
"shopifyAccessTokenApi": { | |
"id": "gNdAw2tc8GuIEKPj", | |
"name": "Shopify Access Token account" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"descriptionType": "manual", | |
"toolDescription": "Consume Shopify API get product details, input is the product id\n", | |
"authentication": "accessToken", | |
"resource": "product", | |
"operation": "get", | |
"productId": "={{ $fromAI('id', ``, 'string') }}", | |
"additionalFields": {} | |
}, | |
"type": "n8n-nodes-base.shopifyTool", | |
"typeVersion": 1, | |
"position": [ | |
800, | |
160 | |
], | |
"id": "d705ff60-8490-40d4-9384-c1636f8314c1", | |
"name": "Get product details", | |
"credentials": { | |
"shopifyAccessTokenApi": { | |
"id": "gNdAw2tc8GuIEKPj", | |
"name": "Shopify Access Token account" | |
} | |
} | |
} | |
], | |
"pinData": {}, | |
"connections": { | |
"When chat message received": { | |
"main": [ | |
[ | |
{ | |
"node": "AI Agent", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Azure 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 | |
} | |
] | |
] | |
}, | |
"Search products": { | |
"ai_tool": [ | |
[ | |
{ | |
"node": "AI Agent", | |
"type": "ai_tool", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Create an order": { | |
"ai_tool": [ | |
[ | |
{ | |
"node": "AI Agent", | |
"type": "ai_tool", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Get product details": { | |
"ai_tool": [ | |
[ | |
{ | |
"node": "AI Agent", | |
"type": "ai_tool", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"AI Agent": { | |
"main": [ | |
[] | |
] | |
} | |
}, | |
"active": true, | |
"settings": { | |
"executionOrder": "v1" | |
}, | |
"versionId": "759698df-20c9-4c83-8e28-592e92703c64", | |
"meta": { | |
"templateCredsSetupCompleted": true, | |
"instanceId": "47552c5062ce0473e6c49259d327abdc4d5b80b11be757a286d3f1792fcdf168" | |
}, | |
"id": "wQZ0DoFNanNkLzkW", | |
"tags": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment