AiSensy icon

AiSensy

Interact with AiSensy WhatsApp API

Overview

This node interacts with the AiSensy WhatsApp API to perform operations related to WhatsApp campaigns. Specifically, the 'Fetch Campaigns' operation allows users to select a campaign and retrieve detailed information about it, including template parameters and sample texts. This is useful for configuring and preparing WhatsApp message templates before sending messages. For example, a user can fetch a campaign to see its template parameters and then use those parameters to send personalized messages.

Use Case Examples

  1. Fetch a specific WhatsApp campaign by selecting it from available campaigns to view its template details and parameters.
  2. Use the fetched campaign data to configure message templates dynamically in a workflow.

Properties

Name Meaning
campaignId Select the campaign to use for fetching details, required to identify which campaign's data to retrieve.
param1 Value for template parameter {{1}}, used to fill the first placeholder in the campaign template.
param2 Value for template parameter {{2}}, used to fill the second placeholder in the campaign template.
param3 Value for template parameter {{3}}, used to fill the third placeholder in the campaign template.
param4 Value for template parameter {{4}}, used to fill the fourth placeholder in the campaign template.
param5 Value for template parameter {{5}}, used to fill the fifth placeholder in the campaign template.

Output

JSON

  • campaignId - ID of the selected campaign
  • campaignName - Name of the selected campaign
  • templateName - Name of the message template used in the campaign
  • status - Current status of the campaign
  • audienceSize - Number of recipients in the campaign audience
  • campaignType - Type of the campaign template
  • totalParameters - Total number of template parameters expected by the campaign
  • templateParameters - Array of values provided for the template parameters
  • templateText - Text of the message template
  • sampleText - Sample text showing how the template looks with parameters filled
  • campaignDetails - Full campaign object with all details

Dependencies

  • AiSensy WhatsApp API
  • API key credential for AiSensy

Troubleshooting

  • If the selected campaign ID is invalid or not found, the node throws an error 'Selected campaign not found'. Ensure the campaign ID is correct and the API credentials have access to it.
  • API request failures may occur due to network issues or invalid credentials, resulting in error messages indicating failure to fetch campaigns. Verify API key and network connectivity.
  • Template parameters must match the expected number of parameters for the campaign template; missing or extra parameters may cause unexpected results.

Links

Discussion