Actions12
Overview
This node interacts with the Zalo social platform to manage user-related actions. Specifically, for the "Zalo User" resource and the "Chấp Nhận Lời Mời Kết Bạn" (Accept Friend Request) operation, it allows you to accept incoming friend requests by specifying the user ID of the requester.
Common scenarios where this node is beneficial include automating friend management workflows on Zalo, such as automatically accepting friend requests from certain users or integrating friend acceptance into broader automation pipelines.
Practical example: Automatically accept a friend request from a user whose ID is provided dynamically from previous workflow steps, enabling seamless onboarding or communication setup.
Properties
| Name | Meaning |
|---|---|
| User ID | The ID of the user whose friend request you want to accept |
Output
The node outputs JSON data containing:
status: A string indicating the result status, typically"Thành công"(Success).response: The detailed response from the Zalo API regarding the friend request acceptance action.
The output is paired with the input item index to maintain data consistency across the workflow.
No binary data output is involved in this operation.
Dependencies
- Requires an API key credential for authenticating with the Zalo API.
- The node depends on an internal Zalo API client library that handles cookie, IMEI, and user agent details for authentication.
- Proper configuration of the Zalo API credentials within n8n is necessary.
- The node expects valid session cookies and device identifiers to interact with the Zalo service.
Troubleshooting
Common issues:
- Invalid or expired authentication credentials may cause failures.
- Incorrect or missing User ID input will prevent the operation from succeeding.
- Network connectivity problems can interrupt API calls.
Error messages:
- If the node throws an error about failing to initialize the Zalo client, verify that the API credentials and session information are correctly configured.
- Errors related to invalid user IDs usually indicate that the provided User ID does not exist or is malformed.
- If the node returns an error wrapped in the output JSON, check the error message for details and ensure the user has sent a friend request to be accepted.
Resolution tips:
- Double-check the User ID value for correctness.
- Refresh or reauthenticate the API credentials if sessions expire.
- Ensure network access to the Zalo API endpoints.
Links and References
- Zalo Official Developer Documentation (general reference for Zalo API)
- n8n community forums and documentation for custom node development and troubleshooting