n8n Integration

4 articles Gowa Admin_ By Gowa Admin_

Guide and information for using the n8n with GoWAPI

GoWAPI + n8n: No Code Low Code WhatsApp Automation Step-By-Step Guide

GoWAPI + n8n: No Code Low Code WhatsApp Automation Step-By-Step Guide Here’s how you can start developing your WhatsApp automation with using n8n and GoWAPI in pair so you can create your own no-code or low-code WhatsApp automation: Install GoWAPI n8n node We provide GoWAPI Node, which you can install at your n8n installation. Go to your n8n => Settings => Community nodes and install: @gowaplatform/n8n-nodes-gowapi 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 GoWAPI API credentials Before starting using the node, you need to add GoWAPI API credentials. 1. Go to your n8n => Home => Credentials => Add first credential 2. Find GoWAPI API in dropdown 3. Get the GoWAPI server host URL - http://hub001.gowapi.dev 4. Please provide your GoWAPI WhatsApp session API Key 5. 6. Click Save - it’ll check the connection and save the credentials Click to open full size. 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. If included automatically remove Manual trigger Step 3: Add GoWAPI Trigger Add GoWAPI Trigger node. Step 4: Add Send a text message action Add node, search GoWAPI Add Send a text message GoWAPI Action and connect it to message GoWAPI Trigger output. Step 5: Activate the workflow Click Save and Activate or Publish the workflow: Step 6: Start a new session Open the GoWAPI Trigger and expand Webhook URLs => Production URL Go to GoWAPI Dashboar (Log in to your account) In the Device section, include the Webhook: Step 7: Send a message Now you can send any message to your WhatsApp account, and it’ll respond with “Hi there” message! n8n Help: - Installation guide - Install community nodes - Create credentials If that doesn’t help - kindly open an issue in the GitHub repository gowaplatform/n8n-nodes-gowapi: n8n community nodes for GoWAPI (WhatsApp HTTP API) or NPM package @gowaplatform/n8n-nodes-gowapi - npm , we’re happy to help you out!

n8n Template - GoWAPI - Bot Chatting Template

Simple chatting template that replies with “pong” if received “ping” and sends an image if received “image”. How it works When receive a new message on WhatsApp session - send seen always and based on message: - Send back “pong” if message is “ping” - Send back an image if message is “image” Set up steps - Create Workflow - **Download **https://gowapi.dev/public/docs/GoWAPI-Bot-Chatting-Template.json and Copy template and Paste in n8n (Ctrl+V), or Import From file... or Import From URL https://gowapi.dev/public/docs/GoWAPI-Bot-Chatting-Template.json - 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 - Active / Publish your workflow in n8n - Send “image” or “ping” to the WhatsApp account from another one and see the magic!

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

n8n Template - GoWAPI Trigger Explanation

Explanation what is hidden behind the GoWAPI Trigger node. - **Download Template **https://gowapi.dev/public/docs/GoWAPI-n8n-Trigger-Explanation.json , Copy template and Paste in n8n (Ctrl+V), or Import from File... or Import From URL