Overview
This node integrates with the AiSensy WhatsApp API to send campaign messages. It allows users to select a campaign, specify recipient details, and provide template parameters to customize the message. The node supports sending text and media messages (images/videos) as part of a campaign. It is useful for automating WhatsApp marketing campaigns, customer notifications, or personalized messaging at scale.
Use Case Examples
- Sending a WhatsApp campaign message to a customer with personalized parameters like name and order details.
- Sending an image or video campaign message by providing a media URL and filename along with the campaign and recipient details.
Properties
| Name | Meaning |
|---|---|
| Campaign | Select the campaign to use for sending the WhatsApp message. |
| Phone Number | Phone number of the recipient with country code (e.g., 917896541235). |
| Contact Name | Name of the contact to personalize the message. |
| Parameter 1 | Value for template parameter {{1}} to customize the message. |
| Parameter 2 | Value for template parameter {{2}} to customize the message. |
| Parameter 3 | Value for template parameter {{3}} to customize the message. |
| Parameter 4 | Value for template parameter {{4}} to customize the message. |
| Parameter 5 | Value for template parameter {{5}} to customize the message. |
| Media URL | URL of the media (image/video) to include in the campaign message, required for non-text campaigns. |
| Media Filename | Filename for the media being sent (optional). |
Output
JSON
success- Indicates if the message was sent successfully.messageResponse- Response from the AiSensy API after sending the message.campaignDetailsid- ID of the campaign used.name- Name of the campaign.type- Type of the campaign message (e.g., TEXT, IMAGE).status- Current status of the campaign.audienceSize- Number of recipients in the campaign audience.templateText- Template text of the campaign message.sampleText- Sample text of the campaign message template.totalParameters- Total number of template parameters in the campaign.parametersUsed- List of template parameters values used in the message.
sentTophoneNumber- Phone number of the message recipient.contactName- Name of the contact recipient.
mediaurl- URL of the media sent with the message (if any).filename- Filename of the media sent with the message (if any).
Dependencies
- AiSensy WhatsApp API
Troubleshooting
- Ensure the selected campaign ID is valid and exists; otherwise, the node will throw a 'Selected campaign not found' error.
- Verify that the phone number includes the country code and is in the correct format to avoid message sending failures.
- For non-text campaigns, ensure the Media URL is provided and accessible; missing media URL will cause errors.
- Check API credentials and project ID configuration as the node requires valid AiSensy API credentials to function.
- If the node fails to fetch campaigns, verify network connectivity and API permissions.
Links
- AiSensy API Documentation - Official documentation for AiSensy WhatsApp API integration.