Actions25
- Message Actions
- Friend Actions
- Get Actions
- Group Actions
- Tool Actions
Overview
This node operation "Remove Friend" under the "Friend" resource is designed to remove a friend connection for a user on the Zalo platform. It takes a user ID as input and performs an API call or internal logic to delete that friend from the user's friend list.
Common scenarios where this node would be beneficial include:
- Managing social connections programmatically, such as cleaning up friend lists.
- Automating friend removal based on certain criteria or events.
- Integrating with other workflows that require updating social relationships.
Practical example:
- A workflow that periodically removes inactive friends by passing their user IDs to this node.
- An automation that removes a friend after a certain event, like unfollowing or blocking.
Properties
| Name | Meaning |
|---|---|
| User Id | The unique identifier of the Zalo user whose friend relationship you want to remove. |
The "User Id" property is required and expects a string representing the target user's ID.
Output
The output of the node is a JSON object indicating the success or failure of the friend removal operation. Typically, it contains:
- A boolean field indicating whether the operation was successful.
- Additional metadata or error information if the operation failed.
No binary data output is indicated in the source code.
Example output JSON structure (conceptual):
{
"success": true,
"message": "Friend removed successfully",
"userId": "target_user_id"
}
If an error occurs, the output will contain error details.
Dependencies
- Requires an API key credential or authentication token to access the Zalo API.
- Depends on the Zalo platform's friend management API endpoint.
- The node uses internal HTTP request handling and error management mechanisms.
- No external libraries beyond standard Node.js modules and n8n framework utilities are explicitly required.
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 credentials are properly configured.
- Network or API errors: Temporary network issues or API rate limits may cause failures.
- Permission errors: The authenticated user must have permission to remove the specified friend.
Error Messages and Resolutions
- "Authentication failed": Check your API credentials and re-authenticate.
- "User not found": Verify the User Id is correct and the user exists.
- "Permission denied": Confirm that your account has rights to remove this friend.
- "Network error": Retry the operation after checking your internet connection.
- Unhandled exceptions: Review the error logs provided by the node output for debugging.
Links and References
- Zalo Official API Documentation
- n8n Documentation - Creating Custom Nodes
- Handling API Credentials in n8n
Note: The analysis is based solely on static code inspection and the provided property definitions. The obfuscated source code limits detailed insight into internal implementation specifics.