n8n-nodes-mirlo
v0.1.4
Published
n8n community node for Mirlo - Send WhatsApp messages, manage broadcasts, contacts and conversations
Downloads
475
Maintainers
Readme
n8n-nodes-mirlo
This is an n8n community node that lets you use Mirlo in your n8n workflows.
Mirlo is a WhatsApp Business API platform that enables you to send messages, manage broadcasts, handle contacts, and track conversations.
n8n is a fair-code licensed workflow automation platform.
Installation
Follow the installation guide in the n8n community nodes documentation.
Operations
Message
- Send Template: Send a WhatsApp template message to a single recipient
- Get: Retrieve a message by ID
- Get Many: List messages with optional filters
Broadcast
- Create: Create a new broadcast campaign
- Send: Send a broadcast to all recipients
- Get: Retrieve a broadcast by ID
- Get Many: List all broadcasts
- Get Recipients: List recipients of a broadcast
Contact
- Get: Retrieve a contact by ID
- Get Many: List all contacts
Conversation
- Get: Retrieve a conversation by ID
- Get Many: List all conversations
Template
- Get Many: List available WhatsApp templates
Credentials
To use this node, you need a Mirlo API Key:
- Log in to your Mirlo dashboard
- Go to Settings > API Keys
- Create a new API Key
- Copy the key (starts with
sk_live_)
Usage Examples
Send a Template Message
- Add the Mirlo node to your workflow
- Select Message as the resource
- Select Send Template as the operation
- Fill in:
- Organization ID: Your organization UUID
- Organization Address: Your WhatsApp phone number ID
- To: Recipient phone number (e.g.,
+521234567890) - Template ID: The Meta template ID
- Template Components: JSON array with parameters (if template has variables)
Example components JSON for a template with variables:
[
{
"type": "body",
"parameters": [
{ "type": "text", "parameter_name": "customer_name", "text": "John Doe" }
]
}
]Create and Send a Broadcast
- Add two Mirlo nodes in sequence
- First node - Create broadcast:
- Resource: Broadcast
- Operation: Create
- Fill in name, organization details, template ID, and recipients
- Second node - Send broadcast:
- Resource: Broadcast
- Operation: Send
- Broadcast ID:
{{ $json.id }}(from previous node)
Example recipients JSON:
[
{ "phone_number": "+521234567890" },
{ "phone_number": "+521234567891" },
{
"phone_number": "+521234567892",
"components": [
{
"type": "body",
"parameters": [
{ "type": "text", "parameter_name": "name", "text": "Maria" }
]
}
]
}
]Monitor Message Status
- After sending a message, store the returned
id - Use Message > Get operation to check the status
- The
statusobject shows timestamps for each state:pending: Message createdaccepted: Accepted by WhatsAppdelivered: Delivered to deviceread: Read by recipient
