{"id":88991,"date":"2026-08-18T20:17:08","date_gmt":"2026-08-18T20:17:08","guid":{"rendered":"https:\/\/www.autoforwardtext.com\/blog\/?p=88991"},"modified":"2026-08-18T19:01:50","modified_gmt":"2026-08-18T19:01:50","slug":"connect-whatsapp-to-n8n-ai-automation","status":"publish","type":"post","link":"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/","title":{"rendered":"How to Connect WhatsApp to n8n with Webhooks, AI and Reply API"},"content":{"rendered":"\n<style data-wp-block-html=\"css\">\n    ul, ol { padding-left: 24px; }\n    li { margin-bottom: 8px; }\n    .lead { font-size: 19px; color: #374151; }\n    .box { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px; margin: 24px 0; }\n    .cta { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 16px; padding: 24px; margin: 34px 0; }\n    .cta h2, .cta h3 { margin-top: 0; border: 0; padding-bottom: 0; }\n    .button { display: inline-block; background: #2563eb; color: #ffffff !important; padding: 12px 18px; border-radius: 8px; margin-top: 10px; text-decoration: none; }\n    .note { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px; padding: 18px; margin: 24px 0; }\n    .warning { background: #fef2f2; border: 1px solid #fecaca; border-radius: 14px; padding: 18px; margin: 24px 0; }\n    table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }\n    th, td { border: 1px solid #e5e7eb; padding: 12px; text-align: left; vertical-align: top; }\n    th { background: #f3f4f6; color: #111827; }\n    code { background: #f3f4f6; padding: 2px 6px; border-radius: 5px; font-size: 90%; }\n    pre { background: #111827; color: #f9fafb; padding: 18px; border-radius: 12px; overflow-x: auto; font-size: 14px; line-height: 1.55; }\n    pre code { background: transparent; color: inherit; padding: 0; }\n    .toc { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px; margin: 28px 0; }\n    .toc h2 { margin-top: 0; border: 0; padding-bottom: 0; font-size: 24px; }\n    .example-message { background: #f8fafc; border-left: 5px solid #2563eb; padding: 18px; margin: 22px 0; border-radius: 10px; }\n    .image-placeholder { border: 2px dashed #cbd5e1; background: #f8fafc; color: #475569; border-radius: 14px; padding: 18px; margin: 26px 0; font-size: 15px; }\n    .flow { text-align: center; font-size: 17px; line-height: 1.9; }\n<\/style>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"lead wp-block-paragraph\">You can use n8n to receive an incoming WhatsApp message, send it to an AI Agent, and automatically return the generated answer to the original WhatsApp conversation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The useful part is that n8n does not need to manage the WhatsApp connection itself. AutoForward Text handles the messaging connection and forwards each incoming message to an n8n webhook together with a message-specific reply endpoint.<\/p>\n\n\n\n<div class=\"box\">\n<p><strong>What we&#8217;re building:<\/strong><\/p>\n<div class=\"flow\">\n    WhatsApp<br>\n    \u2193<br>\n    AutoForward Text<br>\n    \u2193<br>\n    n8n Webhook<br>\n    \u2193<br>\n    AI Agent<br>\n    \u2193<br>\n    AutoForward Text Reply API<br>\n    \u2193<br>\n    WhatsApp\n  <\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The core n8n workflow is simple: a <strong>Webhook<\/strong> node receives the message, an <strong>AI Agent<\/strong> generates the answer, and an <strong>HTTP Request<\/strong> node posts that answer to the <code>reply.endpoint<\/code> supplied with the incoming message.<\/p>\n\n\n\n<iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/O366yhBMk0M?si=FyyHT2jzU5EJUB-z\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Before_You_Start\" >Before You Start<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Step_1_Connect_WhatsApp\" >Step 1: Connect WhatsApp<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Step_2_Create_an_n8n_Webhook\" >Step 2: Create an n8n Webhook<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Step_3_Forward_WhatsApp_Messages_to_n8n\" >Step 3: Forward WhatsApp Messages to n8n<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Step_4_Add_an_n8n_AI_Agent\" >Step 4: Add an n8n AI Agent<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Optional_Give_the_Agent_Conversation_Memory\" >Optional: Give the Agent Conversation Memory<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Step_5_Create_an_AutoForward_Text_API_Key\" >Step 5: Create an AutoForward Text API Key<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Step_6_POST_the_AI_Response_to_replyendpoint\" >Step 6: POST the AI Response to reply.endpoint<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Method\" >Method<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#URL\" >URL<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Headers\" >Headers<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#JSON_Body\" >JSON Body<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Step_7_Activate_and_Test_the_Workflow\" >Step 7: Activate and Test the Workflow<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#What_Happens_When_WhatsApp_Requires_a_Template\" >What Happens When WhatsApp Requires a Template?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Troubleshooting\" >Troubleshooting<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Where_to_Take_the_Workflow_Next\" >Where to Take the Workflow Next<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Frequently_Asked_Questions\" >Frequently Asked Questions<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Can_n8n_receive_incoming_WhatsApp_messages\" >Can n8n receive incoming WhatsApp messages?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Can_an_n8n_AI_Agent_automatically_reply_to_WhatsApp\" >Can an n8n AI Agent automatically reply to WhatsApp?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Does_n8n_need_the_WhatsApp_chat_ID\" >Does n8n need the WhatsApp chat ID?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Which_n8n_nodes_are_required\" >Which n8n nodes are required?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Should_I_use_the_n8n_test_or_production_webhook_URL\" >Should I use the n8n test or production webhook URL?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Can_the_AI_Agent_remember_previous_WhatsApp_messages\" >Can the AI Agent remember previous WhatsApp messages?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#How_do_I_prevent_duplicate_WhatsApp_replies\" >How do I prevent duplicate WhatsApp replies?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Can_I_use_n8n_without_AI\" >Can I use n8n without AI?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#What_happens_if_WhatsApp_requires_an_approved_template\" >What happens if WhatsApp requires an approved template?<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-27\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Final_Thoughts\" >Final Thoughts<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-28\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#Connect_WhatsApp_to_Your_n8n_Workflow\" >Connect WhatsApp to Your n8n Workflow<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Before_You_Start\"><\/span>Before You Start<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You will need:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>An AutoForward Text account<\/li>\n\n\n\n<li>A WhatsApp account connected to AutoForward Text<\/li>\n\n\n\n<li>An n8n account or self-hosted n8n instance that can receive public webhooks<\/li>\n\n\n\n<li>An AI model credential supported by your n8n AI Agent setup<\/li>\n\n\n\n<li>An AutoForward Text API key with reply permission<\/li>\n<\/ul>\n\n\n\n<div class=\"note\">\n<p><strong>Build this in stages.<\/strong> First confirm WhatsApp is receiving messages. Then confirm the n8n webhook receives the payload. Add the AI Agent after that, and add the outgoing Reply API request last.<\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_Connect_WhatsApp\"><\/span>Step 1: Connect WhatsApp<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you do not already have an account, sign up at <a href=\"https:\/\/www.autoforwardtext.com\/\">AutoForwardText.com<\/a> and log in to your dashboard.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, open <strong>WhatsApp Accounts<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">AutoForward Text provides two ways to connect WhatsApp. You can connect an existing WhatsApp account using a <strong>QR code<\/strong>, or connect an official <strong>WhatsApp Cloud API<\/strong> account.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/new-whatsapp-accounts.jpeg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/new-whatsapp-accounts-1024x640.jpeg\" alt=\"\" class=\"wp-image-88994\" srcset=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/new-whatsapp-accounts-1024x640.jpeg 1024w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/new-whatsapp-accounts-300x188.jpeg 300w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/new-whatsapp-accounts-768x480.jpeg 768w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/new-whatsapp-accounts-1536x960.jpeg 1536w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/new-whatsapp-accounts.jpeg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">For this tutorial, we will use an already connected WhatsApp Cloud API account.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/whatsapp-cloud-app-connected-1.jpeg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/whatsapp-cloud-app-connected-1-1024x640.jpeg\" alt=\"\" class=\"wp-image-88996\" srcset=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/whatsapp-cloud-app-connected-1-1024x640.jpeg 1024w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/whatsapp-cloud-app-connected-1-300x188.jpeg 300w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/whatsapp-cloud-app-connected-1-768x480.jpeg 768w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/whatsapp-cloud-app-connected-1.jpeg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Before configuring n8n, send a normal WhatsApp message from another number and confirm that it appears in the AutoForward Text message log.<\/p>\n\n\n\n<div class=\"example-message\">\n<p><strong>Example test message:<\/strong><\/p>\n<p>Hi, can someone help me choose the right plan?<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">If the message reaches AutoForward Text, the WhatsApp side is working and you can move on to n8n.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Create_an_n8n_Webhook\"><\/span>Step 2: Create an n8n Webhook<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Create a new workflow in n8n.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Add a <strong>Webhook<\/strong> node as the workflow trigger.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Set the HTTP method to:<\/p>\n\n\n\n<div class=\"box\">\n<p><code>POST<\/code><\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">You can use a path such as:<\/p>\n\n\n\n<div class=\"box\">\n<p><code>whatsapp-ai-agent<\/code><\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">n8n provides both a test webhook URL and a production webhook URL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use the <strong>test URL<\/strong> while building the workflow and waiting for a sample payload. Once the workflow is ready and active, use the <strong>production URL<\/strong> in AutoForward Text.<\/p>\n\n\n\n<div class=\"warning\">\n<p><strong>Do not leave the test webhook URL configured for a production workflow.<\/strong> The test URL is intended for workflow development while n8n is listening for a test event.<\/p>\n<\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/n8n-webhook-test-url-screenshot-1024x640.jpeg\" alt=\"\" class=\"wp-image-89000\" srcset=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/n8n-webhook-test-url-screenshot-1024x640.jpeg 1024w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/n8n-webhook-test-url-screenshot-300x188.jpeg 300w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/n8n-webhook-test-url-screenshot-768x480.jpeg 768w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/n8n-webhook-test-url-screenshot-1536x960.jpeg 1536w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/n8n-webhook-test-url-screenshot.jpeg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3_Forward_WhatsApp_Messages_to_n8n\"><\/span>Step 3: Forward WhatsApp Messages to n8n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Copy the n8n webhook URL and return to AutoForward Text.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open the forwarding settings for the connected WhatsApp account, enable <strong>Webhook Forwarding<\/strong>, paste the n8n webhook URL, and save it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/whatsapp-accounts-enable-webhook-forwarding-n8n-1024x640.jpeg\" alt=\"\" class=\"wp-image-89002\" srcset=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/whatsapp-accounts-enable-webhook-forwarding-n8n-1024x640.jpeg 1024w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/whatsapp-accounts-enable-webhook-forwarding-n8n-300x188.jpeg 300w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/whatsapp-accounts-enable-webhook-forwarding-n8n-768x480.jpeg 768w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/whatsapp-accounts-enable-webhook-forwarding-n8n-1536x960.jpeg 1536w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/whatsapp-accounts-enable-webhook-forwarding-n8n.jpeg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">While testing, click <strong>Listen for test event<\/strong> or execute the Webhook node so n8n is waiting for the request.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now send a new WhatsApp message to the connected account.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">AutoForward Text will POST the incoming message to n8n.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A simplified payload looks like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"event\": \"whatsapp.received\",\n  \"message_id\": 9274,\n  \"contact_name\": \"Customer\",\n  \"contact_number\": \"+14155550123\",\n  \"content\": \"Do you have availability tomorrow?\",\n  \"reply\": {\n    \"method\": \"POST\",\n    \"endpoint\": \"https:\/\/autoforwardtext.com\/api\/v1\/messages\/9274\/reply\",\n    \"message_id\": 9274\n  }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In a standard n8n Webhook execution, the posted JSON is available inside the webhook body&#8217;s data. The fields we care about are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>content<\/code> \u2014 the incoming WhatsApp message<\/li>\n\n\n\n<li><code>contact_number<\/code> \u2014 useful as a stable customer\/session identifier<\/li>\n\n\n\n<li><code>message_id<\/code> \u2014 identifies the incoming message<\/li>\n\n\n\n<li><code>reply.endpoint<\/code> \u2014 tells the workflow exactly where to send the response<\/li>\n<\/ul>\n\n\n\n<div class=\"note\">\n<p><strong>The reply endpoint is what keeps this workflow simple.<\/strong> n8n does not need to reconstruct the WhatsApp account, conversation ID, provider, or routing information. It posts the generated answer back to the endpoint provided with the original message.<\/p>\n<\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/webhook-output-log-n8n-1024x640.jpeg\" alt=\"\" class=\"wp-image-89004\" srcset=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/webhook-output-log-n8n-1024x640.jpeg 1024w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/webhook-output-log-n8n-300x188.jpeg 300w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/webhook-output-log-n8n-768x480.jpeg 768w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/webhook-output-log-n8n-1536x960.jpeg 1536w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/webhook-output-log-n8n.jpeg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_4_Add_an_n8n_AI_Agent\"><\/span>Step 4: Add an n8n AI Agent<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Add an <strong>AI Agent<\/strong> node after the Webhook node.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The AI Agent needs a connected chat model. Add the model you want to use, such as an OpenAI Chat Model or another supported n8n chat model, and configure its credentials.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/webhook-ai-agent-google-gemini-chat-model-simple-memory.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"787\" src=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/webhook-ai-agent-google-gemini-chat-model-simple-memory-1024x787.png\" alt=\"\" class=\"wp-image-89005\" style=\"aspect-ratio:1.301165627541339;width:346px;height:auto\" srcset=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/webhook-ai-agent-google-gemini-chat-model-simple-memory-1024x787.png 1024w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/webhook-ai-agent-google-gemini-chat-model-simple-memory-300x230.png 300w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/webhook-ai-agent-google-gemini-chat-model-simple-memory-768x590.png 768w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/webhook-ai-agent-google-gemini-chat-model-simple-memory.png 1078w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">For the AI Agent&#8217;s user prompt, map the incoming WhatsApp message content from the Webhook node.<\/p>\n\n\n\n<div class=\"box\">\n<p><strong>Incoming prompt:<\/strong> <code>Webhook \u2192 body \u2192 content<\/code><\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">For a basic customer-facing agent, keep the instructions narrow:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>You are the first-line WhatsApp assistant for our business.\n\nAnswer the customer's question clearly and briefly.\n\nDo not invent prices, policies, opening hours, stock availability\nor other facts that have not been provided to you.\n\nIf you do not know an answer, say that someone from the team\nwill follow up.\n\nKeep normal replies below 80 words.\n\nDo not claim to be a human.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This is enough to prove the complete messaging loop. You can add business knowledge and tools once the workflow itself is reliable.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/ai-agent-workflow-1.jpeg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/ai-agent-workflow-1-1024x640.jpeg\" alt=\"\" class=\"wp-image-89006\" srcset=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/ai-agent-workflow-1-1024x640.jpeg 1024w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/ai-agent-workflow-1-300x188.jpeg 300w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/ai-agent-workflow-1-768x480.jpeg 768w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/ai-agent-workflow-1-1536x960.jpeg 1536w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/ai-agent-workflow-1.jpeg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Optional_Give_the_Agent_Conversation_Memory\"><\/span>Optional: Give the Agent Conversation Memory<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If every incoming WhatsApp message is treated independently, you can skip memory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you want the agent to understand follow-up messages, connect a <strong>Simple Memory<\/strong> node to the AI Agent.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use a stable value such as the WhatsApp sender&#8217;s number as the memory session key:<\/p>\n\n\n\n<div class=\"box\">\n<p><code>Session Key = Webhook \u2192 body \u2192 contact_number<\/code><\/p>\n<\/div>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/n8n-system-memory.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"552\" src=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/n8n-system-memory-1024x552.png\" alt=\"\" class=\"wp-image-89007\" style=\"width:500px;height:auto\" srcset=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/n8n-system-memory-1024x552.png 1024w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/n8n-system-memory-300x162.png 300w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/n8n-system-memory-768x414.png 768w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/n8n-system-memory.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This allows messages from the same sender to share recent conversation context while different customers remain separated.<\/p>\n\n\n\n<div class=\"example-message\">\n<p><strong>Customer:<\/strong> Do you offer installation?<\/p>\n<p><strong>Agent:<\/strong> Yes.<\/p>\n<p><strong>Customer:<\/strong> How much does it cost?<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Without conversation memory, the final question may arrive without enough context to know what &#8220;it&#8221; refers to.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_5_Create_an_AutoForward_Text_API_Key\"><\/span>Step 5: Create an AutoForward Text API Key<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now n8n can receive the customer message and generate an answer. The next step is giving the workflow permission to send that answer back.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Return to AutoForward Text and open <strong>API Keys<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Create a key with a name such as:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/generate-api-key.jpeg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/generate-api-key-1024x640.jpeg\" alt=\"\" class=\"wp-image-88984\" srcset=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/generate-api-key-1024x640.jpeg 1024w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/generate-api-key-300x188.jpeg 300w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/generate-api-key-768x480.jpeg 768w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/generate-api-key.jpeg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<div class=\"box\">\n<p><code>n8n WhatsApp Agent<\/code><\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Give the key the reply permission:<\/p>\n\n\n\n<div class=\"box\">\n<p><code>messages:reply<\/code><\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Copy the API key when it is displayed and store it securely.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/n8n-api-key.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1017\" height=\"1024\" src=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/n8n-api-key-1017x1024.png\" alt=\"\" class=\"wp-image-89011\" style=\"aspect-ratio:0.9931719428926132;width:420px;height:auto\" srcset=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/n8n-api-key-1017x1024.png 1017w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/n8n-api-key-298x300.png 298w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/n8n-api-key-150x150.png 150w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/n8n-api-key-768x774.png 768w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/n8n-api-key.png 1378w\" sizes=\"auto, (max-width: 1017px) 100vw, 1017px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_6_POST_the_AI_Response_to_replyendpoint\"><\/span>Step 6: POST the AI Response to reply.endpoint<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Add an <strong>HTTP Request<\/strong> node after the AI Agent.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Your main workflow now looks like:<\/p>\n\n\n\n<div class=\"flow\">\n  Webhook<br>\n  \u2193<br>\n  AI Agent<br>\n  \u2193<br>\n  HTTP Request\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The Chat Model and optional memory nodes connect to the AI Agent as supporting nodes rather than being part of the main left-to-right message path.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/http-request-n8n-for-whatsapp-automation.jpeg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/http-request-n8n-for-whatsapp-automation-1024x640.jpeg\" alt=\"\" class=\"wp-image-89009\" srcset=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/http-request-n8n-for-whatsapp-automation-1024x640.jpeg 1024w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/http-request-n8n-for-whatsapp-automation-300x188.jpeg 300w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/http-request-n8n-for-whatsapp-automation-768x480.jpeg 768w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/http-request-n8n-for-whatsapp-automation-1536x960.jpeg 1536w, https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/http-request-n8n-for-whatsapp-automation.jpeg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method\"><\/span>Method<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Set the HTTP method to:<\/p>\n\n\n\n<div class=\"box\">\n<p><code>POST<\/code><\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"URL\"><\/span>URL<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Map the <code>reply.endpoint<\/code> from the original Webhook payload into the HTTP Request URL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do not hard-code a message ID.<\/p>\n\n\n\n<div class=\"box\">\n<p><strong>URL:<\/strong> <code>Webhook \u2192 body \u2192 reply \u2192 endpoint<\/code><\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">A resolved request may look like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;autoforwardtext.com\/api\/v1\/messages\/9274\/reply<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">But the n8n workflow should dynamically use the endpoint supplied with each incoming message.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Headers\"><\/span>Headers<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Add the Authorization header:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Authorization: Bearer YOUR_AFT_API_KEY<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Add an idempotency header based on the incoming message ID:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Idempotency-Key: n8n-wa-9274<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In the actual workflow, map the <code>message_id<\/code> dynamically.<\/p>\n\n\n\n<div class=\"note\">\n<p><strong>Why use an Idempotency-Key?<\/strong> If an execution is retried after a timeout or temporary error, the same logical reply can keep the same key instead of accidentally producing a duplicate WhatsApp message.<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"JSON_Body\"><\/span>JSON Body<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Send a JSON body with a single <code>text<\/code> field:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"text\": \"AI AGENT RESPONSE\"\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Map the AI Agent&#8217;s output into <code>text<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Conceptually, n8n is making the equivalent of this request:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -X POST \\\n  'https:\/\/autoforwardtext.com\/api\/v1\/messages\/9274\/reply' \\\n  -H 'Authorization: Bearer aft_live_REPLACE_ME' \\\n  -H 'Idempotency-Key: n8n-wa-9274' \\\n  -H 'Content-Type: application\/json' \\\n  --data '{\"text\":\"Yes, we can help with that. What would you like to know?\"}'<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_7_Activate_and_Test_the_Workflow\"><\/span>Step 7: Activate and Test the Workflow<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Test the workflow from end to end before activating it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Send a fresh WhatsApp message:<\/p>\n\n\n\n<div class=\"example-message\">\n<p><strong>Customer:<\/strong><\/p>\n<p>Hi, can someone help me choose the right plan?<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The workflow should now run through the complete loop:<\/p>\n\n\n\n<div class=\"flow\">\n  WhatsApp receives the message<br>\n  \u2193<br>\n  AutoForward Text sends it to n8n<br>\n  \u2193<br>\n  The Webhook triggers the workflow<br>\n  \u2193<br>\n  The AI Agent generates an answer<br>\n  \u2193<br>\n  HTTP Request POSTs the answer to reply.endpoint<br>\n  \u2193<br>\n  AutoForward Text sends the reply<br>\n  \u2193<br>\n  The customer receives it in WhatsApp\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Verify the result at every layer:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The incoming message appears in AutoForward Text.<\/li>\n\n\n\n<li>The n8n Webhook receives the payload.<\/li>\n\n\n\n<li>The AI Agent produces the expected answer.<\/li>\n\n\n\n<li>The HTTP Request node succeeds.<\/li>\n\n\n\n<li>The answer appears in the original WhatsApp conversation.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Once testing is complete, activate or publish the workflow and replace the n8n test webhook URL in AutoForward Text with the <strong>production webhook URL<\/strong>.<\/p>\n\n\n\n<div class=\"warning\">\n<p><strong>This final URL change is easy to miss.<\/strong> A workflow can work perfectly during manual testing but stop receiving events later if AutoForward Text is still sending messages to n8n&#8217;s test webhook URL.<\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_Happens_When_WhatsApp_Requires_a_Template\"><\/span>What Happens When WhatsApp Requires a Template?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The AI workflow still has to follow WhatsApp&#8217;s messaging rules.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If AutoForward Text determines that a normal free-form response is not currently allowed, the Reply API may return:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"ok\": false,\n  \"code\": \"template_required\",\n  \"message\": \"An approved WhatsApp template is required to reopen this conversation.\"\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Retrying the same AI-generated message will not solve this.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A production n8n workflow can branch on this response and create a human follow-up, send an internal alert, or trigger a separate template-based process.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Troubleshooting\"><\/span>Troubleshooting<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Problem<\/th><th>Likely Cause<\/th><th>What to Check<\/th><\/tr><\/thead><tbody><tr><td>WhatsApp message never appears in AutoForward Text<\/td><td>WhatsApp connection problem<\/td><td>Confirm the connected account is active before troubleshooting n8n<\/td><\/tr><tr><td>AutoForward Text receives the message but n8n does not<\/td><td>Wrong webhook URL or webhook forwarding disabled<\/td><td>Check the forwarding settings and whether you are using the correct test or production URL<\/td><\/tr><tr><td>Test webhook works but production does not<\/td><td>The workflow is not active or AutoForward Text still has the test URL<\/td><td>Activate the workflow and save the production webhook URL in AutoForward Text<\/td><\/tr><tr><td>AI Agent does not run<\/td><td>No working Chat Model is connected<\/td><td>Check the Chat Model node and its credentials<\/td><\/tr><tr><td>AI mixes up customer conversations<\/td><td>Memory Session Key is missing or shared<\/td><td>Use a stable customer-specific key such as <code>contact_number<\/code><\/td><\/tr><tr><td>HTTP Request returns an authorization error<\/td><td>API key or Bearer header is wrong<\/td><td>Check the active API key and <code>Authorization: Bearer ...<\/code> header<\/td><\/tr><tr><td>Customer receives duplicate replies<\/td><td>A retry was treated as a new request<\/td><td>Use one stable Idempotency-Key per incoming message<\/td><\/tr><tr><td>Reply returns template_required<\/td><td>WhatsApp does not allow a normal free-form reply at that point<\/td><td>Handle the condition separately rather than retrying the same reply<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"note\">\n<p><strong>Best diagnostic order:<\/strong> WhatsApp connection \u2192 AutoForward Text message log \u2192 n8n Webhook \u2192 AI Agent output \u2192 HTTP Request response \u2192 final WhatsApp delivery.<\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Where_to_Take_the_Workflow_Next\"><\/span>Where to Take the Workflow Next<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Keep the first version small:<\/p>\n\n\n\n<div class=\"box\">\n<p><code>WhatsApp \u2192 n8n Webhook \u2192 AI Agent \u2192 Reply API<\/code><\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Once the basic workflow is working, you can extend it with CRM data, a knowledge base, or human handoff.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Other useful additions include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Lead qualification<\/li>\n\n\n\n<li>CRM contact lookup or creation<\/li>\n\n\n\n<li>Order or appointment lookup<\/li>\n\n\n\n<li>Business-hours routing<\/li>\n\n\n\n<li>Support ticket creation<\/li>\n\n\n\n<li>Human approval for sensitive responses<\/li>\n\n\n\n<li>Different workflows based on message intent<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The important part is to keep each component&#8217;s responsibility clear.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">WhatsApp is the communication channel. AutoForward Text manages the message connection and reply path. n8n runs the automation. The AI Agent decides what the answer should say.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Frequently_Asked_Questions\"><\/span>Frequently Asked Questions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Can_n8n_receive_incoming_WhatsApp_messages\"><\/span>Can n8n receive incoming WhatsApp messages?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. In this setup, AutoForward Text receives the WhatsApp message and POSTs the message data to an n8n Webhook node.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Can_an_n8n_AI_Agent_automatically_reply_to_WhatsApp\"><\/span>Can an n8n AI Agent automatically reply to WhatsApp?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. The AI Agent can generate the answer and an HTTP Request node can post that answer to the AutoForward Text Reply API for delivery to the original WhatsApp conversation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Does_n8n_need_the_WhatsApp_chat_ID\"><\/span>Does n8n need the WhatsApp chat ID?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. AutoForward Text includes a message-specific <code>reply.endpoint<\/code> in the incoming webhook, so n8n can send the answer back without reconstructing the WhatsApp conversation details.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Which_n8n_nodes_are_required\"><\/span>Which n8n nodes are required?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The main workflow uses a Webhook node, an AI Agent with a connected Chat Model, and an HTTP Request node. Simple Memory is optional if you want conversation continuity.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Should_I_use_the_n8n_test_or_production_webhook_URL\"><\/span>Should I use the n8n test or production webhook URL?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use the test URL while building and capturing sample data. Once the workflow is active, configure AutoForward Text with the production webhook URL.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Can_the_AI_Agent_remember_previous_WhatsApp_messages\"><\/span>Can the AI Agent remember previous WhatsApp messages?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. Connect Simple Memory to the AI Agent and use a stable session key, such as the sender&#8217;s WhatsApp number.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_do_I_prevent_duplicate_WhatsApp_replies\"><\/span>How do I prevent duplicate WhatsApp replies?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use a stable Idempotency-Key based on the incoming AutoForward Text message ID so a retry of the same logical reply does not become a separate message.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Can_I_use_n8n_without_AI\"><\/span>Can I use n8n without AI?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. You can replace the AI Agent with normal n8n logic, filters, database lookups, CRM nodes, templates, or other workflow actions and still use the same incoming webhook and Reply API.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_happens_if_WhatsApp_requires_an_approved_template\"><\/span>What happens if WhatsApp requires an approved template?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A normal AI-generated free-form response cannot bypass WhatsApp&#8217;s messaging rules. Handle the template-required response separately in the workflow.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Final_Thoughts\"><\/span>Final Thoughts<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This setup works well because n8n is used for what it is good at: workflow automation and AI orchestration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It does not need to own the underlying WhatsApp connection.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">AutoForward Text receives the WhatsApp message and supplies a reply endpoint. n8n processes the event and generates the answer. The Reply API sends the result back into the original WhatsApp conversation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Start with the basic round trip first. Once that is reliable, you can add data sources, tools, routing, and human handoff without changing the core messaging flow.<\/p>\n\n\n\n<div class=\"cta\">\n<h2><span class=\"ez-toc-section\" id=\"Connect_WhatsApp_to_Your_n8n_Workflow\"><\/span>Connect WhatsApp to Your n8n Workflow<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Use AutoForward Text to receive WhatsApp messages, forward them to n8n, and send automated responses back through the original conversation.<\/p>\n<p>  <a class=\"button\" href=\"https:\/\/www.autoforwardtext.com\/\">Connect WhatsApp with AutoForward Text<\/a>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>You can use n8n to receive an incoming WhatsApp message, send it to an AI Agent, and automatically return the generated answer to the original WhatsApp conversation. The useful part is that n8n does not need to manage the WhatsApp connection itself. AutoForward Text handles the messaging connection and forwards each incoming message to an [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":88992,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[79],"tags":[],"class_list":["post-88991","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-whatsapp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Connect WhatsApp to n8n with Webhooks, AI and Reply API - AutoForward Text<\/title>\n<meta name=\"description\" content=\"Learn how to connect WhatsApp to n8n, send incoming messages to an AI Agent, and automatically post AI-generated replies back to the original WhatsApp conversation.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Connect WhatsApp to n8n with Webhooks, AI and Reply API - AutoForward Text\" \/>\n<meta property=\"og:description\" content=\"Learn how to connect WhatsApp to n8n, send incoming messages to an AI Agent, and automatically post AI-generated replies back to the original WhatsApp conversation.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/\" \/>\n<meta property=\"og:site_name\" content=\"AutoForward Text\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-18T20:17:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/connect-whatsapp-to-n8n.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jason A.\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jason A.\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/connect-whatsapp-to-n8n-ai-automation\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/connect-whatsapp-to-n8n-ai-automation\\\/\"},\"author\":{\"name\":\"Jason A.\",\"@id\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/#\\\/schema\\\/person\\\/6bed5c82f34f3552640c9db029069889\"},\"headline\":\"How to Connect WhatsApp to n8n with Webhooks, AI and Reply API\",\"datePublished\":\"2026-08-18T20:17:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/connect-whatsapp-to-n8n-ai-automation\\\/\"},\"wordCount\":2042,\"publisher\":{\"@id\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/connect-whatsapp-to-n8n-ai-automation\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/connect-whatsapp-to-n8n.jpg\",\"articleSection\":[\"WhatsApp\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/connect-whatsapp-to-n8n-ai-automation\\\/\",\"url\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/connect-whatsapp-to-n8n-ai-automation\\\/\",\"name\":\"How to Connect WhatsApp to n8n with Webhooks, AI and Reply API - AutoForward Text\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/connect-whatsapp-to-n8n-ai-automation\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/connect-whatsapp-to-n8n-ai-automation\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/connect-whatsapp-to-n8n.jpg\",\"datePublished\":\"2026-08-18T20:17:08+00:00\",\"description\":\"Learn how to connect WhatsApp to n8n, send incoming messages to an AI Agent, and automatically post AI-generated replies back to the original WhatsApp conversation.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/connect-whatsapp-to-n8n-ai-automation\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/connect-whatsapp-to-n8n-ai-automation\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/connect-whatsapp-to-n8n-ai-automation\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/connect-whatsapp-to-n8n.jpg\",\"contentUrl\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/connect-whatsapp-to-n8n.jpg\",\"width\":1200,\"height\":675},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/connect-whatsapp-to-n8n-ai-automation\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Connect WhatsApp to n8n with Webhooks, AI and Reply API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/\",\"name\":\"AutoForward Text\",\"description\":\"Blog\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/#organization\",\"name\":\"AutoForward Text\",\"url\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/cropped-Logo-SideText.png\",\"contentUrl\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/cropped-Logo-SideText.png\",\"width\":877,\"height\":164,\"caption\":\"AutoForward Text\"},\"image\":{\"@id\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/#\\\/schema\\\/person\\\/6bed5c82f34f3552640c9db029069889\",\"name\":\"Jason A.\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1bff7f26c0f3def5aa9b62b7c88e71c90afbde31b4648b09d57b8d23d0e15222?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1bff7f26c0f3def5aa9b62b7c88e71c90afbde31b4648b09d57b8d23d0e15222?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1bff7f26c0f3def5aa9b62b7c88e71c90afbde31b4648b09d57b8d23d0e15222?s=96&d=mm&r=g\",\"caption\":\"Jason A.\"},\"url\":\"https:\\\/\\\/www.autoforwardtext.com\\\/blog\\\/author\\\/jasona\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Connect WhatsApp to n8n with Webhooks, AI and Reply API - AutoForward Text","description":"Learn how to connect WhatsApp to n8n, send incoming messages to an AI Agent, and automatically post AI-generated replies back to the original WhatsApp conversation.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/","og_locale":"en_US","og_type":"article","og_title":"How to Connect WhatsApp to n8n with Webhooks, AI and Reply API - AutoForward Text","og_description":"Learn how to connect WhatsApp to n8n, send incoming messages to an AI Agent, and automatically post AI-generated replies back to the original WhatsApp conversation.","og_url":"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/","og_site_name":"AutoForward Text","article_published_time":"2026-08-18T20:17:08+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/connect-whatsapp-to-n8n.jpg","type":"image\/jpeg"}],"author":"Jason A.","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jason A.","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#article","isPartOf":{"@id":"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/"},"author":{"name":"Jason A.","@id":"https:\/\/www.autoforwardtext.com\/blog\/#\/schema\/person\/6bed5c82f34f3552640c9db029069889"},"headline":"How to Connect WhatsApp to n8n with Webhooks, AI and Reply API","datePublished":"2026-08-18T20:17:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/"},"wordCount":2042,"publisher":{"@id":"https:\/\/www.autoforwardtext.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#primaryimage"},"thumbnailUrl":"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/connect-whatsapp-to-n8n.jpg","articleSection":["WhatsApp"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/","url":"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/","name":"How to Connect WhatsApp to n8n with Webhooks, AI and Reply API - AutoForward Text","isPartOf":{"@id":"https:\/\/www.autoforwardtext.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#primaryimage"},"image":{"@id":"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#primaryimage"},"thumbnailUrl":"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/connect-whatsapp-to-n8n.jpg","datePublished":"2026-08-18T20:17:08+00:00","description":"Learn how to connect WhatsApp to n8n, send incoming messages to an AI Agent, and automatically post AI-generated replies back to the original WhatsApp conversation.","breadcrumb":{"@id":"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#primaryimage","url":"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/connect-whatsapp-to-n8n.jpg","contentUrl":"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/connect-whatsapp-to-n8n.jpg","width":1200,"height":675},{"@type":"BreadcrumbList","@id":"https:\/\/www.autoforwardtext.com\/blog\/connect-whatsapp-to-n8n-ai-automation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.autoforwardtext.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Connect WhatsApp to n8n with Webhooks, AI and Reply API"}]},{"@type":"WebSite","@id":"https:\/\/www.autoforwardtext.com\/blog\/#website","url":"https:\/\/www.autoforwardtext.com\/blog\/","name":"AutoForward Text","description":"Blog","publisher":{"@id":"https:\/\/www.autoforwardtext.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.autoforwardtext.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.autoforwardtext.com\/blog\/#organization","name":"AutoForward Text","url":"https:\/\/www.autoforwardtext.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.autoforwardtext.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2025\/01\/cropped-Logo-SideText.png","contentUrl":"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2025\/01\/cropped-Logo-SideText.png","width":877,"height":164,"caption":"AutoForward Text"},"image":{"@id":"https:\/\/www.autoforwardtext.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.autoforwardtext.com\/blog\/#\/schema\/person\/6bed5c82f34f3552640c9db029069889","name":"Jason A.","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1bff7f26c0f3def5aa9b62b7c88e71c90afbde31b4648b09d57b8d23d0e15222?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1bff7f26c0f3def5aa9b62b7c88e71c90afbde31b4648b09d57b8d23d0e15222?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1bff7f26c0f3def5aa9b62b7c88e71c90afbde31b4648b09d57b8d23d0e15222?s=96&d=mm&r=g","caption":"Jason A."},"url":"https:\/\/www.autoforwardtext.com\/blog\/author\/jasona\/"}]}},"jetpack_featured_media_url":"https:\/\/www.autoforwardtext.com\/blog\/wp-content\/uploads\/2026\/08\/connect-whatsapp-to-n8n.jpg","_links":{"self":[{"href":"https:\/\/www.autoforwardtext.com\/blog\/wp-json\/wp\/v2\/posts\/88991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.autoforwardtext.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.autoforwardtext.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.autoforwardtext.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.autoforwardtext.com\/blog\/wp-json\/wp\/v2\/comments?post=88991"}],"version-history":[{"count":6,"href":"https:\/\/www.autoforwardtext.com\/blog\/wp-json\/wp\/v2\/posts\/88991\/revisions"}],"predecessor-version":[{"id":89013,"href":"https:\/\/www.autoforwardtext.com\/blog\/wp-json\/wp\/v2\/posts\/88991\/revisions\/89013"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.autoforwardtext.com\/blog\/wp-json\/wp\/v2\/media\/88992"}],"wp:attachment":[{"href":"https:\/\/www.autoforwardtext.com\/blog\/wp-json\/wp\/v2\/media?parent=88991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.autoforwardtext.com\/blog\/wp-json\/wp\/v2\/categories?post=88991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.autoforwardtext.com\/blog\/wp-json\/wp\/v2\/tags?post=88991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}