Actions9
Overview
This node interacts with the Zalo social platform to manage user-related actions. Specifically, for the "Zalo User" resource and the "Lấy danh sách bạn bè" (Get all friends) operation, it retrieves a list of friends from a Zalo user account.
Common scenarios where this node is useful include:
- Synchronizing a user's Zalo friend list with another system.
- Analyzing or processing a user's social connections on Zalo.
- Automating workflows that require access to a user's friend data.
For example, you could use this node to fetch up to 50 friends of a Zalo user and then send personalized messages or invitations based on that list.
Properties
| Name | Meaning |
|---|---|
| Limit | The maximum number of friends to retrieve from the user's friend list. |
Output
The output JSON contains a single field:
friends: An array of friend objects representing the retrieved friends. Each object corresponds to one friend in the user's Zalo friend list.
Example output structure:
{
"friends": [
{
// friend details here
},
{
// friend details here
}
]
}
No binary data output is produced by this operation.
Dependencies
- Requires valid Zalo API credentials including an API key credential that provides cookie, device IMEI, and user agent information.
- Uses an external library (
zca-js) to interact with the Zalo API. - The node expects these credentials to be configured properly in n8n before execution.
Troubleshooting
- Invalid Credentials: If the node throws an error about no API instance found, ensure that the provided Zalo API credentials are correct and contain valid cookie, IMEI, and user agent values.
- Limit Exceeds Available Friends: If the requested limit exceeds the actual number of friends, the node will simply return all available friends without error.
- API Rate Limits or Network Issues: Temporary failures in connecting to Zalo's API may cause errors; retrying or checking network connectivity can help.
- Continue On Fail: If enabled, the node will continue processing other items even if one fails, returning error messages in the output JSON under the
errorfield.