Integration node for Green API in n8n.
This community node allows automation of WhatsApp interactions using Green API β including messaging, file transfer, contacts, groups, statuses, and instance management.
The GreenAPI Node provides full access to Green API endpoints, enabling you to send messages, manage chats, groups, and retrieve account information.
Go to Settings β Community Nodes β Install, then enter n8n-nodes-whatsapp-green-api
npm install n8n-nodes-whatsapp-green-apiRestart n8n after installation.
- Copy repository into
~/.n8n/custom/ - Run:
npm install npm run build
- Restart n8n
You can also check out the installation guide in the n8n community nodes documentation.
To use this node, you need to have an instance and token from Green-API platform and WhatsApp account:
- Sign up at Green-API
- Create an instance
- Get idInstance and apiTokenInstance
- Authorize the instance in the Console
| Category | Methods |
|---|---|
| π€ Account | getSettings, setSettings, getStateInstance, reboot, logout, getWaSettings |
| βοΈ Sending | sendMessage, sendPoll, sendFileByUrl, sendLocation, sendContact, forwardMessages, sendInteractiveButtons, sendInteractiveButtonsReply |
| π₯ Receiving | webhookTrigger, downloadFile |
| π Journals | getChatHistory, getMessage, lastIncomingMessages, lastOutgoingMessages |
| π§Ύ Queues | showMessagesQueue, clearMessagesQueue |
| π₯ Groups | createGroup, updateGroupName, getGroupData, addGroupParticipant, deleteGroupParticipant, setGroupAdmin, removeGroupAdmin, leaveGroup |
| π£ Statuses | sendTextStatus, sendVoiceStatus, sendMediaStatus, deleteStatus, getStatusStatistic, getIncomingStatuses, getOutgoingStatuses |
| β Readmark | readChat |
| π§© Service | getContacts, getContactInfo, editMessage, deleteMessage, archiveChat, unarchiveChat, setDisappearingChat |
{
"operation": "sendMessage",
"chatId": "[email protected]",
"message": "Hello from n8n and Green API!"
}{
"operation": "sendFileByUrl",
"chatId": "[email protected]",
"urlFile": "https://example.com/image.jpg",
"fileName": "photo.jpg"
}{
"operation": "sendTextStatus",
"message": "Working with Green-API and n8n!",
"backgroundColor": "#228B22",
"font": "SERIF",
"participants": []
}{
"operation": "sendInteractiveButtonsReply",
"chatId": "[email protected]",
"header": "",
"body": "Do you confirm the appointment for tomorrow?",
"footer": "",
"buttons": [
{
"buttonId": "1",
"buttonText": "Yes"
},
{
"buttonId": "2",
"buttonText": "No"
}
]
}{
"operation": "createGroup",
"groupName": "My Team",
"participants": ["[email protected]", "[email protected]"]
}{
"operation": "sendLocation",
"chatId": "[email protected]",
"latitude": 40.7128,
"longitude": -74.0060,
"name": "New York",
"address": "NY, USA"
}{
"operation": "checkWhatsapp",
"phoneNumber": 79000000000
}- π Green API Documentation
- π n8n Documentation
- π¬ n8n Community Forum
Developed by Green API
π§ [email protected]
π https://green-api.com/en/