Back to Nodes

Greenapi

Last updated Nov 27, 2025

n8n node for Green-API for WhatsApp

41 Weekly Downloads
307 Monthly Downloads

Included Nodes

Greenapi
GreenapiTrigger
GreenapiPartner

Description

n8n-nodes-whatsapp-green-api

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.


๐Ÿ“– Overview

The GreenAPI Node provides full access to Green API endpoints, enabling you to send messages, manage chats, groups, and retrieve account information.


Installation

Install community node

Go to Settings โ†’ Community Nodes โ†’ Install, then enter n8n-nodes-whatsapp-green-api

Install via npm

npm install n8n-nodes-whatsapp-green-api

Restart n8n after installation.

Manual installation

  1. Copy repository into ~/.n8n/custom/
  2. Run:
    npm install
    npm run build
    
  3. Restart n8n

You can also check out the installation guide in the n8n community nodes documentation.


Authentication

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

๐Ÿงฉ Features

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

โš™๏ธ Usage Examples

๐Ÿ’ฌ Send Message

{
  "operation": "sendMessage",
  "chatId": "79001234567@c.us",
  "message": "Hello from n8n and Green API!"
}

๐Ÿ“Ž Send File by URL

{
  "operation": "sendFileByUrl",
  "chatId": "79001234567@c.us",
  "urlFile": "https://example.com/image.jpg",
  "fileName": "photo.jpg"
}

๐Ÿ“ฃ Send Text Status

{
  "operation": "sendTextStatus",
  "message": "Working with Green-API and n8n!",
  "backgroundColor": "#228B22",
  "font": "SERIF",
  "participants": []
}

๐Ÿ“ค Send Interactive Buttons Reply

{
  "operation": "sendInteractiveButtonsReply",
  "chatId": "79001234567@c.us",
  "header": "",
  "body": "Do you confirm the appointment for tomorrow?",
  "footer": "",
  "buttons": [
        {
            "buttonId": "1",
            "buttonText": "Yes"
        },
        {
            "buttonId": "2",
            "buttonText": "No"
        }
    ]
}

๐Ÿ‘ฅ Create Group

{
  "operation": "createGroup",
  "groupName": "My Team",
  "participants": ["79001234567@c.us", "79007654321@c.us"]
}

๐Ÿงญ Send Location

{
  "operation": "sendLocation",
  "chatId": "79001234567@c.us",
  "latitude": 40.7128,
  "longitude": -74.0060,
  "name": "New York",
  "address": "NY, USA"
}

๐Ÿ”„ Check Whatsapp

{
  "operation": "checkWhatsapp",
  "phoneNumber": 79000000000
}

๐Ÿ”— Resources


๐Ÿ‘ค Author

Developed by Green API
๐Ÿ“ง support@green-api.com
๐ŸŒ https://green-api.com/en/


๐Ÿชช License

MIT License