Actions39
- Campaign Actions
- Campaign Statistic Actions
- Client Actions
- Email Account Actions
- Lead Actions
- Master Inbox Actions
- Webhook Actions
Overview
This node interacts with the Smartlead.ai API to fetch top-level analytics data for a specific campaign. The "Get Analytics" operation under the "Campaign Statistic" resource retrieves summarized performance metrics and insights about a campaign's effectiveness.
Typical use cases include:
- Monitoring campaign performance by retrieving key statistics such as open rates, click rates, reply rates, and other engagement metrics.
- Integrating campaign analytics into dashboards or reports within an automation workflow.
- Triggering follow-up actions based on campaign performance data.
For example, a marketing team could use this node to automatically pull campaign analytics after a campaign ends and feed the data into a reporting tool or notify stakeholders if certain thresholds are met.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign for which analytics data is requested (required). |
Output
The node outputs JSON data containing the top-level analytics for the specified campaign. This typically includes aggregated metrics such as total emails sent, open rates, click rates, reply counts, bounce rates, and other relevant campaign performance indicators provided by the Smartlead.ai API.
The output structure corresponds directly to the API response from the endpoint /campaigns/{campaignId}/analytics. It is a JSON object with various fields representing different analytics metrics.
No binary data output is produced by this operation.
Dependencies
- Requires an active connection to the Smartlead.ai API.
- Requires an API authentication token credential configured in n8n to authorize requests.
- The base URL used for API calls is
https://server.smartlead.ai/api/v1.
Troubleshooting
- Invalid Campaign ID: If the provided Campaign ID does not exist or is incorrect, the API may return an error or empty results. Verify the Campaign ID is correct.
- Authentication Errors: Ensure that the API key credential is valid and has sufficient permissions to access campaign analytics.
- Network Issues: Connectivity problems can cause request failures. Check network access to the Smartlead.ai API endpoint.
- API Rate Limits: Excessive requests might be throttled by the API. Implement retry logic or reduce request frequency if needed.
- Unexpected Response Format: If the API changes its response format, the node output may differ. Review API documentation for updates.
Links and References
- Smartlead.ai API Documentation (general reference for API endpoints and data structures)
- Smartlead.ai Campaign Analytics Endpoint (specific details on the analytics data returned)