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 WhatsApp 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 before sending messages.

Properties

Name Meaning
Campaign Select the campaign to use for fetching details, required to identify which campaign's data to retrieve.
Parameter 1 Value for template parameter {{1}}, used to fill the first placeholder in the campaign template.
Parameter 2 Value for template parameter {{2}}, used to fill the second placeholder in the campaign template.
Parameter 3 Value for template parameter {{3}}, used to fill the third placeholder in the campaign template.
Parameter 4 Value for template parameter {{4}}, used to fill the fourth placeholder in the campaign template.
Parameter 5 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 in the campaign
  • templateParameters - Array of values provided for the template parameters
  • templateText - Text content of the message template
  • sampleText - Sample text showing how the template looks with parameters filled
  • campaignDetails - Full details of the campaign object

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 available in the AiSensy project.
  • API request failures may occur due to invalid credentials or network issues. Verify the API key credential and network connectivity.
  • If template parameters are missing or incorrectly provided, the fetched template details may not match expected values. Provide correct parameter values as per the campaign template.

Links

Discussion