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 manage and analyze campaign statistics, specifically allowing users to export leads from a campaign as a CSV file. The "Export Leads" operation under the "Campaign Statistic" resource fetches all leads associated with a specified campaign in a downloadable CSV format.
Typical use cases include:
- Exporting lead data for offline analysis or reporting.
- Integrating lead data into other systems by exporting and then importing the CSV.
- Archiving campaign leads periodically.
For example, a marketing team might use this node to export all leads from a recent email campaign to review engagement or import them into a CRM system.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign from which to export leads. This is a required field. |
Output
The output JSON contains the exported leads data from the specified campaign. Since the operation requests the CSV file with full response and binary encoding (encoding:null), the node returns the raw CSV file content as binary data.
json: Typically empty or minimal because the main data is binary.binary: Contains the CSV file representing all leads exported from the campaign. This can be saved or passed to other nodes for further processing (e.g., writing to disk, sending via email).
Dependencies
- Requires an active connection to the Smartlead.ai API.
- Needs an API authentication token credential configured in n8n to authorize requests.
- The base URL used is
https://server.smartlead.ai/api/v1.
Troubleshooting
Common issues:
- Invalid or missing Campaign ID will cause the API request to fail.
- Authentication errors if the API key credential is not set up correctly.
- Network connectivity problems may prevent reaching the Smartlead.ai server.
Error messages:
"Unauthorized"or similar indicates invalid API credentials; verify and update the API key."Not Found"or"Campaign does not exist"suggests the Campaign ID is incorrect or the campaign was deleted."Request failed"or timeout errors indicate network issues; check internet connection and API availability.
Resolution tips:
- Double-check the Campaign ID input.
- Ensure the API key credential is valid and has necessary permissions.
- Retry after some time if the API service is temporarily unavailable.
Links and References
- Smartlead.ai API Documentation (for detailed API endpoints and parameters)
- n8n documentation on working with binary data