
Security News
pnpm 11.5 Adds Support for Recognizing npm Staged Publishes
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.
@green-api/n8n-nodes-green-api
Advanced tools
n8n community node for Green-API WhatsApp automation - send messages, manage contacts, and handle webhooks
n8n community node for Green-API WhatsApp automation - Send messages, manage contacts, handle webhooks, and automate WhatsApp Business workflows directly in n8n.
Green-API provides a powerful REST API for WhatsApp Business automation. This node brings that power to n8n, the fair-code licensed workflow automation platform.
For n8n v0.187.0 or above:
n8n-nodes-green-apiAfter installation, search for "Green-API" in the nodes panel.
npm install n8n-nodes-green-api
You need a Green-API account to use this node.
1234567890)| Operation | Description |
|---|---|
| Send Text | Send text messages with link preview and quoting |
| Send File by URL | Send files (images, videos, docs) from URL |
| Send File by Upload | Upload and send files from your system |
| Send Location | Share GPS coordinates with optional name |
| Send Contact | Send contact cards with phone and name |
| Operation | Description |
|---|---|
| Get Chat History | Retrieve message history for specific chat |
| Get Last Incoming | Get recent incoming messages |
| Get Last Outgoing | Get recent outgoing messages |
| Operation | Description |
|---|---|
| Get Contacts | Retrieve your contact list |
| Check WhatsApp | Verify if phone number is on WhatsApp |
Webhook listener that automatically receives notifications:
Green-API Node:
├── Resource: Message
├── Operation: Send Text
├── Chat ID: 1234567890@c.us
└── Message: "Welcome to our service!"
[Trigger] Green-API Trigger
├── Event Type: Incoming Message
└── Filter: Text messages only
↓
[Action] Green-API Node
├── Resource: Message
├── Operation: Send Text
├── Chat ID: {{$json.senderData.chatId}}
└── Message: "Thanks for your message! We'll respond soon."
Green-API Node:
├── Resource: Message
├── Operation: Send File by URL
├── Chat ID: 1234567890@c.us
├── File URL: https://example.com/invoice.pdf
├── File Name: invoice.pdf
└── Caption: "Here's your invoice for March 2025"
[Start] HTTP Request or Database
└── Get list of phone numbers
↓
[Loop] Loop Over Items
└── For each contact
↓
[Action] Green-API Node
├── Resource: Message
├── Operation: Send Text
├── Chat ID: {{$json.phone}}@c.us
└── Message: "Important update: ..."
Green-API Node:
├── Resource: Contact
├── Operation: Check WhatsApp
└── Phone Number: 1234567890
→ Returns: {"existsWhatsapp": true}
WhatsApp uses specific formats for chat IDs:
| Type | Format | Example |
|---|---|---|
| Individual | [phone]@c.us | 1234567890@c.us |
| Group | Received from Green-API | 120363XXXXX@g.us |
Note: For individual chats, use full international number without + symbol.
Credentials are automatically validated using Green-API status check.
# Clone repository
git clone https://github.com/rajeshwws/GreenApiN8N.git
cd GreenApiN8N
# Install dependencies
npm install
# Build the node
npm run build
# Link for local development
npm link
# In n8n installation directory
npm link n8n-nodes-green-api
# Start n8n
n8n start
# Test at: http://localhost:5678
npm run build # Compile TypeScript
npm run dev # Watch mode
npm run lint # Check code quality
npm run format # Format code
Contributions are welcome! Please:
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)MIT © Rajesh
Made with ❤️ for the n8n community
If this node helps you, please ⭐ star the repo on GitHub!
FAQs
n8n community node for Green-API WhatsApp automation - send messages, manage contacts, and handle webhooks
The npm package @green-api/n8n-nodes-green-api receives a total of 0 weekly downloads. As such, @green-api/n8n-nodes-green-api popularity was classified as not popular.
We found that @green-api/n8n-nodes-green-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.