Agent de vente conversationnel pour WooCommerce basé sur GPT-4, Stripe et l'intégration CRM
Ceci est unAI Chatbot, Multimodal AIworkflow d'automatisation du domainecontenant 27 nœuds.Utilise principalement des nœuds comme Set, GoogleDrive, HttpRequest, TelegramTool, ManualTrigger. Agent commercial conversationnel WooCommerce avec GPT-4, intégration Stripe et CRM
- •Informations d'identification Google Drive API
- •Peut nécessiter les informations d'identification d'authentification de l'API cible
- •Token Bot Telegram
- •Clé API OpenAI
- •Informations de connexion au serveur Qdrant
- •Clé API Google Gemini
Nœuds utilisés (27)
Catégorie
{
"meta": {
"instanceId": "783d2046f405cc6ecb20ef185376ed1023323a3da628b9d8156b1fb75c75e037",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "6ba11958-a915-44d5-828d-5502e020848f",
"name": "À la réception du message",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
240,
-496
],
"webhookId": "SALES-CHAT-TRIGGER",
"parameters": {
"options": {}
},
"typeVersion": 1.1
},
{
"id": "b4c04258-79b5-4c46-94c7-969d837a6857",
"name": "Au clic 'Execute workflow'",
"type": "n8n-nodes-base.manualTrigger",
"position": [
224,
-1216
],
"parameters": {},
"typeVersion": 1
},
{
"id": "b9a981fb-41eb-455a-9078-f91bdbed110d",
"name": "Edit Fields1",
"type": "n8n-nodes-base.set",
"position": [
448,
-496
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "s1",
"name": "sessionId",
"type": "string",
"value": "={{ $json.sessionId }}"
},
{
"id": "s2",
"name": "chatInput",
"type": "string",
"value": "={{ $json.chatInput }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "f94da395-1334-4466-8d5a-d300a70f5119",
"name": "Window Buffer Mémoire1",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
1168,
-224
],
"parameters": {
"sessionKey": "={{ $('Edit Fields1').item.json.sessionId }}",
"sessionIdType": "customKey",
"contextWindowLength": 12
},
"typeVersion": 1.3
},
{
"id": "f4c91458-29e6-4814-a64d-e512ac5da230",
"name": "Sales Info Extractor1",
"type": "@n8n/n8n-nodes-langchain.informationExtractor",
"position": [
672,
-496
],
"parameters": {
"text": "={{ $json.chatInput }}",
"options": {
"systemPromptTemplate": "You extract buyer intent (product|faq|payment|lead) and fields (keyword, sku, min_price, max_price, name, email). Prices are numbers only. Do not hallucinate."
},
"schemaType": "manual",
"inputSchema": "{\n \"intents\": { \"product\": true, \"faq\": true, \"payment\": true, \"lead\": true },\n \"fields\": {\n \"keyword\": \"\",\n \"sku\": \"\",\n \"min_price\": \"\",\n \"max_price\": \"\",\n \"name\": \"\",\n \"email\": \"\"\n }\n}"
},
"typeVersion": 1
},
{
"id": "e102585a-a1a8-48b6-afdb-ed4eb69a638e",
"name": "Modèle de chat OpenAI (Extractor)1",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
768,
-336
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "TmPSRVY5JCpWCR5d",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "562d9402-9902-4eb3-a6ca-a87f388b45e7",
"name": "Sales Agent IA1",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1200,
-496
],
"parameters": {
"options": {
"systemMessage": "=## Role\nYou are Sales AI Agent. Use tools only.\n\n## Routing\n- If extractor.intents.faq = true => use RAG_FAQ.\n- If extractor.intents.product = true => PRODUCT_SEARCH_WOO, then INVENTORY_DETAIL_WOO for shortlisted SKU.\n- If extractor.intents.payment = true => PAYMENT_LINK.\n- If name+email present => CRM_LEAD.\n- If blocked/unsure => HUMAN_ESCALATION.\n\n## Output\n- List products as: Title | Price | In stock | URL/Handle | SKU.\n- Always propose next actions: (1) Xem thêm lựa chọn, (2) Lấy link thanh toán, (3) Nói chuyện với tư vấn viên.\n\nToday is {{$now}}."
}
},
"typeVersion": 1.8
},
{
"id": "2ab2d2c1-5182-49d0-911f-85b6f2349070",
"name": "Modèle de chat OpenAI (Agent)1",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1040,
-224
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "TmPSRVY5JCpWCR5d",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "5469d03d-4a0f-410f-afc8-09083f697395",
"name": "Qdrant Stockage vectoriel (runtime)1",
"type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
"position": [
1248,
-64
],
"parameters": {
"options": {},
"qdrantCollection": {
"__rl": true,
"mode": "list",
"value": "sales_docs",
"cachedResultName": "sales_docs"
}
},
"credentials": {
"qdrantApi": {
"id": "WuffyG4RFaqOwLb4",
"name": "QdrantApi account"
}
},
"typeVersion": 1
},
{
"id": "c3d1075f-e019-4e47-92ca-0efc5d937c3f",
"name": "RAG_FAQ1",
"type": "@n8n/n8n-nodes-langchain.toolVectorStore",
"position": [
1328,
-256
],
"parameters": {
"name": "RAG_FAQ",
"description": "Answer FAQs/policies/specs from vector store"
},
"typeVersion": 1
},
{
"id": "4cbfa8de-aae7-4d9e-bc76-42e002b92a27",
"name": "Incorporations OpenAI (runtime)1",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"position": [
1248,
80
],
"parameters": {
"options": {}
},
"credentials": {
"openAiApi": {
"id": "TmPSRVY5JCpWCR5d",
"name": "OpenAi account"
}
},
"typeVersion": 1.1
},
{
"id": "eb21abb7-76c0-4353-874c-0138a6581b84",
"name": "PRODUCT_SEARCH_WOO1",
"type": "n8n-nodes-base.wooCommerceTool",
"position": [
1728,
-208
],
"parameters": {
"options": {
"sku": "={{ $('Sales Info Extractor1').item.json.fields.sku }}",
"search": "={{ $('Sales Info Extractor1').item.json.fields.keyword }}",
"maxPrice": "={{ $('Sales Info Extractor1').item.json.fields.max_price }}",
"minPrice": "={{ $('Sales Info Extractor1').item.json.fields.min_price }}",
"stockStatus": "instock"
},
"operation": "getAll"
},
"credentials": {
"wooCommerceApi": {
"id": "xEyvCU5Qw9lQh7WS",
"name": "WooCommerce account"
}
},
"typeVersion": 1
},
{
"id": "c608958f-cda9-42f2-9ce4-86a02a8e1f0b",
"name": "INVENTORY_DETAIL_WOO1",
"type": "n8n-nodes-base.wooCommerceTool",
"position": [
1904,
-208
],
"parameters": {
"operation": "get",
"productId": "={{ $fromAI('product_id', '', 'string') }}"
},
"credentials": {
"wooCommerceApi": {
"id": "xEyvCU5Qw9lQh7WS",
"name": "WooCommerce account"
}
},
"typeVersion": 1
},
{
"id": "68eb6073-8be1-4f3b-88fc-9c28fa7b8a63",
"name": "PAYMENT_LINK1",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
1712,
-384
],
"parameters": {
"name": "paymentLinkAgent",
"workflowId": {
"__rl": true,
"mode": "list",
"value": "PAYLINK-AGENT-ID",
"cachedResultName": "Payment Link Agent"
},
"description": "Create a Stripe payment link for chosen items",
"workflowInputs": {
"value": {},
"schema": [],
"mappingMode": "defineBelow",
"matchingColumns": []
}
},
"typeVersion": 2
},
{
"id": "965d4268-2fd0-4d8b-9957-38001836ee21",
"name": "CRM_LEAD1",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
1888,
-384
],
"parameters": {
"name": "crmAgent",
"workflowId": {
"__rl": true,
"mode": "list",
"value": "CRM-AGENT-ID",
"cachedResultName": "CRM Agent"
},
"description": "Create/Update lead in CRM (HubSpot/Pipedrive)",
"workflowInputs": {
"value": {},
"schema": [],
"mappingMode": "defineBelow",
"matchingColumns": []
}
},
"typeVersion": 2
},
{
"id": "d1f0bbeb-4fa0-48a6-907f-33ca8aed1a32",
"name": "HUMAN_ESCALATION1",
"type": "n8n-nodes-base.telegramTool",
"position": [
2096,
-208
],
"webhookId": "ESCALATE-TELEGRAM",
"parameters": {
"text": "={{ $fromAI('Text', '', 'string') }}",
"chatId": "SALES-ESCALATION-CHAT",
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "uxQixTID04QTjn2f",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "c3ee1206-bc01-499d-a687-fb044d0996e8",
"name": "Qdrant Wipe1",
"type": "n8n-nodes-base.httpRequest",
"position": [
432,
-1216
],
"parameters": {
"url": "=https://xxxxxxxxxx.qdrant.io:6333/collections/sales_docs/points/delete",
"method": "POST",
"options": {},
"jsonBody": "{\n \"filter\": {}\n}",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "NnFliEyH7K6sFnlI",
"name": "Header Auth account"
}
},
"typeVersion": 4.2
},
{
"id": "d901677d-46d4-4891-a289-a626b19f419c",
"name": "Google Drive: List1",
"type": "n8n-nodes-base.googleDrive",
"position": [
624,
-1216
],
"parameters": {
"filter": {
"driveId": {
"__rl": true,
"mode": "list",
"value": "My Drive",
"cachedResultName": "My Drive"
},
"folderId": {
"__rl": true,
"mode": "list",
"value": "DRIVE_FOLDER_ID",
"cachedResultName": "Sales Docs"
}
},
"options": {},
"resource": "fileFolder"
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "7ksMk3zwMvT2CToN",
"name": "Google Drive account"
}
},
"typeVersion": 3
},
{
"id": "ac729d26-43f7-46db-ad7c-81523ebaa0a8",
"name": "Google Drive: Download1",
"type": "n8n-nodes-base.googleDrive",
"position": [
832,
-1216
],
"parameters": {
"fileId": {
"__rl": true,
"mode": "id",
"value": "={{ $json.id }}"
},
"options": {
"googleFileConversion": {
"conversion": {
"docsToFormat": "text/plain"
}
}
},
"operation": "download"
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "7ksMk3zwMvT2CToN",
"name": "Google Drive account"
}
},
"typeVersion": 3
},
{
"id": "936e6bf5-06f3-469d-82e6-04b4e6f5d9fe",
"name": "Default Data Loader1",
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
"position": [
1120,
-1024
],
"parameters": {
"options": {},
"dataType": "binary"
},
"typeVersion": 1
},
{
"id": "12b5d80d-3c78-47e4-960c-93396dc6a252",
"name": "Token Splitter1",
"type": "@n8n/n8n-nodes-langchain.textSplitterTokenSplitter",
"position": [
1120,
-880
],
"parameters": {
"chunkSize": 300,
"chunkOverlap": 30
},
"typeVersion": 1
},
{
"id": "aedd2f0f-fd7b-4f44-b8c7-fa497e9b8485",
"name": "Incorporations OpenAI (build)1",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"position": [
992,
-1008
],
"parameters": {
"options": {}
},
"credentials": {
"openAiApi": {
"id": "TmPSRVY5JCpWCR5d",
"name": "OpenAi account"
}
},
"typeVersion": 1.1
},
{
"id": "db9980d3-176b-4236-b002-ec552c023118",
"name": "Qdrant Stockage vectoriel (insert)1",
"type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
"position": [
1040,
-1216
],
"parameters": {
"mode": "insert",
"options": {},
"qdrantCollection": {
"__rl": true,
"mode": "list",
"value": "sales_docs",
"cachedResultName": "sales_docs"
}
},
"credentials": {
"qdrantApi": {
"id": "WuffyG4RFaqOwLb4",
"name": "QdrantApi account"
}
},
"typeVersion": 1
},
{
"id": "6ce8870c-9150-44cb-86e2-ef55a2f0931f",
"name": "Modèle de chat Google Gemini1",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
1536,
-64
],
"parameters": {
"options": {}
},
"credentials": {
"googlePalmApi": {
"id": "Atcc45Iqep6u15qs",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "7d78df3f-98d7-4d53-af20-ad6dd1ca1d3c",
"name": "Note adhésive",
"type": "n8n-nodes-base.stickyNote",
"position": [
208,
-320
],
"parameters": {
"color": 5,
"width": 528,
"height": 320,
"content": "🛒 **WooCommerce AI Sales Agent – Overview**\n\nThis workflow turns n8n into an **AI-powered sales assistant** for WooCommerce. \nIt can: \n- Detect customer intent (FAQ, product search, payment, lead capture). \n- Search products directly in WooCommerce and show stock details. \n- Answer FAQs using RAG with Qdrant + Google Drive documents. \n- Generate Stripe payment links for checkout. \n- Capture leads into CRM (HubSpot/Pipedrive). \n- Escalate unclear cases to human agents via Telegram. \n\nResult: A **24/7 automated sales agent** that helps customers from discovery → payment → lead capture.\n"
},
"typeVersion": 1
},
{
"id": "6462a494-08bc-43ef-ac60-405f1a5861bb",
"name": "Note adhésive1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-496,
-720
],
"parameters": {
"color": 3,
"width": 528,
"height": 256,
"content": "⚙️ **Setup & Customization Notes**\n\nBefore using this workflow: \n1. 🔑 Connect credentials: WooCommerce API, Stripe, CRM, Google Drive, OpenAI/Gemini, Qdrant, Telegram. \n2. 🌍 Adjust language/localization (`hl`, `gl`) if needed for your market. \n3. 📂 Update Google Drive folder ID where your sales docs are stored. \n4. 🗑️ Use “Qdrant Wipe” if you want to re-index fresh documents. \n5. ✏️ Customize agent’s response style (formal, casual, short/long) in the `Sales AI Agent` system prompt. \n"
},
"typeVersion": 1
},
{
"id": "e2641b81-60fb-48c2-b763-a3b55864fa44",
"name": "Note adhésive2",
"type": "n8n-nodes-base.stickyNote",
"position": [
208,
-1056
],
"parameters": {
"color": 5,
"width": 528,
"height": 352,
"content": "📂 **Knowledge Base Update Flow**\n\nPurpose: Keeps the AI’s FAQ knowledge accurate and up to date. \n\nHow it works: \n1. **Trigger (Manual Execute)** → Run when you want to refresh the knowledge base. \n2. **Qdrant Wipe** → Clears all old vectors. \n3. **Google Drive List & Download** → Loads all sales/policy documents from the configured folder. \n4. **Splitter + Embeddings** → Splits text into chunks and creates embeddings. \n5. **Qdrant Insert** → Stores embeddings in vector DB for retrieval (RAG). \n\n💡 Use this flow whenever sales policies, product docs, or FAQs are updated. \n"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"c3d1075f-e019-4e47-92ca-0efc5d937c3f": {
"ai_tool": [
[
{
"node": "Sales AI Agent1",
"type": "ai_tool",
"index": 0
}
]
]
},
"965d4268-2fd0-4d8b-9957-38001836ee21": {
"ai_tool": [
[
{
"node": "Sales AI Agent1",
"type": "ai_tool",
"index": 0
}
]
]
},
"b9a981fb-41eb-455a-9078-f91bdbed110d": {
"main": [
[
{
"node": "f4c91458-29e6-4814-a64d-e512ac5da230",
"type": "main",
"index": 0
}
]
]
},
"c3ee1206-bc01-499d-a687-fb044d0996e8": {
"main": [
[
{
"node": "d901677d-46d4-4891-a289-a626b19f419c",
"type": "main",
"index": 0
}
]
]
},
"68eb6073-8be1-4f3b-88fc-9c28fa7b8a63": {
"ai_tool": [
[
{
"node": "Sales AI Agent1",
"type": "ai_tool",
"index": 0
}
]
]
},
"12b5d80d-3c78-47e4-960c-93396dc6a252": {
"ai_textSplitter": [
[
{
"node": "936e6bf5-06f3-469d-82e6-04b4e6f5d9fe",
"type": "ai_textSplitter",
"index": 0
}
]
]
},
"d1f0bbeb-4fa0-48a6-907f-33ca8aed1a32": {
"ai_tool": [
[
{
"node": "Sales AI Agent1",
"type": "ai_tool",
"index": 0
}
]
]
},
"d901677d-46d4-4891-a289-a626b19f419c": {
"main": [
[
{
"node": "ac729d26-43f7-46db-ad7c-81523ebaa0a8",
"type": "main",
"index": 0
}
]
]
},
"eb21abb7-76c0-4353-874c-0138a6581b84": {
"ai_tool": [
[
{
"node": "Sales AI Agent1",
"type": "ai_tool",
"index": 0
}
]
]
},
"936e6bf5-06f3-469d-82e6-04b4e6f5d9fe": {
"ai_document": [
[
{
"node": "Qdrant Vector Store (insert)1",
"type": "ai_document",
"index": 0
}
]
]
},
"c608958f-cda9-42f2-9ce4-86a02a8e1f0b": {
"ai_tool": [
[
{
"node": "Sales AI Agent1",
"type": "ai_tool",
"index": 0
}
]
]
},
"f4c91458-29e6-4814-a64d-e512ac5da230": {
"main": [
[
{
"node": "Sales AI Agent1",
"type": "main",
"index": 0
}
]
]
},
"Window Buffer Memory1": {
"ai_memory": [
[
{
"node": "Sales AI Agent1",
"type": "ai_memory",
"index": 0
}
]
]
},
"ac729d26-43f7-46db-ad7c-81523ebaa0a8": {
"main": [
[
{
"node": "Qdrant Vector Store (insert)1",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model1": {
"ai_languageModel": [
[
{
"node": "c3d1075f-e019-4e47-92ca-0efc5d937c3f",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Embeddings OpenAI (build)1": {
"ai_embedding": [
[
{
"node": "Qdrant Vector Store (insert)1",
"type": "ai_embedding",
"index": 0
}
]
]
},
"OpenAI Chat Model (Agent)1": {
"ai_languageModel": [
[
{
"node": "Sales AI Agent1",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"When chat message received": {
"main": [
[
{
"node": "b9a981fb-41eb-455a-9078-f91bdbed110d",
"type": "main",
"index": 0
}
]
]
},
"Embeddings OpenAI (runtime)1": {
"ai_embedding": [
[
{
"node": "Qdrant Vector Store (runtime)1",
"type": "ai_embedding",
"index": 0
}
]
]
},
"OpenAI Chat Model (Extractor)1": {
"ai_languageModel": [
[
{
"node": "f4c91458-29e6-4814-a64d-e512ac5da230",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Qdrant Vector Store (runtime)1": {
"ai_vectorStore": [
[
{
"node": "c3d1075f-e019-4e47-92ca-0efc5d937c3f",
"type": "ai_vectorStore",
"index": 0
}
]
]
},
"When clicking 'Execute workflow'": {
"main": [
[
{
"node": "c3ee1206-bc01-499d-a687-fb044d0996e8",
"type": "main",
"index": 0
}
]
]
}
}
}Comment utiliser ce workflow ?
Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.
Dans quelles scénarios ce workflow est-il adapté ?
Avancé - Chatbot IA, IA Multimodale
Est-ce payant ?
Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.
Workflows recommandés
Cong Nguyen
@cong-nguyenI’m a developer specialized in building web and mobile applications with AI integration and intelligent automation. With a solid background in data science, I help businesses build smarter digital solutions using cutting-edge technologies.
Partager ce workflow