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
- Fetch a specific WhatsApp campaign by selecting it from available campaigns to view its template details and parameters.
- 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 campaigncampaignName- Name of the selected campaigntemplateName- Name of the message template used in the campaignstatus- Current status of the campaignaudienceSize- Number of recipients in the campaign audiencecampaignType- Type of the campaign templatetotalParameters- Total number of template parameters in the campaigntemplateParameters- Array of values provided for the template parameterstemplateText- Text content of the message templatesampleText- Sample text showing how the template looks with parameters filledcampaignDetails- 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
- AiSensy API Documentation - Official documentation for AiSensy WhatsApp API endpoints and usage.