Actions10
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 the authenticated user's friends from Zalo.
Common scenarios where this node is beneficial include:
- Synchronizing a user's Zalo friend list with another system.
- Analyzing or processing friend data for marketing or engagement purposes.
- Automating workflows that depend on the user's social connections.
For example, you could use this node to fetch up to 50 friends 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 user's friends on Zalo. Each object includes details about a friend (the exact structure depends on the Zalo API response).
Example output snippet:
{
"friends": [
{
"id": "123456789",
"name": "Friend Name",
"avatar": "https://...",
...
},
...
]
}
No binary data output is produced by this operation.
Dependencies
- Requires valid Zalo API credentials including an API key credential that provides cookie, IMEI, and user agent information.
- Uses the external
zca-jslibrary to interact with the Zalo API. - The node expects these credentials to be configured in n8n beforehand.
Troubleshooting
- Invalid Credentials: If the node throws "No API instance found. Please make sure to provide valid credentials.", verify that your Zalo API credentials are correctly set up and contain valid cookie, IMEI, and user agent values.
- Empty Friend List: If the returned friend list is empty, ensure the authenticated account actually has friends and that the API permissions allow access to friend data.
- Limit Exceeds Available Friends: Setting the limit higher than the actual number of friends will simply return all available friends without error.
- API Rate Limits or Network Issues: Temporary failures may occur due to network problems or API rate limits; retrying after some time can help.
Links and References
- Zalo Official Developer Documentation
- zca-js GitHub Repository (for the underlying Zalo API client used)
- n8n Documentation on Creating Custom Nodes