<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: johnwilson0924</title>
    <description>The latest articles on DEV Community by johnwilson0924 (@johnwilson0924).</description>
    <link>https://dev.to/johnwilson0924</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4250423%2F5d3d128a-ffd9-4fb8-90d0-36f0ca37a255.png</url>
      <title>DEV Community: johnwilson0924</title>
      <link>https://dev.to/johnwilson0924</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/johnwilson0924"/>
    <language>en</language>
    <item>
      <title>Build a WhatsApp FAQ Bot with n8n and DeepSeek (~$0.33 per 1,000 replies)</title>
      <dc:creator>johnwilson0924</dc:creator>
      <pubDate>Tue, 17 Nov 2026 18:43:50 +0000</pubDate>
      <link>https://dev.to/johnwilson0924/build-a-whatsapp-faq-bot-with-n8n-and-deepseek-033-per-1000-replies-1b7</link>
      <guid>https://dev.to/johnwilson0924/build-a-whatsapp-faq-bot-with-n8n-and-deepseek-033-per-1000-replies-1b7</guid>
      <description>&lt;p&gt;Your customers already ask the same ten questions on WhatsApp every day — opening hours, delivery, prices, payment. This tutorial wires n8n to the DeepSeek API so those questions answer themselves, for about &lt;strong&gt;USD 0.33 per 1,000 replies&lt;/strong&gt;. The workflow is three nodes, and you can import it ready-made.&lt;/p&gt;

&lt;p&gt;I run &lt;a href="https://akilinode.com" rel="noopener noreferrer"&gt;AkiliNode&lt;/a&gt;, an OpenAI-compatible API gateway for DeepSeek, GLM and Qwen priced for African developers, and this is the setup our users ask for most.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;n8n&lt;/strong&gt; — self-hosted or n8n Cloud; the free self-hosted version is fine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A WhatsApp Business number&lt;/strong&gt; — via the Meta WhatsApp Cloud API, which n8n's WhatsApp nodes connect to. A test number from Meta works for this tutorial.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An AkiliNode API key&lt;/strong&gt; — &lt;a href="https://akilinode.com/sign-up" rel="noopener noreferrer"&gt;sign up free&lt;/a&gt;, USD 0.10 test credit included; top up later with M-Pesa if you are in Kenya. AkiliNode is OpenAI-compatible, which is why the setup below is just a URL and a key.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;Three nodes, in a line:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;WhatsApp Trigger&lt;/strong&gt; — fires whenever a customer messages your business number.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HTTP Request → DeepSeek&lt;/strong&gt; — sends the customer's message, plus a system prompt containing your FAQ, to &lt;code&gt;https://api.akilinode.com/v1/chat/completions&lt;/code&gt; with model &lt;code&gt;deepseek-flash&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WhatsApp (Send Message)&lt;/strong&gt; — sends the model's answer back to the same customer.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Step 1 — Get your AkiliNode API key
&lt;/h2&gt;

&lt;p&gt;Create a free account, verify your email, then open the console's token page and create a token. Keep it handy — it goes into the workflow in Step 3. Full walkthrough in the &lt;a href="https://akilinode.com/docs/quickstart.html" rel="noopener noreferrer"&gt;quickstart&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2 — Import the workflow
&lt;/h2&gt;

&lt;p&gt;Download the ready-made workflow: &lt;a href="https://akilinode.com/guides/n8n-whatsapp-faq-bot.json" rel="noopener noreferrer"&gt;n8n-whatsapp-faq-bot.json&lt;/a&gt;. In n8n, open &lt;strong&gt;Workflows → ⋯ → Import from File&lt;/strong&gt; and select it. You will see the three nodes plus a sticky note with the same setup steps.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3 — Connect WhatsApp and paste your key
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;In the &lt;strong&gt;WhatsApp Trigger&lt;/strong&gt; node, create a credential with your Meta WhatsApp app details. n8n shows a webhook URL for the trigger — paste it into your Meta app's webhook settings so incoming messages reach n8n.&lt;/li&gt;
&lt;li&gt;In the &lt;strong&gt;Ask DeepSeek&lt;/strong&gt; node, replace &lt;code&gt;YOUR_AKILINODE_API_KEY&lt;/code&gt; in the Authorization header with your token from Step 1.&lt;/li&gt;
&lt;li&gt;In the &lt;strong&gt;Send WhatsApp Reply&lt;/strong&gt; node, connect the same WhatsApp credential. The recipient and text are already wired by expressions: the customer who just messaged you, and the model's answer (&lt;code&gt;choices[0].message.content&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is the exact request the middle node sends — the custom base URL is the whole trick, and it works because AkiliNode is OpenAI-compatible:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;POST https://api.akilinode.com/v1/chat/completions
Authorization: Bearer YOUR_AKILINODE_API_KEY
Content-Type: application/json

{
  "model": "deepseek-flash",
  "messages": [
    { "role": "system", "content": "You are the WhatsApp assistant for ... Answer using ONLY the FAQ below. ..." },
    { "role": "user", "content": "&amp;lt;the customer's WhatsApp message&amp;gt;" }
  ]
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 4 — Write your FAQ into the system prompt
&lt;/h2&gt;

&lt;p&gt;The system prompt in the workflow ships with sample questions (hours, delivery, payment, returns). Replace them with yours. Two rules that matter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tell the model to answer only from the FAQ&lt;/strong&gt; and to hand off to a human (with a real contact) when the answer is not there. This keeps a small model from inventing prices or policies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the FAQ short.&lt;/strong&gt; It is sent with every single request, so a bloated FAQ is a recurring cost on every reply. Ten crisp Q&amp;amp;As beat two pages of prose.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 5 — Test, then go live
&lt;/h2&gt;

&lt;p&gt;Send your business number a WhatsApp message ("What time do you close?") and watch the execution in n8n. Check the field paths in the expressions against your trigger's output — WhatsApp payload shapes vary slightly between setups. When the reply lands, switch the workflow to &lt;strong&gt;Active&lt;/strong&gt; and swap the test webhook for the production one.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;WhatsApp's 24-hour rule:&lt;/strong&gt; you can only send free-form replies within 24 hours of the customer's last message. A FAQ bot always replies inside that window, so it is unaffected — but don't reuse this workflow for proactive broadcasts; those need approved template messages.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What it costs
&lt;/h2&gt;

&lt;p&gt;With &lt;code&gt;deepseek-flash&lt;/code&gt; at AkiliNode prices (USD 0.33 input / USD 1.32 output per 1M tokens), a typical FAQ exchange — about 400 tokens in (FAQ + question) and 150 tokens out — costs roughly USD 0.00033:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Volume&lt;/th&gt;
&lt;th&gt;Model cost on AkiliNode&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1,000 replies&lt;/td&gt;
&lt;td&gt;≈ USD 0.33&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10,000 replies&lt;/td&gt;
&lt;td&gt;≈ USD 3.30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;One USD 5 top-up&lt;/td&gt;
&lt;td&gt;≈ 15,000 replies&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;WhatsApp conversation fees and n8n hosting are separate and depend on your setup. If some questions are too hard for Flash, route just those to &lt;code&gt;deepseek-v4-pro&lt;/code&gt; (USD 1.45 / 4.36 per 1M) — same workflow, one word changed.&lt;/p&gt;




&lt;p&gt;More examples (Python, Node, LangChain): &lt;a href="https://github.com/johnwilson0924/akilinode-examples" rel="noopener noreferrer"&gt;github.com/johnwilson0924/akilinode-examples&lt;/a&gt;&lt;br&gt;
Full tutorial on our site: &lt;a href="https://akilinode.com/guides/n8n-whatsapp-deepseek" rel="noopener noreferrer"&gt;Build a WhatsApp FAQ Bot with n8n and DeepSeek&lt;/a&gt;&lt;/p&gt;

</description>
      <category>n8n</category>
      <category>whatsapp</category>
      <category>deepseek</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
