{"connections":{"Ask DeepSeek (AkiliNode)":{"main":[[{"index":0,"node":"Send WhatsApp Reply","type":"main"}]]},"WhatsApp Trigger":{"main":[[{"index":0,"node":"Ask DeepSeek (AkiliNode)","type":"main"}]]}},"meta":{"templateCredsSetupCompleted":false},"name":"WhatsApp FAQ Bot — n8n + DeepSeek (AkiliNode)","nodes":[{"id":"note-setup","name":"Setup notes","parameters":{"color":4,"content":"## WhatsApp FAQ Bot — setup\n\n1. **WhatsApp Trigger** — connect your WhatsApp Business credentials (Meta Cloud API). Copy this workflow's webhook URL into your Meta app so incoming messages reach n8n.\n2. **Ask DeepSeek** — replace `YOUR_AKILINODE_API_KEY` with your AkiliNode token (https://akilinode.com) and edit the FAQ inside the system prompt. Keep the FAQ short: it is sent with every request.\n3. **Send WhatsApp Reply** — connect the same WhatsApp credentials. The recipient is the customer who just messaged you, and the text is the model's answer.\n\nThen test with a real WhatsApp message and switch the workflow to Active.","height":320,"width":460},"position":[240,300],"type":"n8n-nodes-base.stickyNote","typeVersion":1},{"id":"node-whatsapp-trigger","name":"WhatsApp Trigger","parameters":{"options":{},"updates":["messages"]},"position":[760,420],"type":"n8n-nodes-base.whatsAppTrigger","typeVersion":1,"webhookId":"akilinode-whatsapp-faq"},{"id":"node-ask-deepseek","name":"Ask DeepSeek (AkiliNode)","parameters":{"contentType":"json","headerParameters":{"parameters":[{"name":"Authorization","value":"Bearer YOUR_AKILINODE_API_KEY"},{"name":"Content-Type","value":"application/json"}]},"jsonBody":"={\n  \"model\": \"deepseek-flash\",\n  \"messages\": [\n    {\n      \"role\": \"system\",\n      \"content\": \"You are the WhatsApp assistant for YOUR BUSINESS NAME. Answer customer questions briefly and politely, using ONLY the FAQ below. If the answer is not in the FAQ, say you will connect them with a person and give the contact: YOUR CONTACT.\\n\\nFAQ:\\n- Opening hours: Mon-Sat, 8:00-18:00.\\n- Delivery: within Nairobi in 1-2 days, KES 250. Free for orders over KES 5,000.\\n- Payment: M-Pesa Till 123456.\\n- Returns: within 7 days with receipt.\"\n    },\n    {\n      \"role\": \"user\",\n      \"content\": \"{{ $json.messages[0].text.body }}\"\n    }\n  ]\n}","method":"POST","options":{"timeout":60000},"sendBody":true,"sendHeaders":true,"specifyBody":"json","url":"https://api.akilinode.com/v1/chat/completions"},"position":[1020,420],"type":"n8n-nodes-base.httpRequest","typeVersion":4.2},{"id":"node-send-reply","name":"Send WhatsApp Reply","parameters":{"operation":"sendText","options":{},"text":"={{ $json.choices[0].message.content }}","to":"={{ $('WhatsApp Trigger').first().json.messages[0].from }}"},"position":[1280,420],"type":"n8n-nodes-base.whatsApp","typeVersion":1}],"pinData":{}}