Actions9
Overview
This node manages Zalo user information by connecting to the Zalo platform via an API. Specifically, the "Lấy thông tin người dùng" (Get User Info) operation retrieves detailed information about a specified Zalo user based on their User ID.
Common scenarios where this node is useful include:
- Fetching profile details of a Zalo user for CRM or customer support purposes.
- Integrating Zalo user data into other systems or workflows.
- Automating user verification or enrichment processes using Zalo user info.
Practical example:
- Given a User ID, the node fetches the user's profile data such as name, avatar, gender, and other public information available through Zalo's API.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier of the Zalo user whose information you want to retrieve. This is a required string input. |
Output
The node outputs JSON data containing the status and the response from the Zalo API call that fetches the user information. The structure typically looks like:
{
"status": "success",
"response": {
// user information fields returned by Zalo API
}
}
status: Indicates whether the API call was successful.response: Contains the detailed user information retrieved from Zalo.
The node does not output binary data.
Dependencies
- Requires a valid Zalo API credential with authentication details including cookie, IMEI, and user agent.
- The node internally uses a Zalo API client class to perform login and user info retrieval.
- Proper configuration of the Zalo credential in n8n is necessary for authentication.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Incorrect User ID input will result in errors or empty responses.
- Network connectivity problems can prevent API calls from succeeding.
Error messages:
- If login fails, the node throws an error indicating failure to authenticate with Zalo.
- If the user info retrieval fails, the node returns an error message in the output JSON.
- When running in "continue on fail" mode, errors for individual items are captured in the output JSON under an
errorfield.
Resolutions:
- Verify and update the Zalo API credentials.
- Ensure the User ID is correct and corresponds to an existing Zalo user.
- Check network access and firewall settings.