Actions9
Overview
This node operation allows users to change the avatar (profile picture) of a specified Zalo user account. It is useful in scenarios where automated profile management is needed, such as updating user avatars in bulk or integrating avatar updates into workflows that manage user profiles on Zalo.
Practical examples include:
- Automatically updating a user's avatar after they upload a new photo through another system.
- Synchronizing profile pictures across multiple platforms by pushing changes to Zalo accounts.
- Managing multiple Zalo user accounts' avatars programmatically within an automation workflow.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier of the Zalo user whose avatar you want to change. |
| File Path | The file path to the new avatar image to be uploaded and set. |
Output
The output JSON contains two main fields:
status: A string indicating the success status of the avatar change operation (e.g., "success").response: The response data returned from the Zalo API after attempting to change the avatar. This typically includes details about the update result.
The output is paired with the input item index to maintain correspondence between inputs and outputs.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the Zalo platform.
- The node internally uses a Zalo API client library to perform actions such as changing the avatar.
- The file path provided must point to a valid image file accessible by the node at runtime.
Troubleshooting
Common issues:
- Invalid or missing User ID: Ensure the User ID corresponds to an existing Zalo user.
- Incorrect file path or inaccessible image file: Verify the file path is correct and the file is readable.
- Authentication errors: Confirm that the API key credential is valid and has necessary permissions.
- Network or API errors: Check network connectivity and Zalo API service status.
Error messages:
- Errors thrown during execution will include descriptive messages. If the node is configured to continue on failure, errors will appear in the output JSON under an
errorfield. - Authentication failures usually indicate invalid credentials or expired tokens.
- File-related errors suggest problems accessing the image file.
- Errors thrown during execution will include descriptive messages. If the node is configured to continue on failure, errors will appear in the output JSON under an
Resolving these typically involves verifying input parameters, credentials, and environment setup.
Links and References
- Zalo Official API Documentation
- Zalo Developer Portal
- n8n documentation on Creating Custom Nodes