DEV Community

WAHA -Self-Hosted WhatsApp API
WAHA -Self-Hosted WhatsApp API

Posted on

WhatsApp Automation No Code Low Code Step-By-Step Guide - WAHA + n8n

https://waha.devlike.pro/blog/waha-n8n/


Image description

Here's how you can start developing your WhatsApp automation with using n8n and WAHA in pair so you can create
your own no-code or low-code WhatsApp automation:

Image description

Installation

Here's a quick docker-compose we have prepared for you to start using n8n with WAHA:

wget https://raw.githubusercontent.com/devlikeapro/waha/core/docker-compose.n8n.yaml
mv docker-compose.n8n.yaml docker-compose.yaml
Enter fullscreen mode Exit fullscreen mode
docker login -u devlikeapro -p <dckr_pat_1111111111>
docker pull devlikeapro/waha-plus
docker logout
Enter fullscreen mode Exit fullscreen mode
  • If you're using WAHA Core (free version) - you can use the image from Docker Hub:
sed -i 's/devlikeapro\/waha-plus/devlikeapro\/waha/g' docker-compose.yaml
Enter fullscreen mode Exit fullscreen mode

Now you're ready to run:

docker compose up 
# to run in background:
# docker compose up -d
Enter fullscreen mode Exit fullscreen mode

After that, open:

  1. n8n at https://localhost:5678 and set up your email/password
  2. WAHA at https://localhost:3000/dashboard (waha/waha)

Install WAHA n8n node

We provide WAHA Node, which you can install at your n8n installation.

Go to your n8n => Settings => Community nodes and install:

@devlikeapro/n8n-nodes-waha
Enter fullscreen mode Exit fullscreen mode

If you need help with that, check the
Install community nodes

First WhatsApp workflow

We'll build simple workflow - when your WhatsApp account got any message,
it responds with "Hi there" message

Step 1: Add WAHA API credentials

Before starting using the node, you need to add WAHA API credentials.

  1. Go to your n8n => Home => Credentials => Add first credential
  2. Find WAHA API in dropdown
  3. Host URL - http://waha:3000 or use your domain
  4. API Key - 321 or your API key set in docker-compose.yaml
  5. Click Save - it'll check the connection and save the credentials

Image description

If you need help with that, check the
Create credentials

Step 2: Create a new workflow

  1. Go to n8n => Home => Workflows => Create new workflow.
  2. Remove Manual trigger

Image description

Step 3: Add WAHA Trigger

Add WAHA Trigger node.

Image description

Step 4: Add Send a text message action

Add Send a text message WAHA Action and connect it to message WAHA Trigger output:

Image description

Step 5: Activate the workflow

Click Save and Activate the workflow:

Image description

Step 6: Start a new session

Open the WAHA Trigger and expand Webhook URLs => Production URL

Image description

Go to http://localhost:3000/dashboard/ (waha/waha) and
Start New session with the URL you got from the WAHA Trigger:

Image description

Scan QR and wait till session in WORKING state:

Image description

Step 7: Send a message

Now you can send any message to your WhatsApp account, and it'll respond with "Hi there" message!

Workflow Templates

👉 Check out
https://waha-n8n-workflows.devlike.pro
for workflow templates!

Image description

Troubleshooting

If you're experiencing any issues or have a feature request, please check the below resources:
WAHA:

n8n:

If that doesn't help - kindly open an issue in the
devlikeapro/n8n-nodes-waha
GitHub repository, we're happy to help you out!

Top comments (3)

Collapse
 
botsailorofficial profile image
BotSailor

Really useful walkthrough, especially for people who want to automate WhatsApp workflows without getting buried in complex code. I like how the combination of WAHA and n8n makes the whole process feel more approachable. You can focus on the actual workflow and business logic instead of building everything from scratch. The step-by-step approach also makes it easier to see how automation can move beyond simple messaging and handle real tasks like notifications, lead follow-ups, and customer support. Definitely a good starting point for anyone exploring no-code or low-code automation.

Collapse
 
swarnim_badholiya_071de73 profile image
Swarnim Badholiya

Great step-by-step guide on WhatsApp automation! No-code and low-code solutions are making automation more accessible than ever. If you're interested in exploring more automation strategies and tools, check out our guide here: ajackus.com/partner-platforms/what...

Some comments may only be visible to logged-in visitors. Sign in to view all comments.