Natvps.id – Using N8N as an automation tool and AI client like GPT4Free, we can make our own Whatsapp AI bot. This bot can then be developed to assist us in doing work.
This article discusses the steps to make a simple AI-based whatsapp bot, by combining Gowhatsapp, N8NAnd GPT4Free which has been discussed earlier.
Condition
To be able to follow this article, you need to install 3 applications on your NAT VPS:
- Gowhatsapp: Whatsapp Api not official which can be on Host Self for free. Read the installation step here: How to Install Gowhatsapp on Nat VPS
- N8N: Automation platform. Read the installation step here: How to Install N8n on Nat VPS
- GPT4Free: Library Python which provides access to various Large Language Models (LLM) through various provider. Read the installation step here GPT4Free deploy for access to various AI in NAT VPS:
- GPT4 -Free Proxy: It is necessary so that N8N can communicate with N8N. Read the installation steps here connecting GPT4Free with N8N in NAT VPS:
- N8N workflow file: Natvps.id provides a workflow example for WhatsApp Bot. Please download here because we will use it as a basis for workflow later: (Right -click -> Save As).
Install the Gowhatsapp of N8N package
To be able to interact with Gowhatsapp API through N8N, we need to install Community node For Gowhatsapp.
Open N8NThen enter Arrangement (lower left corner).

Then, enter the tab Community node

Choose Install community node

On NPM Package Nameenter @aldinokemal2104/n8n-nodes-gowa. Then click Install.

Wait until the package installation process is complete.

Create Workflow Whatsapp Bot
Enter the initial menu N8N. Cl. Create a workflow in the upper right corner.

Then, on the point three menu on the top right, select Import from the file.

Select the previously downloaded workflow file.

Gowhatsapp & GPT4Free Credential Setup
1. GPT4Free
Open one of the GPT4Free Proxy to regulate credentials.

Click Create new credentials.

The contents are as follows:
- API Key: Fill in anything because it is not used
- Basic URL: Fill with GPT4Free Proxy address You. If confused, refer to the proxy installation steps in the article:

2. Gowhatsapp
Similar to GPT4Free, open one of the node Gowhatsapp to regulate credentials.

Click Create new credentials.

The contents are as follows:
- Host URL: Your Gowhatsapp address
- Username & Password: Use the username & password to login to the Gowhatsapp Dashboard.

Click Save to save.
Set the webhook gowhatsapp
Open the node Webhook.

On URL Test And Production urlCopy both URL addresses. The difference lies at Webhook And Webhook test.



Login to your VPS NAT, then open the Gowhatsapp configuration file:
cd go-whatsapp-web-multidevice/ nano src/.env
In the section Whatsapp_webhook Fill in the format: URL>, URL>. Like this:

Save, then restart Docker Compose:
docker compose down docker compose up -d

The configuration is over! It’s time to test our bot.
Login WhatsApp number
Open your Gowhatsapp Dashboard, then click Login.

Scan QR Code listed using your WhatsApp BOT number.
If so, a description like this will appear on your dashboard:

Activating N8N workflow
Open the N8N workflow, then activate it by tapping divert at the top.

Trials!
The bot is ready to use! Start a conversation with your Whatsapp bot, and AI will answer it.

Game Center
Game News
Review Film
Rumus Matematika
Anime Batch
Berita Terkini
Berita Terkini
Berita Terkini
Berita Terkini
review anime