AiSensy icon

AiSensy

Interact with AiSensy WhatsApp API

Overview

This node integrates with the AiSensy WhatsApp API to send WhatsApp messages using predefined campaigns. It supports sending messages by selecting a campaign, specifying the recipient's phone number and contact name, and optionally providing template parameters for message customization. This node is useful for automating WhatsApp communications in marketing campaigns, customer support, or notifications, allowing users to send personalized messages based on campaign templates.

Use Case Examples

  1. Sending a WhatsApp message to a customer using a specific campaign with personalized template parameters.
  2. Automating bulk WhatsApp notifications by selecting a campaign and providing recipient details dynamically.

Properties

Name Meaning
Campaign Name Name of the campaign to use for sending the message, which determines the message template and content.
Phone Number Recipient's phone number including country code, used to direct the WhatsApp message.
Contact Name Name of the contact receiving the message, used for personalization.
Template Parameters Comma-separated values to fill in the placeholders in the campaign's message template, allowing message customization.

Output

JSON

  • success - Indicates if the message was sent successfully (true/false).
  • messageResponse - The response object returned from the AiSensy API after sending the message.
  • campaignDetails
    • id - ID of the campaign used to send the message.
    • 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 targeted by the campaign.
    • templateText - Text template of the campaign message.
    • sampleText - Sample text of the campaign message template.
    • totalParameters - Total number of template parameters expected by the campaign.
    • parametersUsed - List of template parameters actually used in the sent message.
  • sentTo
    • phoneNumber - Phone number to which the message was sent.
    • contactName - Name of the contact to whom the message was sent.
  • media
    • url - 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 campaign name provided matches an existing campaign in the AiSensy project; otherwise, the node will throw a 'Selected campaign not found' error.
  • Verify that the phone number includes the correct country code and is formatted properly to avoid message delivery failures.
  • If using template parameters, ensure the number and order of parameters match the campaign template requirements to prevent message formatting errors.
  • Check API credentials and project ID configuration to avoid authentication or authorization errors when calling the AiSensy API.

Links

Discussion