Actions9
Overview
This node operation "Lấy danh sách bạn bè" (Get Friends List) for the "Zalo User" resource retrieves a list of friends from a Zalo user account. It is useful when you want to programmatically access and manage your Zalo social connections, such as for marketing, analytics, or integration with other systems.
Practical examples include:
- Exporting your Zalo friends list to a CRM system.
- Analyzing social network data for insights.
- Automating friend management tasks based on retrieved friend data.
Properties
| Name | Meaning |
|---|---|
| Limit | The maximum number of friends to retrieve. |
Output
The output JSON contains a field named friends which is an array representing the list of friends retrieved from the Zalo account. Each item in this array corresponds to a friend object with details as provided by the Zalo API.
Example structure of output JSON:
{
"friends": [
{
// friend details here
},
{
// friend details here
}
]
}
No binary data output is indicated for this operation.
Dependencies
- Requires a valid Zalo API authentication credential (an API key or token) configured in n8n to connect to the Zalo service.
- The node uses an internal Zalo client library to send requests authenticated by the user's cookie, IMEI, and user agent information extracted from credentials.
- Proper configuration of these credentials is necessary for successful API calls.
Troubleshooting
Common issues:
- Invalid or expired authentication credentials may cause failures in retrieving the friends list.
- Network connectivity problems can prevent communication with the Zalo API.
- Exceeding API rate limits might result in errors or incomplete data.
Error messages:
- If the node throws an error indicating missing or invalid credentials, verify that the API key/token and required session data (cookie, IMEI, user agent) are correctly set up.
- Errors related to response parsing or empty results may indicate changes in the Zalo API or insufficient permissions.
- When partial errors occur per item, the node attempts to continue processing remaining items unless configured otherwise.
Links and References
- Zalo Official Developer Documentation
- Zalo API Authentication Guide
- n8n Community Forum for Zalo integrations and troubleshooting tips