{"id":132750,"date":"2025-08-21T12:05:55","date_gmt":"2025-08-21T12:05:55","guid":{"rendered":"\/tutorials\/?p=132750"},"modified":"2026-03-09T19:16:16","modified_gmt":"2026-03-09T19:16:16","slug":"how-to-integrate-n8n-with-whatsapp","status":"publish","type":"post","link":"\/ng\/tutorials\/how-to-integrate-n8n-with-whatsapp","title":{"rendered":"How to integrate WhatsApp with n8n?"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p>Integrating n8n with WhatsApp enables you to create an automation workflow for various tasks, including creating a chatbot that responds to user questions 24\/7 and developing an alerting system for your project.<\/p><p>Since n8n is low-code and open-source, integrating it with WhatsApp is a simple, affordable solution for creating an automation system for your needs.<\/p><p>The process may appear tricky to new n8n users, but, in reality, connecting n8n with WhatsApp only takes five steps:<\/p><ol class=\"wp-block-list\">\n<li>Create and configure a WhatsApp app on the Meta developer portal.<\/li>\n\n\n\n<li>Generate a WhatsApp API and obtain credentials to integrate it with n8n.<\/li>\n\n\n\n<li>Set the credentials in n8n.<\/li>\n\n\n\n<li>Add and configure the WhatsApp node in n8n.<\/li>\n\n\n\n<li>Send a test message to verify the integration&rsquo;s functionality.<\/li>\n<\/ol><p>Integrating n8n with WhatsApp is ideally done using a self-hosted solution like Hostinger&rsquo;s VPS for optimal access control and data privacy. This higher level of security enables you to create an automation system that involves personal information, like a private AI chatbot.<\/p><p>Note that setting up a WhatsApp-n8n integration goes beyond creating the workflow and requires post-deployment practices, such as securing the credentials, to ensure your automation performs smoothly. Let&rsquo;s explore how to connect n8n with WhatsApp in detail and implement it into a practical automation workflow.<\/p><p>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-what-is-n8n-whatsapp-integration\"><strong>What is n8n WhatsApp integration?<\/strong><\/h2><p>The n8n-WhatsApp integration allows you to create an automation workflow that uses data from the messaging app. To connect them, you need the WhatsApp Business application programming interface (API), which facilitates and secures the data exchange.<\/p><p>Leveraging <a href=\"\/ng\/tutorials\/n8n-integrations\">n8n integration<\/a> with WhatsApp lets you build automation systems for various purposes, such as:<\/p><ul class=\"wp-block-list\">\n<li><strong>Automated customer support. <\/strong>n8n can fetch customer queries and give instant responses using pre-determined messages or AI-generated ones. You can also integrate Customer Relationship Management (CRM) apps to create personalized responses based on user data.<\/li>\n\n\n\n<li><strong>Alerting system. <\/strong>An n8n workflow connects to apps from which you want to receive alerts and monitors specific events, such as failed payments or server downtime. When these events occur, your automation system automatically triggers and sends a WhatsApp message to notify you.<\/li>\n\n\n\n<li><strong>Personal AI assistant. <\/strong><a href=\"\/ng\/tutorials\/n8n-ollama-integration\">Connecting n8n with Ollama<\/a>, Gemini, ChatGPT, or other large language models (LLMs) nodes enables you to build a custom AI assistant tailored to your needs. Integrating WhatsApp into the workflow will allow you to create an AI-powered chatbot embedded in the messaging app.<\/li>\n\n\n\n<li><strong>Reminder<\/strong>. A scheduled trigger in your n8n workflow checks for upcoming meetings, deadlines, or tasks on other applications, like Google Calendar. By integrating WhatsApp, you can send a reminder as a chat message.<\/li>\n<\/ul><p>While other platforms may allow you to set up automation workflows for the same tasks above, n8n might be the best choice for several reasons. Let&rsquo;s discuss them in the next section.<\/p><h3 class=\"wp-block-heading\" id=\"h-is-n8n-the-right-tool-for-whatsapp-automation\"><strong>Is n8n the right tool for WhatsApp automation?<\/strong><\/h3><p>n8n is an excellent choice for WhatsApp automation if you are looking for a platform that provides the following benefits:<\/p><ul class=\"wp-block-list\">\n<li><strong>Open-source and self-hostable<\/strong>. Being open-source, n8n doesn&rsquo;t impose a vendor lock-in policy and is deployable on a self-managed environment. This provides you with complete control over your data and workflow.<\/li>\n\n\n\n<li><strong>Zero to low-code<\/strong>. n8n&rsquo;s graphical interface and powerful built-in tools enable you to build a <a href=\"\/ng\/tutorials\/what-is-no-code-automation\">no-code automation<\/a> system easily. Codes are optional, applicable if you need a more complex system and data manipulation.<\/li>\n\n\n\n<li><strong>Cost-effective<\/strong>. As an open-source platform, n8n and most of its features are free. You only need to pay for hosting, which at Hostinger starts at <strong>\u20a610900.00\/month<\/strong>.<\/li>\n\n\n\n<li><strong>Scalable. <\/strong>Users can scale n8n horizontally by adding more resources to the server and vertically by enabling the queue mode to distribute the load to multiple workers. If you need to expand your workflows, you can easily do so by connecting APIs or pre-built nodes.<\/li>\n\n\n\n<li><strong>Extensive community and support<\/strong>. As one of the most popular automation tools, n8n has a strong community that actively participates in forum discussions. With its comprehensive documentation, you can easily find answers to n8n-related issues.<\/li>\n<\/ul><p>Despite its benefits, n8n also has several limitations. For example, you need to set up the platform manually and manage the hosting infrastructure yourself to maintain smooth operability.<\/p><p>Other automation platforms, like Zapier, offer services for handling infrastructure setup and maintenance. However, they are more expensive and less flexible than an open-source solution like n8n.<\/p><p><div class=\"protip\">\n                    <h4 class=\"title\">Suggested reading<\/h4>\n                    <p>Interested in Zapier? Check out our in-depth comparison of <a href=\"\/ng\/tutorials\/n8n-vs-zapier\">n8n vs Zapier<\/a> to learn more about their differences and which one suits your needs the best.<\/p>\n                <\/div>\n<\/p><p>Several providers also offer features that simplify the configuration and management of a self-hosted n8n instance, which requires only a few prerequisites to set up.<\/p><h2 class=\"wp-block-heading\" id=\"h-prerequisites-for-connecting-whatsapp-to-n8n\"><strong>Prerequisites for connecting WhatsApp to n8n<\/strong><\/h2><p>Before connecting WhatsApp with n8n, you need to set up the automation platform and create an account. Follow our step-by-step tutorial to learn <a href=\"\/ng\/tutorials\/how-to-install-n8n\">how to install n8n<\/a> in your system.<\/p><p>If you don&rsquo;t have a hosting environment for n8n, we recommend purchasing Hostinger VPS. It has various features that help simplify server configuration and management, like the OS template that lets you install n8n in one click.<\/p><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-vps-hosting\" href=\"\/ng\/vps-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/public\" alt=\"\" class=\"wp-image-77934\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>Even better, this OS template is pre-selected if you purchase our <a href=\"\/ng\/self-hosted-n8n\">n8n hosting solution<\/a>. This means all you need to do to set up n8n is simply finish the onboarding process, which involves basic tasks like setting up a new password.<\/p><p>Once installed, open your n8n instance and create a new account. You&rsquo;re now ready to integrate it with WhatsApp.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-do-you-set-up-whatsapp-integration-in-n8n\"><strong>How do you set up WhatsApp integration in n8n?<\/strong><\/h2><p>Configuring the WhatsApp integration in n8n involves setting up the credentials and adding the messaging app&rsquo;s nodes into your workflow. Let&rsquo;s explore the steps in more detail.<\/p><h3 class=\"wp-block-heading\" id=\"h-1-create-and-configure-the-whatsapp-app-in-meta\"><strong>1. Create and configure the WhatsApp app in Meta<\/strong><\/h3><p>Creating and configuring the WhatsApp application in the Meta developer portal is mandatory to obtain the credentials. Here are the steps:<\/p><ol class=\"wp-block-list\">\n<li>Open the <a href=\"https:\/\/developers.facebook.com\/micro_site\/url\/?click_from_context_menu=true&amp;country=LT&amp;destination=https%3A%2F%2Fdevelopers.facebook.com%2Fasync%2Fregistration&amp;event_type=click&amp;last_nav_impression_id=0pZ7HnUE5mP6qjEgs&amp;max_percent_page_viewed=45&amp;max_viewport_height_px=723&amp;max_viewport_width_px=1440&amp;orig_http_referrer=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fdevelopment%2Fregister&amp;orig_request_uri=https%3A%2F%2Fdevelopers.facebook.com%2Fajax%2Fdocs%2Fnav%2F%3Fpath1%3Ddevelopment%26path2%3Dregister&amp;region=emea&amp;scrolled=false&amp;session_id=0j4LuQrYQJ92apawi&amp;site=developers\" target=\"_blank\" rel=\"noreferrer noopener\">Meta developer portal<\/a> registration page and log in to your Facebook account.<\/li>\n\n\n\n<li>Follow the registration procedure. Once done, you will land on the following screen:<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e19ba042586\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1597\" height=\"629\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-meta-developer-page-welcome-screen.png\/public\" alt=\"The Meta developer page's welcome screen\" class=\"wp-image-132751\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-meta-developer-page-welcome-screen.png\/w=1597,fit=scale-down 1597w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-meta-developer-page-welcome-screen.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-meta-developer-page-welcome-screen.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-meta-developer-page-welcome-screen.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-meta-developer-page-welcome-screen.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-meta-developer-page-welcome-screen.png\/w=1536,fit=scale-down 1536w\" sizes=\"auto, (max-width: 1597px) 100vw, 1597px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Click<strong> Create App<\/strong>. On the pop-up window, click <strong>Create App<\/strong> again.<\/li>\n\n\n\n<li>Enter a name for your app and set a contact email address. Hit <strong>Next<\/strong>.<\/li>\n\n\n\n<li>Select <strong>Other <\/strong>as the use case and hit <strong>Next<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e19ba043f7a\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1546\" height=\"252\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-other-option-for-the-meta-app-use-case.png\/public\" alt=\"The Other option for the Meta app use case\" class=\"wp-image-132752\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-other-option-for-the-meta-app-use-case.png\/w=1546,fit=scale-down 1546w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-other-option-for-the-meta-app-use-case.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-other-option-for-the-meta-app-use-case.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-other-option-for-the-meta-app-use-case.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-other-option-for-the-meta-app-use-case.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-other-option-for-the-meta-app-use-case.png\/w=1536,fit=scale-down 1536w\" sizes=\"auto, (max-width: 1546px) 100vw, 1546px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"6\" class=\"wp-block-list\">\n<li>Choose <strong>Businesses<\/strong> as the app type and click Next.<\/li>\n\n\n\n<li>Review information about your new app. Once everything is correct, hit <strong>Create app<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e19ba045324\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1367\" height=\"666\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/meta-developer-portal-app-creation-page-final-screen.png\/public\" alt=\"The final screen of the Meta developer portal's app creation page\" class=\"wp-image-132753\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/meta-developer-portal-app-creation-page-final-screen.png\/w=1367,fit=scale-down 1367w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/meta-developer-portal-app-creation-page-final-screen.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/meta-developer-portal-app-creation-page-final-screen.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/meta-developer-portal-app-creation-page-final-screen.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/meta-developer-portal-app-creation-page-final-screen.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1367px) 100vw, 1367px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"8\" class=\"wp-block-list\">\n<li>You&rsquo;ll land on the <strong>Add products to your app<\/strong> page. Click<strong> Set up<\/strong> on WhatsApp.<\/li>\n\n\n\n<li>Follow the instructions to set up a business profile on the <strong>Meta business tools<\/strong> website.<\/li>\n\n\n\n<li>Once you&rsquo;ve finished, return to your Meta app&rsquo;s dashboard on the developer portal and click <strong>Continue<\/strong> to integrate WhatsApp.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e19ba046935\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1197\" height=\"578\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-business-integration-quickstart-screen-on-the-meta-developer-portal.png\/public\" alt=\"The final screen of the Meta developer portal's app creation page\" class=\"wp-image-132754\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-business-integration-quickstart-screen-on-the-meta-developer-portal.png\/w=1197,fit=scale-down 1197w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-business-integration-quickstart-screen-on-the-meta-developer-portal.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-business-integration-quickstart-screen-on-the-meta-developer-portal.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-business-integration-quickstart-screen-on-the-meta-developer-portal.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-business-integration-quickstart-screen-on-the-meta-developer-portal.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1197px) 100vw, 1197px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>We are now set. In the next step, we&rsquo;ll explore how to find the required credentials.<\/p><h3 class=\"wp-block-heading\" id=\"h-2-generate-an-api-token-and-obtain-your-credentials\"><strong>2. Generate an API token and obtain your credentials<\/strong><\/h3><p>Generating an API token and obtaining the credentials provides you with the necessary authentication information to connect WhatsApp with n8n.<\/p><p>To fully integrate WhatsApp with n8n, you&rsquo;ll need four pieces of information: <strong>access token<\/strong>, <strong>business account ID<\/strong>, <strong>client ID<\/strong>, and <strong>client secret<\/strong>. Here&rsquo;s how to obtain them:<\/p><ol class=\"wp-block-list\">\n<li>On your Meta app&rsquo;s dashboard, go to the <strong>sidebar<\/strong> &rarr; <strong>WhatsApp <\/strong>&rarr; <strong>API setup<\/strong>.<\/li>\n\n\n\n<li>Scroll down to the <strong>Send and receive messages <\/strong>section.<\/li>\n\n\n\n<li>Expand the <strong>From <\/strong>drop-down menu and generate a new test mobile number. Let&rsquo;s call it the <strong>sender number<\/strong>.<\/li>\n\n\n\n<li>In the <strong>To<\/strong> field, enter the phone number to which you want to send the message. We&rsquo;ll refer to it as the <strong>recipient number<\/strong>.<\/li>\n\n\n\n<li>Copy the <strong>WhatsApp Business Account ID <\/strong>and store it in a safe location.<\/li>\n<\/ol><figure data-wp-context='{\"imageId\":\"69e19ba047cb4\"}' data-wp-interactive=\"core\/image\" class=\"wp-block-image aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"535\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-send-and-receive-messages-section-on-meta-whatsapp-app-configuration-page.png\/public\" alt=\"The Send and receive messages section on Meta's WhatsApp app configuration page\n\" class=\"wp-image-132756\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-send-and-receive-messages-section-on-meta-whatsapp-app-configuration-page.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-send-and-receive-messages-section-on-meta-whatsapp-app-configuration-page.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-send-and-receive-messages-section-on-meta-whatsapp-app-configuration-page.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-send-and-receive-messages-section-on-meta-whatsapp-app-configuration-page.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-send-and-receive-messages-section-on-meta-whatsapp-app-configuration-page.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><ol start=\"6\" class=\"wp-block-list\">\n<li>Scroll back up and click <strong>Generate access token<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e19ba049150\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"274\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-business-access-token-generation-menu.png\/public\" alt=\"WhatsApp business' access token generation menu\" class=\"wp-image-132757\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-business-access-token-generation-menu.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-business-access-token-generation-menu.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-business-access-token-generation-menu.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-business-access-token-generation-menu.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-business-access-token-generation-menu.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"7\" class=\"wp-block-list\">\n<li>On the pop-up window, select the WhatsApp accounts your app wants to access. We&rsquo;ll select <strong>Opt in to all current WhatsApp accounts<\/strong>.<\/li>\n\n\n\n<li>Finish the configuration process. Once done, copy the token and store it in a safe location.<\/li>\n\n\n\n<li>Head to the sidebar and go to <strong>App settings<\/strong> &rarr; <strong>Basic<\/strong>.<\/li>\n\n\n\n<li><strong>Copy the App ID<\/strong> and <strong>App secret <\/strong>keys. Note that you must reveal the <strong>App secret <\/strong>and enter your Meta account&rsquo;s password to obtain it.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e19ba04a903\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"171\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-business-app-id-and-secret-keys.png\/public\" alt=\"WhatsApp business App ID and Secret Keys\" class=\"wp-image-132758\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-business-app-id-and-secret-keys.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-business-app-id-and-secret-keys.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-business-app-id-and-secret-keys.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-business-app-id-and-secret-keys.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-business-app-id-and-secret-keys.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>Now that we have all the required credentials, let&rsquo;s head to n8n to set up the integration.<\/p><h3 class=\"wp-block-heading\" id=\"h-3-set-credentials-in-n8n\"><strong>3. Set credentials in n8n<\/strong><\/h3><p>Setting credentials in n8n enables WhatsApp to authenticate the automation platform&rsquo;s connection and data exchange request.<\/p><p>Depending on the node, n8n uses two types of WhatsApp credentials: <strong>WhatsApp API <\/strong>and <strong>WhatsApp OAuth Account. <\/strong>The WhatsApp API is used for action nodes, while the OAuth account is reserved for triggers.<\/p><p>The steps to configure these credentials are the same. To begin, let&rsquo;s create the WhatsApp API first:<\/p><ol class=\"wp-block-list\">\n<li>On the n8n&rsquo;s dashboard, click the arrow button next to the <strong>Create Workflow <\/strong>button. Select<strong> Create Credential<\/strong>.<\/li>\n\n\n\n<li>From the drop-down menu, select<strong> WhatsApp API<\/strong> and hit <strong>Continue<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e19ba04bf34\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"458\" height=\"251\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-credential-options-on-n8n-credential-creation-window.png\/public\" alt=\"WhatsApp credential options on the n8n credential creation window\" class=\"wp-image-132759\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-credential-options-on-n8n-credential-creation-window.png\/w=458,fit=scale-down 458w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-credential-options-on-n8n-credential-creation-window.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-credential-options-on-n8n-credential-creation-window.png\/w=150,fit=scale-down 150w\" sizes=\"auto, (max-width: 458px) 100vw, 458px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Enter the <strong>Access token <\/strong>and <strong>Business Account ID <\/strong>from the previous steps.<\/li>\n\n\n\n<li>Hit<strong> Save<\/strong>.<\/li>\n<\/ol><p>Once authorized, you should see a message confirming that n8n can connect to WhatsApp successfully.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e19ba04d436\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1190\" height=\"472\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-api-credential-creation-window-with-a-message-confirming-a-successful-integration.png\/public\" alt=\"The WhatsApp API credential creation window with a message confirming a successful integration\" class=\"wp-image-132760\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-api-credential-creation-window-with-a-message-confirming-a-successful-integration.png\/w=1190,fit=scale-down 1190w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-api-credential-creation-window-with-a-message-confirming-a-successful-integration.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-api-credential-creation-window-with-a-message-confirming-a-successful-integration.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-api-credential-creation-window-with-a-message-confirming-a-successful-integration.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-api-credential-creation-window-with-a-message-confirming-a-successful-integration.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1190px) 100vw, 1190px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>Now, repeat the same steps above, but select <strong>WhatsApp Oauth API<\/strong>. Then, enter <strong>App ID<\/strong> into the <strong>Client ID<\/strong> field and use <strong>App secret<\/strong> as the<strong> Client Secret<\/strong>.<\/p><h3 class=\"wp-block-heading\" id=\"h-4-add-and-configure-the-whatsapp-node\"><strong>4. Add and configure the WhatsApp node<\/strong><\/h3><p>Adding and configuring the WhatsApp node enables you to integrate the messaging app with your n8n workflow.<\/p><p>You can create a new workflow or import a ready-to-use one from a template. If you use an <a href=\"\/ng\/tutorials\/best-n8n-templates\">n8n template<\/a>, the WhatsApp nodes are already in place, meaning you can simply configure the credentials and define the logic for processing the data.<\/p><p>We&rsquo;ll discuss how to create a complete, practical workflow from scratch in the next section. For now, let&rsquo;s create a simple one for testing purposes:<\/p><ol class=\"wp-block-list\">\n<li>On your n8n canvas, click the <strong>plus<\/strong> icon in the top right corner.<\/li>\n\n\n\n<li>Search and select <strong>WhatsApp Business Cloud<\/strong>.<\/li>\n\n\n\n<li>Choose the<strong> WhatsApp On Messages <\/strong>trigger node.<\/li>\n\n\n\n<li>Expand the <strong>Credential to connect with<\/strong> drop-down menu and select the <strong>WhatsApp OAuth Account <\/strong>credential you made earlier.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e19ba04ea07\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"851\" height=\"437\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-on-message-trigger-node-configuration-menu.png\/public\" alt=\"The WhatsApp On Message trigger node's configuration menu\" class=\"wp-image-132761\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-on-message-trigger-node-configuration-menu.png\/w=851,fit=scale-down 851w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-on-message-trigger-node-configuration-menu.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-on-message-trigger-node-configuration-menu.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-on-message-trigger-node-configuration-menu.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 851px) 100vw, 851px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"5\" class=\"wp-block-list\">\n<li>Add another WhatsApp node. Now it&rsquo;s the <strong>Send Message<\/strong> one.<\/li>\n\n\n\n<li>On the <strong>Send Message<\/strong> node&rsquo;s configuration page, select the <strong>WhatsApp API<\/strong> credential from the drop-down menu.<\/li>\n\n\n\n<li>Enter the <strong>sender number<\/strong> from Meta into the <strong>Sender Phone Number (or ID)<\/strong> field.<\/li>\n\n\n\n<li>Add the <strong>recipient number<\/strong> into the <strong>Recipient&rsquo;s Phone Number <\/strong>field.<\/li>\n\n\n\n<li>Enter the response to send to the recipient in the <strong>Text Body <\/strong>field.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e19ba05023b\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"754\" height=\"700\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-send-message-action-node-configuration-wiindow.png\/public\" alt=\"The WhatsApp Send Message action node's configuration window\" class=\"wp-image-132762\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-send-message-action-node-configuration-wiindow.png\/w=754,fit=scale-down 754w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-send-message-action-node-configuration-wiindow.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-send-message-action-node-configuration-wiindow.png\/w=150,fit=scale-down 150w\" sizes=\"auto, (max-width: 754px) 100vw, 754px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>That&rsquo;s it. Let&rsquo;s proceed to the next step to test whether the node works correctly.<\/p><h3 class=\"wp-block-heading\" id=\"h-5-send-a-test-message\"><strong>5. Send a test message<\/strong><\/h3><p>Sending a message verifies that the WhatsApp integration works properly, and n8n can exchange data with the messaging app.<\/p><p>Here&rsquo;s how to test your workflow:<\/p><ol class=\"wp-block-list\">\n<li>On n8n, save your workflow and hit <strong>Execute workflow<\/strong>.<\/li>\n\n\n\n<li>Open WhatsApp and log in to the account linked to the <strong>recipient number<\/strong>.<\/li>\n\n\n\n<li>Click the <strong>New Chat<\/strong> button and look up the test <strong>sender number<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e19ba051786\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"546\" height=\"250\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-test-whatsapp-test-account-in-the-search-result.png\/public\" alt=\"The WhatsApp test account in the search result\" class=\"wp-image-132763\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-test-whatsapp-test-account-in-the-search-result.png\/w=546,fit=scale-down 546w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-test-whatsapp-test-account-in-the-search-result.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-test-whatsapp-test-account-in-the-search-result.png\/w=150,fit=scale-down 150w\" sizes=\"auto, (max-width: 546px) 100vw, 546px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>Hit the <strong>Chat button<\/strong> and send a test message.<\/li>\n<\/ol><p>If the integration functions correctly, your n8n workflow will turn green, and you should receive the response specified in the <strong>Text Body<\/strong> field.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e19ba052d2b\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"221\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-test-number-sends-response-based-on-the-n8n-workflow-configuration.png\/public\" alt=\"The WhatsApp test number sends a response based on the n8n workflow configuration\" class=\"wp-image-132764\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-test-number-sends-response-based-on-the-n8n-workflow-configuration.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-test-number-sends-response-based-on-the-n8n-workflow-configuration.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-test-number-sends-response-based-on-the-n8n-workflow-configuration.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-test-number-sends-response-based-on-the-n8n-workflow-configuration.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/whatsapp-test-number-sends-response-based-on-the-n8n-workflow-configuration.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><h2 class=\"wp-block-heading\" id=\"h-how-to-build-a-whatsapp-chatbot-in-n8n\"><strong>How to build a WhatsApp chatbot in n8n?<\/strong><\/h2><p>Building a WhatsApp chatbot in n8n is one of the most common real-world applications of the integration. Let&rsquo;s explore how to create a simple one in three steps.<\/p><h3 class=\"wp-block-heading\" id=\"h-1-plan-your-workflow\"><strong>1. Plan your workflow<\/strong><\/h3><p>Planning your workflow is crucial to determine the required nodes, their arrangement, and the data flow logic.<\/p><p>Let&rsquo;s make a simple AI-powered WhatsApp chatbot that uses OpenAI&rsquo;s LLMs to respond to your questions or generate an image. Here&rsquo;s how the plan looks:<\/p><ul class=\"wp-block-list\">\n<li>The <strong>WhatsApp On Message<\/strong> trigger node starts the workflow whenever you send a message and forwards it to the next node.<\/li>\n\n\n\n<li>The <strong>Switch <\/strong>node receives your WhatsApp message and forwards it based on a rule. If the input contains the word <strong>image<\/strong>, it&rsquo;s sent to the image generator. Otherwise, it&rsquo;s forwarded to the chat agent.<\/li>\n\n\n\n<li><strong>OpenAI&rsquo;s image generator <\/strong>and <strong>chat agent<\/strong> receive your message, using it as prompt. They then send the response to WhatsApp nodes.<\/li>\n\n\n\n<li>The <strong>WhatsApp Upload Media<\/strong> node sends the image from OpenAI to the recipient. Meanwhile, the <strong>Send Message<\/strong> node forwards the AI&rsquo;s response to the recipient.<\/li>\n<\/ul><p>The workflow will look like this:<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e19ba05428e\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"983\" height=\"404\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/n8n-workflow-plan-of-a-simple-whatsapp-chatbot.png\/public\" alt=\"The WhatsApp test number sends a response based on the n8n workflow configuration\" class=\"wp-image-132765\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/n8n-workflow-plan-of-a-simple-whatsapp-chatbot.png\/w=983,fit=scale-down 983w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/n8n-workflow-plan-of-a-simple-whatsapp-chatbot.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/n8n-workflow-plan-of-a-simple-whatsapp-chatbot.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/n8n-workflow-plan-of-a-simple-whatsapp-chatbot.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 983px) 100vw, 983px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><h3 class=\"wp-block-heading\" id=\"h-2-add-and-configure-the-nodes\"><strong>2. Add and configure the nodes<\/strong><\/h3><p>After planning, add and configure the nodes to define how data will travel in your workflow.<\/p><p>Adding the nodes is straightforward: you can insert them into your n8n canvas by clicking on them. However, configuring them and setting up the logic can be tricky.<\/p><p>We&rsquo;ll skip the WhatsApp trigger node configuration because we&rsquo;ve explained it in the previous section and focus on other nodes.<\/p><h4 class=\"wp-block-heading\" id=\"h-configuring-the-switch-node\"><strong>Configuring the Switch node<\/strong><\/h4><p>Open the<strong> Switch <\/strong>node, and you&rsquo;ll see the fields for <strong>value1 <\/strong>as well as <strong>value2<\/strong>. Hover over the <strong>value1<\/strong> field and click<strong> Expression<\/strong>.<\/p><p>Then, add this code to select the WhatsApp message from the previous node as input:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{{ $json.messages[0].text.body }}<\/pre><p>Expand the drop-down menu between the value fields. Go to <strong>String <\/strong>and select <strong>contains<\/strong>. Then, enter<strong> image <\/strong>into the <strong>value2<\/strong> field.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e19ba055ad3\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"596\" height=\"656\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/n8n-switch-node-configuration-window.png\/public\" alt=\"n8n's Switch node configuration window\" class=\"wp-image-132766\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/n8n-switch-node-configuration-window.png\/w=596,fit=scale-down 596w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/n8n-switch-node-configuration-window.png\/w=273,fit=scale-down 273w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/n8n-switch-node-configuration-window.png\/w=136,fit=scale-down 136w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>Click the <strong>Add<\/strong> routing button and create a new rule similar to the above. However, select<strong> does not contain<\/strong> instead of contains.<\/p><h4 class=\"wp-block-heading\" id=\"h-configuring-openai-nodes\"><strong>Configuring OpenAI nodes<\/strong><\/h4><p>Configuring OpenAI nodes requires setting up the API key to connect your OpenAI account with n8n. The steps are similar to preparing the WhatsApp credentials discussed in the previous section.<\/p><p>Let&rsquo;s set up the<strong> image generator<\/strong> node by opening the configuration window and choosing the credential you made earlier. Next, set <strong>Promp<\/strong>t to<strong> Expression <\/strong>and add the following:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{{ $json.messages[0].text.body }}<\/pre><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e19ba0572a8\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"607\" height=\"584\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-open-ai-image-generator-configuration-window.png\/public\" alt=\"The OpenAI image generator configuration window\" class=\"wp-image-132767\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-open-ai-image-generator-configuration-window.png\/w=607,fit=scale-down 607w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-open-ai-image-generator-configuration-window.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-open-ai-image-generator-configuration-window.png\/w=150,fit=scale-down 150w\" sizes=\"auto, (max-width: 607px) 100vw, 607px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>Now, repeat the same steps to configure the<strong> OpenAI chat agent <\/strong>node. Unlike the image generator, however, it requires you to choose the LLM model manually.<\/p><h3 class=\"wp-block-heading\" id=\"h-3-output-the-response\"><strong>3. Output the response<\/strong><\/h3><p>Outputting the response from your workflow defines how users will receive an answer from the chatbot.<\/p><p>Because AI responses are dynamic, we must set the nodes to answer accordingly. Configure the WhatsApp send message node by changing <strong>Text Body <\/strong>to <strong>Expression<\/strong> and adding the following:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{{ $json.message.content }}<\/pre><p>For the WhatsApp Upload Media node, make sure you have entered the <strong>sender number <\/strong>and set the <strong>Property Name<\/strong> as data.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e19ba0588d5\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"747\" height=\"537\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-upload-media-node-configuration-window.png\/public\" alt=\"The WhatsApp Upload Media node configuration window\" class=\"wp-image-132768\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-upload-media-node-configuration-window.png\/w=747,fit=scale-down 747w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-upload-media-node-configuration-window.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2025\/08\/the-whatsapp-upload-media-node-configuration-window.png\/w=150,fit=scale-down 150w\" sizes=\"auto, (max-width: 747px) 100vw, 747px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>Now, check if the workflow works by entering prompts with and without the word <strong>image<\/strong>. If everything is set correctly, your workflow will turn green and you&rsquo;ll get the corresponding answer on WhatsApp.<\/p><h2 class=\"wp-block-heading\" id=\"h-what-are-the-best-tips-for-connecting-n8n-to-whatsapp\"><strong>What are the best tips for connecting n8n to WhatsApp?<\/strong><\/h2><p>For a reliable and secure automation workflow, make sure to:<\/p><ul class=\"wp-block-list\">\n<li><strong>Secure credentials<\/strong>. All credentials on n8n must remain secure since, if compromised, they can expose your workflow to unauthorized parties. Only store them in an encrypted location and limit their access if you collaborate with other users.<\/li>\n\n\n\n<li><strong>Design an error-handling system<\/strong>. Error handling ensures that your workflow has a backup system that will respond to users when the main one encounters issues. For example, you can set up automated alerting that notifies users of errors.<\/li>\n\n\n\n<li><strong>Format data properly<\/strong>. As data passes through different nodes, it may change shape. Use <strong>Set<\/strong> or <strong>Function<\/strong> nodes to structure your data into predictable formats before processing or outputting it. This reduces errors and simplifies your workflow logic.<\/li>\n\n\n\n<li><strong>Implement message throttle<\/strong>. APIs typically limit the number of requests you can send within a specific period of time to prevent overloading. Adding a delay prevents your workflow from flooding the WhatsApp API with requests.<\/li>\n<\/ul><h3 class=\"wp-block-heading\" id=\"h-why-is-hostinger-the-best-choice-for-hosting-your-n8n-whatsapp-integration\"><strong>Why is Hostinger the best choice for hosting your n8n-WhatsApp integration?<\/strong><\/h3><p>Hosting your n8n-WhatsApp workflows with Hostinger has plenty of advantages over using a personal machine. Some of the benefits include:<\/p><ul class=\"wp-block-list\">\n<li><strong>Higher control.<\/strong> Hostinger&rsquo;s <a href=\"\/ng\/self-hosted-n8n\">self-hosted n8n solution<\/a> provides users with full root access to their server settings and data. This enables you to configure your n8n hosting environments to your specific preferences.<\/li>\n\n\n\n<li><strong>Improved privacy<\/strong>. Hosting n8n on a server over which you have full root access gives you complete freedom to tailor its access limits and security settings to your security preferences.<\/li>\n\n\n\n<li><strong>Scalability<\/strong>. Hostinger VPS plans are easily upgradable without downtime and offer the <a href=\"\/ng\/tutorials\/n8n-queue-mode\">n8n queue mode<\/a> template that offloads your workflow tasks to multiple workers.<\/li>\n\n\n\n<li><strong>Streamlined setup<\/strong>. Our VPS template lets you install n8n in one click, making the process more streamlined and error-free. We also have a VPS template that comes with 100+ pre-built n8n templates, eliminating the need to develop them from scratch.<\/li>\n\n\n\n<li><strong>Easy management<\/strong>. Managing a Hostinger VPS is easy with the intuitive <strong>hPanel <\/strong>control panel and built-in <strong>browser terminal<\/strong>. Beginners can also ask our AI assistant, Kodee, to perform system administration tasks via chat.<\/li>\n<\/ul><h2 class=\"wp-block-heading\" id=\"h-key-takeaways-for-integrating-whatsapp-with-n8n\"><strong>Key takeaways for integrating WhatsApp with n8n<\/strong><\/h2><p>Now that you know how to integrate WhatsApp into n8n, it&rsquo;s time to put your knowledge into practice.<\/p><p>Note that this article only covers the basics of the integration and building a chatbot. Since n8n offers hundreds of nodes, you can experiment with them to create a larger automation system for complex tasks. For inspiration, check out our <a href=\"\/ng\/tutorials\/n8n-workflow-examples\">n8n workflow examples tutorial<\/a>.<\/p><p>If you are new to n8n, Hostinger is an excellent place to start. In addition to the easy-to-set-up n8n hosting plans, we have a <a href=\"\/ng\/tutorials\/vps\/automation\">comprehensive catalog of n8n tutorials<\/a> that will help kickstart your automation journey.<\/p><p>Whether you want to discover other n8n workflows for inspiration or learn how to integrate different tools into your automation system, we have the tutorials for you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Integrating n8n with WhatsApp enables you to create an automation workflow for various tasks, including creating a chatbot that responds to user questions 24\/7 and developing an alerting system for your project. Since n8n is low-code and open-source, integrating it with WhatsApp is a simple, affordable solution for creating an automation system for your needs. [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ng\/tutorials\/how-to-integrate-n8n-with-whatsapp\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":337,"featured_media":143103,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to integrate WhatsApp with n8n?","rank_math_description":"How to integrate WhatsApp with n8n: 1. Create a WhatsApp app on Meta. 2. Get an API and the credentials. 3. Set the credentials in n8n + more.","rank_math_focus_keyword":"n8n whatsapp","footnotes":""},"categories":[22644],"tags":[],"class_list":["post-132750","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-integrate-n8n-with-whatsapp","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/n8n-whatsapp","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/comment-integrer-n8n-a-whatsapp","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/como-integrar-whatsapp-con-n8n","default":0},{"locale":"it-IT","link":"https:\/\/www.hostinger.com\/it\/tutorial\/integrare-whatsapp-n8n","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-integrate-n8n-with-whatsapp","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-integrate-n8n-with-whatsapp","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-integrate-n8n-with-whatsapp","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-integrate-n8n-with-whatsapp","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-integrate-n8n-with-whatsapp","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/como-integrar-whatsapp-con-n8n","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/como-integrar-whatsapp-con-n8n","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/como-integrar-whatsapp-con-n8n","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/n8n-whatsapp","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-integrate-n8n-with-whatsapp","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-integrate-n8n-with-whatsapp","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/132750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/users\/337"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/comments?post=132750"}],"version-history":[{"count":11,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/132750\/revisions"}],"predecessor-version":[{"id":143102,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/132750\/revisions\/143102"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/media\/143103"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/media?parent=132750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/categories?post=132750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/tags?post=132750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}