Zalo Message Trigger icon

Zalo Message Trigger

Sự kiện lắng nghe tin nhắn trên Zalo

Overview

This node acts as a trigger for incoming messages on the Zalo platform, a popular messaging app. It listens for new messages either from individual users or groups based on configuration. When a message event occurs, it triggers the workflow with the message data.

Common scenarios where this node is useful include:

  • Automating responses to user or group messages on Zalo.
  • Logging or processing incoming chat messages for analytics.
  • Integrating Zalo conversations into other systems like CRMs or support tools.

For example, a business could use this node to listen for customer inquiries sent via Zalo and automatically create support tickets or send acknowledgment replies.

Properties

Name Meaning
Event Types Types of messages to listen for. Options: User Messages (messages from individual users), Group Messages (messages from groups). Multiple selections allowed.
Self Listen Whether to allow listening to messages sent by yourself. Boolean value: true or false.

Output

The node outputs JSON data representing the incoming message event received from Zalo. The output structure contains a message object with details about the message content, sender, timestamp, and other metadata as provided by the Zalo API.

No binary data output is produced by this node.

Example output JSON structure:

{
  "message": {
    // message details as received from Zalo webhook
  }
}

Dependencies

  • Requires an API key credential to connect to the Zalo platform.
  • Uses the zca-js library internally to handle Zalo API interactions and message listening.
  • Needs proper configuration of webhook URL in n8n to receive incoming message events.
  • Requires valid Zalo credentials including cookie, IMEI, and user agent information for authentication.

Troubleshooting

  • Connection failures: If the node throws "Zalo connection failed," verify that the provided credentials are correct and have not expired.
  • No messages received: Ensure the webhook URL is correctly set up and publicly accessible so Zalo can send events.
  • Listening to self messages: If you want to receive messages sent by your own account, enable the "Self Listen" property; otherwise, those messages will be ignored.
  • Credential errors: Missing or invalid credentials will prevent the node from connecting. Double-check the API key and related authentication details.

Links and References

Discussion