Actions25
- Get Actions
- Message Actions
- Friend Actions
- Group Actions
- Tool Actions
Overview
This node operation "Remove Friend" under the "Friend" resource is designed to remove a friend relationship for a specified user in the Zalo platform. It takes a user ID as input and performs the action of removing that user from the authenticated user's friend list.
Common scenarios where this node would be beneficial include:
- Managing social connections by programmatically removing unwanted or inactive friends.
- Automating cleanup of friend lists based on certain criteria.
- Integrating with other workflows that require updating friend relationships dynamically.
Practical example:
- A workflow that periodically audits your friend list and removes users who have not interacted within a certain timeframe.
- An automated process triggered when a user blocks another user, which then removes the blocked user from the friend list.
Properties
| Name | Meaning |
|---|---|
| User Id | The unique identifier (ID) of the Zalo user to be removed from the friend list. |
The "User Id" property is required and expects a string representing the target user's ID.
Output
The output of this node operation is a JSON object indicating the result of the remove friend request. Typically, it will contain fields such as success status, any error messages if applicable, and possibly metadata about the operation.
If the node supports binary data output (not explicitly shown here), it would represent related media or attachments, but for this operation, the output is primarily JSON confirming the removal action.
Dependencies
- Requires an active connection to the Zalo API with appropriate authentication credentials (e.g., an API key or token).
- The node depends on the Zalo platform's friend management API endpoint to perform the removal.
- Proper n8n credential configuration for Zalo API access is necessary.
- No additional external services are indicated beyond the Zalo API.
Troubleshooting
Common Issues
- Invalid User Id: If the provided User Id does not exist or is malformed, the API call will fail.
- Authentication Errors: Missing or invalid API credentials will prevent the node from successfully removing a friend.
- Permission Denied: The authenticated user may not have permission to remove the specified friend.
- Network Issues: Connectivity problems can cause timeouts or failures in reaching the Zalo API.
Error Messages and Resolutions
- "User not found": Verify that the User Id is correct and corresponds to an existing Zalo user.
- "Unauthorized" or "Authentication failed": Check that the API credentials are correctly configured and valid.
- "Permission denied": Ensure the authenticated user has the rights to modify their friend list.
- Timeout or network errors: Confirm network connectivity and retry the operation.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Creating Custom Nodes
- Zalo Friend Management API Reference
Note: This summary is based solely on static analysis of the provided source code and property definitions without runtime execution or internal credential details.