n8n Template - GoWAPI Send Bulk Messages + Database + Send e-mail
It’ll send the message to the phone numbers and at the end send an email, and you can check database for the status of
the messages.
How it works
Send bulk messages to the phone numbers and at the end send an email.
Set up steps
- Download Template https://gowapi.dev/public/docs/GoWAPI-Send-Bulk-Messages-API.json , Copy template and Paste in n8n
(Ctrl+V), or Import from File... or Import From URL
- Configure GoWAPI API credentials and select it for all GoWAPI nodes
- Get Webhook URL (production one) from GoWAPI Trigger node
- Configure your GoWAPI session to send webhooks with message type to the Webhook URL
- Configure your PostgresSQL credentials and set it to all PostgresSQL nodes
- Configure your SMTP credentials and set it to the Email node
- Run once the migration
- Publish/Active your workflow in n8n
- Get Webhook URL from Webhook node
Send request to the endpoint with the following payload:
curl -X POST -H "Content-Type: application/json" -d '[
{
"text": "Hi there!",
"phone": "5511987654321"
},
{
"text": "Hi there!",
"phone": "123123456789"
},
{
"text": "Hi there!",
"phone": "553188885555"
},
{
"text": "Hi there!",
"phone": "5521999991234"
}
]' https://localhost:5000/webhook/11111111-111111-1111-1111-d2ac95896744/messages/{SESSION}/bulk
It’ll send the message to the phone numbers and at the end send an email, and you can check database for the status of
the messages