Actions17
- Get Actions
- Message Actions
- Friend Actions
- Group Actions
Overview
This n8n node is designed to interact with the Zalo platform, specifically to retrieve information about a user based on their User Id. The "Get User Info" operation under the "Get" resource allows you to fetch detailed data for a specific Zalo user. This can be useful in automation scenarios where you need to enrich contact records, verify user identities, or trigger workflows based on user details from Zalo.
Example use cases:
- Enriching CRM records with Zalo user information.
- Verifying if a user exists before sending messages or invitations.
- Automating onboarding processes by fetching user profiles.
Properties
The following input property is relevant for this operation:
| Display Name | Type | Description |
|---|---|---|
| User Id | String | ID của Zalo User để lấy thông tin. (Zalo User ID to retrieve information.) |
- User Id (string, required): The unique identifier of the Zalo user whose information you want to retrieve.
Output
The output of this node for the "Get User Info" operation is a JSON object containing the user's information as returned by the Zalo API. While the exact structure depends on the Zalo API response, typical fields may include:
{
"success": true,
"data": {
// User profile fields such as:
"userId": "123456789",
"displayName": "Nguyen Van A",
"avatar": "https://...",
"gender": "male",
"birthday": "1990-01-01",
// ...other available user info fields
}
}
If an error occurs, the output will contain error information:
{
"success": false,
"error": "Error message",
"stack": "Stack trace (if available)"
}
Dependencies
- External Service: Requires access to the Zalo API.
- API Key/Token: You must configure your Zalo API credentials in n8n for authentication.
- n8n Configuration: Ensure that any necessary environment variables or credentials for Zalo are set up in your n8n instance.
Troubleshooting
Common Issues:
- Invalid or missing User Id: If the provided User Id does not exist or is empty, the node will return an error indicating that the user was not found.
- Authentication errors: If your Zalo API credentials are incorrect or expired, you will receive an authentication error.
- API rate limits: Excessive requests may result in rate limiting by Zalo; check the error message for rate limit indications.
Error Messages:
"User not found": The specified User Id does not correspond to any existing Zalo user."Authentication failed": Check your Zalo API credentials in n8n."Network error"or"Timeout": There may be connectivity issues between n8n and the Zalo API.
Resolution Steps:
- Double-check the User Id value.
- Verify your Zalo API credentials in n8n.
- Retry after some time if you suspect rate limiting.