Actions12
Overview
This node interacts with Zalo, a popular Vietnamese messaging and social media platform, to manage user-related operations. Specifically, the "Tìm Kiếm Người Dùng" (Find User) operation allows you to search for Zalo users by their phone number. This is useful in scenarios where you want to identify or retrieve information about a user based on their contact details.
Practical examples include:
- Verifying if a phone number is registered on Zalo.
- Fetching user details before sending friend requests or messages.
- Integrating Zalo user lookup into CRM or marketing automation workflows.
Properties
| Name | Meaning |
|---|---|
| Phone Number | The phone number to search for the Zalo user. |
| Limit | The maximum number of results to return from the search. |
Output
The output JSON contains the data returned by the Zalo API's user search function. It typically includes user information matching the provided phone number. The exact structure depends on the API response but generally includes user identifiers and profile details.
Example output snippet (simplified):
{
"userId": "123456789",
"name": "Nguyen Van A",
"phoneNumber": "0123456789",
"avatarUrl": "https://example.com/avatar.jpg"
}
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential to authenticate with the Zalo platform.
- The node uses stored credentials including cookie, IMEI, and user agent strings to establish a session.
- The
zca-jslibrary is used internally to interact with the Zalo API. - Proper configuration of the Zalo API credential within n8n is necessary.
Troubleshooting
- Invalid Credentials: If the node throws an error indicating no API instance found, verify that the Zalo API credentials are correctly set up and valid.
- Empty Results: Searching with an incorrect or unregistered phone number will return empty or no user data.
- Rate Limits: Excessive requests may be throttled by Zalo; consider adding delays or handling rate limit errors gracefully.
- Network Issues: Ensure network connectivity to Zalo services and that any required proxies or firewalls allow access.