Actions22
- Get Actions
- Message Actions
- Friend Actions
- Group Actions
- Tool Actions
Overview
This node operation "Send Friend Request With User Id" under the "Friend" resource is designed to send a friend request to a specified user on the Zalo platform using their unique User Id. It optionally allows including a personalized message with the friend request.
Common scenarios where this node is beneficial:
- Automating social outreach by sending friend requests to users identified by their User Ids.
- Integrating Zalo friend request functionality into workflows that manage contacts or customer engagement.
- Sending customized friend requests with messages for marketing campaigns or community building.
Practical example:
- A business wants to automatically send friend requests to new leads collected from a CRM system, using their Zalo User Ids, and include a welcome message inviting them to join a group or event.
Properties
| Name | Meaning |
|---|---|
| User Id | The unique identifier of the Zalo user to whom the friend request will be sent. (string, required) |
| Message | Optional text message content to accompany the friend request. (string, optional) |
Output
The node outputs an array of JSON objects representing the results of the friend request operations. Each object typically contains:
- A boolean
successflag indicating if the friend request was sent successfully. - Additional metadata or error information if the request failed.
If the node supports binary data output (not explicitly shown in the provided code), it would represent any attachments or media related to the operation, but for this operation, the output is primarily JSON-based status information.
Dependencies
- Requires an active connection to the Zalo API, authenticated via an API key or token credential configured in n8n.
- Uses internal helper classes and methods to interact with the Zalo API endpoints.
- May depend on external libraries for HTTP requests and file system operations (e.g.,
fsmodule), as seen in the bundled source.
Troubleshooting
Common issues:
- Invalid or missing User Id: The node requires a valid User Id; ensure the input is correct.
- Authentication errors: Ensure the API key or authentication token is correctly set up and has permissions to send friend requests.
- Network or API downtime: Temporary failures may occur due to network issues or Zalo API service interruptions.
Error messages:
- Errors related to invalid User Id or permission denied will be returned from the API and surfaced by the node.
- If the node throws an error about missing credentials or failed authentication, verify the credential configuration.
- File system errors might appear if attachments are involved elsewhere, but not typical for this operation.
Resolution steps:
- Double-check the User Id format and existence.
- Re-authenticate or update API credentials.
- Retry after some time if the issue is due to network/API availability.
Links and References
Note: The analysis is based solely on static code inspection and provided property definitions. Internal variable names and credential types have been generalized per instructions.