Aytan icon

Aytan

Interact with AiSensy WhatsApp API

Fetch Campaigns

AI-generated

Overview

This node interacts with the AiSensy WhatsApp API to manage and send WhatsApp campaign messages. Specifically, the 'Fetch Campaigns' operation allows users to retrieve details of a selected campaign, including its template parameters and sample texts, which can be used to configure message templates before sending. This is useful for automating WhatsApp marketing or notification campaigns by dynamically fetching campaign data and customizing messages accordingly.

Use Case Examples

  1. A marketing team uses this node to fetch campaign details and template parameters to prepare personalized WhatsApp messages for their audience.
  2. A business automates the retrieval of campaign templates to update message content dynamically based on user input or external data sources.

Properties

Name Meaning
Campaign Select the campaign to use for fetching details and template parameters.
Parameter 1 Value for template parameter {{1}} to customize the campaign message template.
Parameter 2 Value for template parameter {{2}} to customize the campaign message template.
Parameter 3 Value for template parameter {{3}} to customize the campaign message template.
Parameter 4 Value for template parameter {{4}} to customize the campaign message template.
Parameter 5 Value for template parameter {{5}} to customize the campaign message 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 targeted by the campaign.
  • campaignType - Type of the campaign template.
  • totalParameters - Total number of template parameters required by the campaign.
  • templateParameters - Array of values provided for the template parameters.
  • templateText - Text content of the campaign message template.
  • sampleText - Sample text example of the campaign message template.
  • campaignDetails - Full details object of the selected campaign.

Dependencies

  • AiSensy WhatsApp API

Troubleshooting

  • Ensure the API credentials are correctly configured and valid to avoid authentication errors.
  • Verify that the selected campaign ID exists and is accessible; otherwise, the node will throw a 'Selected campaign not found' error.
  • Check network connectivity and API endpoint availability if requests fail.
  • If template parameters are missing or incorrect, the fetched campaign details may not match expected message formats.

Discussion