Actions6
- Email Actions
- WhatsApp Actions
- SMS Actions
Overview
The node integrates with the TouchBasePro API to send WhatsApp messages. Specifically, the Send Message operation under the WhatsApp resource allows users to send either plain text messages or template-based messages via WhatsApp.
This node is useful for automating WhatsApp communications such as customer notifications, alerts, reminders, or marketing messages. For example, a business can use it to send appointment reminders using predefined message templates or send custom text messages to customers.
Properties
| Name | Meaning |
|---|---|
| Country Code | The country code prefix for the recipient's phone number (e.g., +1 for USA, +91 for India). Required to correctly format the phone number for WhatsApp messaging. |
| Phone Number | The recipient's phone number without the country code. Combined with the country code to form the full phone number. |
| Message Type | The type of WhatsApp message to send. Options are: - Text Message: Send a custom text message. - Template Message: Send a predefined WhatsApp message template. |
| Message | The content of the text message to send. Required if Message Type is "Text Message". |
| Template Name or ID | The name or ID of the WhatsApp message template to use. Required if Message Type is "Template Message". Users can select from available templates or specify an expression to dynamically provide the template ID. |
| Template Language Name or ID | The language in which the template message should be sent. Selectable from available languages or specified via expression. Applies only when sending template messages. |
| Template Variables | A collection of variables to replace placeholders in the selected template message. Each variable has: - Variable Name or ID: The placeholder name defined in the template. - Value: The value to substitute. |
Output
The node outputs JSON data representing the response from the TouchBasePro API after attempting to send the WhatsApp message. This typically includes status information about the message delivery request.
No binary data output is indicated for this operation.
Dependencies
- Requires an active TouchBasePro API credential configured in n8n to authenticate requests.
- Depends on the availability of WhatsApp message templates and their languages configured in the TouchBasePro account.
- Uses internal methods to load options dynamically for templates, languages, and template variables.
Troubleshooting
Common Issues:
- Incorrect or missing country code or phone number may cause message delivery failure.
- Using a template name or language not available in the TouchBasePro account will result in errors.
- Missing required template variables when sending a template message can cause the API to reject the request.
- Network or authentication issues with the TouchBasePro API can prevent message sending.
Error Messages:
"Operation "sendWhatsAppMessage" not implemented for resource "whatsapp": Indicates a misconfiguration or unsupported operation; ensure the correct resource and operation are selected.- API errors related to invalid phone numbers or templates usually include descriptive messages from TouchBasePro; verify input values accordingly.
Links and References
- n8n Expressions Documentation — for dynamic expressions used in template IDs and variables.
- TouchBasePro API documentation (not publicly linked here) — consult your TouchBasePro account resources for details on WhatsApp templates and API usage.