Dec 02, 2025
Aris S.
10min Read
Dec 02, 2025
Aris S.
10min Read
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.
The process may appear tricky to new n8n users, but, in reality, connecting n8n with WhatsApp only takes five steps:
Integrating n8n with WhatsApp is ideally done using a self-hosted solution like Hostinger’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.
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’s explore how to connect n8n with WhatsApp in detail and implement it into a practical automation workflow.
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.
Leveraging n8n integration with WhatsApp lets you build automation systems for various purposes, such as:
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’s discuss them in the next section.
n8n is an excellent choice for WhatsApp automation if you are looking for a platform that provides the following benefits:
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.
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.
Interested in Zapier? Check out our in-depth comparison of n8n vs Zapier to learn more about their differences and which one suits your needs the best.
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.
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 how to install n8n in your system.
If you don’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.

Even better, this OS template is pre-selected if you purchase our n8n hosting solution. 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.
Once installed, open your n8n instance and create a new account. You’re now ready to integrate it with WhatsApp.
Configuring the WhatsApp integration in n8n involves setting up the credentials and adding the messaging app’s nodes into your workflow. Let’s explore the steps in more detail.
Creating and configuring the WhatsApp application in the Meta developer portal is mandatory to obtain the credentials. Here are the steps:




We are now set. In the next step, we’ll explore how to find the required credentials.
Generating an API token and obtaining the credentials provides you with the necessary authentication information to connect WhatsApp with n8n.
To fully integrate WhatsApp with n8n, you’ll need four pieces of information: access token, business account ID, client ID, and client secret. Here’s how to obtain them:



Now that we have all the required credentials, let’s head to n8n to set up the integration.
Setting credentials in n8n enables WhatsApp to authenticate the automation platform’s connection and data exchange request.
Depending on the node, n8n uses two types of WhatsApp credentials: WhatsApp API and WhatsApp OAuth Account. The WhatsApp API is used for action nodes, while the OAuth account is reserved for triggers.
The steps to configure these credentials are the same. To begin, let’s create the WhatsApp API first:

Once authorized, you should see a message confirming that n8n can connect to WhatsApp successfully.

Now, repeat the same steps above, but select WhatsApp Oauth API. Then, enter App ID into the Client ID field and use App secret as the Client Secret.
Adding and configuring the WhatsApp node enables you to integrate the messaging app with your n8n workflow.
You can create a new workflow or import a ready-to-use one from a template. If you use an n8n template, the WhatsApp nodes are already in place, meaning you can simply configure the credentials and define the logic for processing the data.
We’ll discuss how to create a complete, practical workflow from scratch in the next section. For now, let’s create a simple one for testing purposes:


That’s it. Let’s proceed to the next step to test whether the node works correctly.
Sending a message verifies that the WhatsApp integration works properly, and n8n can exchange data with the messaging app.
Here’s how to test your workflow:

If the integration functions correctly, your n8n workflow will turn green, and you should receive the response specified in the Text Body field.

Building a WhatsApp chatbot in n8n is one of the most common real-world applications of the integration. Let’s explore how to create a simple one in three steps.
Planning your workflow is crucial to determine the required nodes, their arrangement, and the data flow logic.
Let’s make a simple AI-powered WhatsApp chatbot that uses OpenAI’s LLMs to respond to your questions or generate an image. Here’s how the plan looks:
The workflow will look like this:

After planning, add and configure the nodes to define how data will travel in your workflow.
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.
We’ll skip the WhatsApp trigger node configuration because we’ve explained it in the previous section and focus on other nodes.
Open the Switch node, and you’ll see the fields for value1 as well as value2. Hover over the value1 field and click Expression.
Then, add this code to select the WhatsApp message from the previous node as input:
{{ $json.messages[0].text.body }}Expand the drop-down menu between the value fields. Go to String and select contains. Then, enter image into the value2 field.

Click the Add routing button and create a new rule similar to the above. However, select does not contain instead of contains.
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.
Let’s set up the image generator node by opening the configuration window and choosing the credential you made earlier. Next, set Prompt to Expression and add the following:
{{ $json.messages[0].text.body }}
Now, repeat the same steps to configure the OpenAI chat agent node. Unlike the image generator, however, it requires you to choose the LLM model manually.
Outputting the response from your workflow defines how users will receive an answer from the chatbot.
Because AI responses are dynamic, we must set the nodes to answer accordingly. Configure the WhatsApp send message node by changing Text Body to Expression and adding the following:
{{ $json.message.content }}For the WhatsApp Upload Media node, make sure you have entered the sender number and set the Property Name as data.

Now, check if the workflow works by entering prompts with and without the word image. If everything is set correctly, your workflow will turn green and you’ll get the corresponding answer on WhatsApp.
For a reliable and secure automation workflow, make sure to:
Hosting your n8n-WhatsApp workflows with Hostinger has plenty of advantages over using a personal machine. Some of the benefits include:
Now that you know how to integrate WhatsApp into n8n, it’s time to put your knowledge into practice.
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 n8n workflow examples tutorial.
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 comprehensive catalog of n8n tutorials that will help kickstart your automation journey.
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.