Actions148
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Files Actions
- Team Actions
- Labels Actions
- Departments Actions
- Quick replies Actions
- Queue Actions
- WhatsApp session Actions
- WhatsApp profile Actions
- Business catalog Actions
- Campaigns Actions
- Meeting Links Actions
- User Status Actions
- Webhooks Actions
- Other Actions
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
Overview
This node interacts with the SparkBot WhatsApp API to update an existing quick reply associated with a WhatsApp number. Quick replies are predefined message templates that can be triggered by shortcut keywords, enabling faster and consistent responses in WhatsApp conversations.
Typical use cases include:
- Updating the content or shortcut keyword of a quick reply to reflect new information.
- Changing access permissions for who can use or edit the quick reply.
- Attaching media files to enrich quick replies with images, videos, or documents.
- Managing keywords associated with quick replies to improve searchability or categorization.
For example, a customer support team might update a quick reply shortcut "hours" to provide updated business hours or attach a PDF brochure as a media file.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number | The ID of the WhatsApp number where the quick reply belongs. |
| Shortcut | Shortcut keyword (2-25 characters) used to trigger the quick reply. |
| Message | The text content of the quick reply (4-6000 characters). |
| Permission | Access level for the quick reply: Public, Read-only, or Private. |
| Include Media File | Boolean flag indicating whether to attach a media file to the quick reply. |
| File ID | ID of a previously uploaded media file to attach (required if including a media file). |
| Keywords | Optional list of up to 3 alphanumeric keywords to associate with the quick reply. |
| Quick Reply ID | The unique identifier of the quick reply to update (24 character hex string). |
Output
The node outputs JSON data representing the result of the update operation on the quick reply. This typically includes details such as the updated quick reply's ID, shortcut, message content, permissions, attached media file info (if any), and associated keywords.
If a media file is included, the output reflects the attachment but does not output binary data directly.
Dependencies
- Requires an API key credential for authenticating with the SparkBot WhatsApp API.
- The node depends on the SparkBot service being accessible and properly configured.
- The "WhatsApp Number" and "File ID" options are dynamically loaded from the API via helper methods.
- Proper permissions and valid IDs must be provided to successfully update quick replies.
Troubleshooting
- Invalid Quick Reply ID: If the provided quick reply ID does not exist or is malformed, the API will return an error. Verify the ID format and existence.
- Missing Required Fields: Shortcut, message, and WhatsApp number are mandatory. Ensure these are provided and meet length constraints.
- File Attachment Issues: When including a media file, ensure the file ID corresponds to a previously uploaded file and is valid.
- Permission Errors: Insufficient permissions or invalid permission values may cause failures. Use one of the allowed permission options.
- API Authentication Failures: Check that the API key credential is correctly set up and has necessary rights.
- Network or Service Unavailability: Temporary connectivity issues with the SparkBot API can cause errors; retry after some time.
Links and References
- SparkBot WhatsApp API Documentation (hypothetical link)
- n8n Documentation on Creating Custom Nodes
- General WhatsApp Business API guidelines for quick replies and message templates.