Actions50
- Account Actions
- Call Actions
- Chat Actions
- Contact Actions
- Group Actions
- Instance Actions
- Media Actions
- Message Actions
- Session Actions
- User Actions
Overview
This node interacts with the WSAPI WhatsApp API, specifically allowing you to set or update the profile picture of a WhatsApp account. It is useful in scenarios where you want to programmatically change the profile image for branding, automation, or user management purposes. For example, a company could automatically update its WhatsApp business profile picture based on marketing campaigns or seasonal themes.
Properties
| Name | Meaning |
|---|---|
| Picture Base64 | Base64 encoded image data for the profile picture. Supported formats: JPEG, PNG. Recommended size: 640x640 pixels. You must provide the image data as a base64 string (e.g., starting with data:image/jpeg;base64,). |
Output
The node outputs JSON data representing the result of the "Set Picture" operation. This typically includes confirmation details from the WSAPI WhatsApp API about the updated profile picture status. The output does not include binary data.
Dependencies
- Requires an API key credential for authenticating with the WSAPI WhatsApp API.
- The node expects the base URL of the WSAPI service to be configured in the credentials.
- No additional external dependencies are required beyond the WSAPI service and proper authentication.
Troubleshooting
- Common issues:
- Providing invalid or improperly formatted base64 image data will cause the operation to fail.
- Using unsupported image formats or sizes may lead to errors or unexpected results.
- Missing or incorrect API credentials will prevent successful communication with the WSAPI.
- Error messages:
"The resource "account" is not known!"— indicates an invalid resource selection; ensure "Account" is selected."The operation "setPicture" is not implemented yet!"— suggests the operation name might be misspelled or not supported.- API errors related to authentication or invalid image data will be returned from the WSAPI and surfaced by the node.
- Resolution:
- Verify the base64 string format and image specifications.
- Confirm that the API key credential is correctly set up and has necessary permissions.
- Check the spelling and casing of the resource and operation parameters.
Links and References
- WSAPI WhatsApp API Documentation (Replace with actual URL if available)
- Base64 Image Encoding Guide