š¬ āWhat if every WhatsApp message could be answered instantly, 24/7, with natural AI-generated replies?ā Ā Spoiler alert: You donāt need a developer teamājust a few clicks in n8n, a Wassenger account, and OpenAI.
𤩠š¤ Wassenger is a complete API solution for WhatsApp. Sign up for a 7-day free trial and get started in minutes!
Requirements
- n8n: v1.70 or later
- Wassenger account: Sign up for free to get API access
- API Key: obtain your API key here
- WhatsApp number: At least one WhatsApp number connected to Wassenger
- OpenAI API credentials: you can get them from here
Important! š¬ If youāre new to using n8n with Wassenger, check out our setup guide to get started quickly.
Now, letās create our new AI ChatBot! š¤
1. Create a new Workflow onĀ n8n
Within the n8n interface, go to āWorkflowsā and click āCreate Workflowā
2. Connect the Wassenger Trigger
Okay, now that we are inside our new Workflow, we are going to create the connection with Wassenger in the following way:
Click on āAdd first stepā
Then search for āWassengerā. Remember, you need to install the Wassenger node first. If you havenāt done it yet, check out our related article here.
Then select the āOn new inbound message receivedā trigger
A window like this will open
Now, we need to add our Wassenger API credentials to connect n8n with Wassenger:
- Go to the API key page in Wassenger and copy the given API key or create one
2. And copy it into the n8n trigger
𤩠š¤ Wassenger is a complete API solution for WhatsApp. Sign up for a 7-day free trial and get started in minutes!
Then, select the connected WhatsApp number on Wassenger you want to trigger the event from and go back to your canvas
3. Connect the Advanced AIĀ node
Now we need to connect the node that will allow us to build autonomous agents, summarize or search documents
Next
And a window like this will show up
We will leave this for now to get back to our canvas to add our Open AI node, where the magic happens!
4. Connect the OpenAI chatĀ Model
A window like this will open, and we will insert our OpenAI credentials
Create an OpenAI account and find your credentials here
Then add it to n8n
5. Add the memoryĀ node
The Memory node allows an AI model to remember and reference past interactions with it, and no credentials are required since it is stored within n8n
Extend the āContext Window Lengthā to 10
𤩠š¤ Wassenger is a complete API solution for WhatsApp. Sign up for a 7-day free trial and get started in minutes!
6. Connect your Wassenger Webhook toĀ n8n
Now, for n8n to receive all message notifications when a contact texts you, we need to set up a new webhook
- Go to the Webhooks page here
- Create a new Webhook
Then
- Name your webhook
- Add the webhook URL that you will find in the first node we created in n8n
3. Select the number you want to transfer messages from
4. Select the event message:in:new
5. Save your new Webhook in Wassenger
7. Test your firstĀ message
Now, we will click on āTest stepā on n8n to retrieve the given data from Wassenger and complete the whole process for the automatization:
After that, you can try sending a message to your WhatsApp number from another available number.
Then your n8n node will receive your message and contact information that we will use to configure the rest of the workflow
𤩠š¤ Wassenger is a complete API solution for WhatsApp. Sign up for a 7-day free trial and get started in minutes!
8. Configure the AI Agent with the dynamic retrieved data
Open the AI Agent node we added previously
Then
- Select the Source for Prompt (User Message) as Define Below
- Use the ābodyā field to reference the incoming message within the Prompt so that n8n always references the correct data. (Drag the element onto the input.)
If you canāt see the data tree, click āExecute previous nodesā and send a new message to your WhatsApp number.
Now that we have completed our AI agent configuration, letās see the Memory node
9. Add the Wassenger Message ResponseĀ Node
Now, we will add the node that will send the AI-created message to your end WhatsApp customers
Select āSend a Text Messageā
And a window like this will show up
Then, we can click on āExecute previous nodesā** to show the message information again and proceed as follows
- Select the number ID provided by Wassenger to determine the number used to send the AI response
- The target phone number we are sending the AI-generated response
- The output message generated by our OpenAI node, based on the question we received from the customer
š Youāre All Set to Launch Your AIĀ ChatBot!
Now that everythingās in place, you can see your chatbot in action. For example:
š¤ Customer sends a message
š¤ n8n processes it and replies instantly using AI
Check out more visual content of how the workflow should behave
From here, you can continue building smarter, more personalized automations. Whether itās handling FAQs, guiding users, or providing 24/7 support, the possibilities are endless.
š Ready to bring your WhatsApp communication to the next level? 𤩠š¤ Wassenger is your complete API solution for WhatsApp. Ā š Start your 7-day free trial today and get up and running in minutes!








































