Actions9
Overview
This node allows users to search for Zalo users by their phone number. It is useful in scenarios where you need to find and retrieve information about specific Zalo users based on their contact details. For example, a business could use this node to verify if a customer is registered on Zalo or to fetch user data for further processing or communication.
Properties
| Name | Meaning |
|---|---|
| Phone Number | The phone number of the user to search. |
| Limit | The maximum number of search results to return. |
Output
The node outputs JSON data containing the search results for the specified phone number. The output includes:
status: A string indicating the success status of the operation (e.g., "Thành công" meaning "Success").response: The detailed response from the Zalo API containing user information matching the search criteria.
Each output item corresponds to an input item, paired by index.
Dependencies
- Requires an API key credential for authenticating with the Zalo service.
- Uses cookies, IMEI, and user agent strings obtained from credentials or previous executions to authenticate requests.
- Depends on an external Zalo API client library internally to perform the user search.
Troubleshooting
Common issues:
- Invalid or missing API credentials can cause authentication failures.
- Incorrect phone number format may result in no users found.
- Exceeding the limit or rate limits imposed by the Zalo API might cause errors.
Error messages:
- If the internal API client fails to initialize, the node throws an error indicating failure to create the API client instance.
- Network or API errors during the search will be reported as operation errors with details.
- If the node is set to continue on failure, it will output the error message in the JSON field for the corresponding item.
Links and References
- Zalo Official Developer Documentation (for understanding the API endpoints and parameters)
- n8n documentation on Creating Custom Nodes