Reply Message
AI-generatedOverview
This node integrates with the Zalo User API, enabling users to send and reply to messages, send images and files, retrieve user profiles, and fetch conversation lists on the Zalo platform. It is particularly useful for automating communication workflows with Zalo users, such as customer support bots, marketing campaigns, or internal notifications.
The "Reply Message" operation allows replying directly to a specific original message by referencing its ID, which is helpful in threaded conversations or when context-specific responses are needed.
Example use case:
A customer support system automatically replies to a user's query by referencing the original message ID, ensuring clear and contextual communication.
Properties
| Name | Meaning |
|---|---|
| Original Message ID | The ID of the original message to which you want to reply. |
| Reply Message | The content of the reply message that will be sent in response to the original message. |
Output
The node outputs a JSON object containing the result of the reply operation with the following structure:
success: Boolean indicating if the reply was sent successfully.operation: The string"replyMessage"indicating the performed operation.originalMessageId: The ID of the original message being replied to.replyMessage: The content of the reply message sent.result: The raw response from the Zalo API after sending the reply.timestamp: ISO string timestamp of when the operation was executed.
No binary data output is produced by this operation.
Example output JSON:
{
"success": true,
"operation": "replyMessage",
"originalMessageId": "1234567890",
"replyMessage": "Thank you for your message!",
"result": { /* API response object */ },
"timestamp": "2024-06-01T12:00:00.000Z"
}
Dependencies
- Requires an API key credential configured with session-based authentication (using cookies and user agent).
- The node depends on the external
zca-jslibrary to interact with the Zalo User API. - Proper session credentials must be provided; otherwise, the node will fail to authenticate.
Troubleshooting
Failed to login with saved session. Please generate new QR code.
This error indicates that the stored session cookie is invalid or expired. To resolve, regenerate the session credentials by scanning a new QR code or re-authenticating.Invalid credentials. Please use "Session Data" authentication method.
The node expects session-based authentication credentials. Ensure that the correct type of credentials with valid session data is supplied.Failed to connect to Zalo. Please check your credentials.
Indicates a failure to establish connection with the Zalo API, likely due to incorrect or expired credentials.Unknown operation: [operation]
This error occurs if an unsupported operation name is provided. Verify that the operation parameter is set correctly.If the node is set to continue on fail, errors will be returned in the output JSON with
success: falseand anerrormessage field.
Links and References
- Zalo Official Developer Documentation
- Zalo Messaging API Overview
- zca-js GitHub Repository (for the underlying SDK used)