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
The node allows users to create a "Quick Reply" for WhatsApp via the SparkBot API. Quick Replies are predefined shortcut messages that can be sent quickly in conversations, improving response efficiency and consistency. This is particularly useful for customer support teams or sales agents who frequently send repetitive messages.
For example, a user might create a quick reply with the shortcut "hours" that sends the message "Our business hours are 9 AM to 5 PM, Monday through Friday." This saves time by avoiding typing the same message repeatedly.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number | The ID of the WhatsApp number (device) where the quick reply will be created. |
| Shortcut | A keyword shortcut (2-25 characters) used to trigger the quick reply. |
| Message | The content of the quick reply message (4-6000 characters). |
| Permission | Access permission level for the quick reply: Public, Read-only, or Private. |
| Include Media File | Whether to attach a media file along with the quick reply (true/false). |
| File ID | If including a media file, the ID of the previously uploaded file to attach (24 character hex). |
| Keywords | Optional list of up to 3 alphanumeric keywords associated with the quick reply. |
Output
The node outputs JSON data representing the result of the quick reply creation operation. This typically includes details about the newly created quick reply such as its ID, shortcut, message content, permissions, and any attached media file information.
If a media file is included, the output will reflect the association of that file with the quick reply 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 (device) must be registered and available in the system.
- If attaching media files, those files must have been previously uploaded and their IDs known.
Troubleshooting
Common issues:
- Invalid or missing WhatsApp number ID: Ensure the device ID is correct and loaded properly.
- Shortcut length errors: Shortcut must be between 2 and 25 characters.
- Message length errors: Message content must be between 4 and 6000 characters.
- File attachment errors: If including a media file, the file ID must be valid and correspond to an uploaded file.
- Permission value errors: Permission must be one of Public, Read-only, or Private.
Error messages:
- "Invalid device ID": Check the WhatsApp number selection.
- "Shortcut too short or too long": Adjust the shortcut length.
- "Message content invalid": Verify message length and content.
- "File ID required when including media": Provide a valid file ID if including media.
- Authentication errors: Verify API key credentials and connectivity.
Links and References
- SparkBot WhatsApp API Documentation
- n8n documentation on Creating Custom Nodes