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
- 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.
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 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 expected by the campaigntemplateParameters- Array of values provided for the template parameterstemplateText- Text of the message templatesampleText- Sample text showing how the template looks with parameters filledcampaignDetails- 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
- AiSensy API Documentation - Official documentation for AiSensy WhatsApp API endpoints and usage.