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 retrieve information related to campaigns, leads, email accounts, statistics, webhooks, clients, and master inbox messages. Specifically, for the Campaign - Get Sequences operation, it fetches the sequences associated with a given campaign. This is useful when you want to retrieve the ordered steps or actions defined in an email outreach or marketing campaign.
Typical use cases include:
- Retrieving the sequence of emails or actions configured for a campaign to review or audit the campaign flow.
- Integrating campaign sequences into automated workflows for reporting or synchronization with other systems.
- Dynamically adjusting or analyzing campaign steps based on external triggers or data.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign for which to fetch sequences. This is a required string input. |
Output
The output JSON contains the sequences associated with the specified campaign. Each sequence typically includes details such as the sequence step ID and its order number within the campaign sequence.
The structure returned by the API call to /campaigns/{campaignId}/sequences is parsed and returned as JSON items, allowing downstream nodes to process each sequence step individually.
No binary data output is involved in this operation.
Dependencies
- Requires an active connection to the Smartlead.ai API.
- Requires an API authentication credential configured in n8n (referred generically as "an API key credential").
- The base URL used for API requests is
https://server.smartlead.ai/api/v1.
Troubleshooting
- Invalid Campaign ID: If the provided Campaign ID does not exist or is incorrect, the API will likely return an error. Verify that the Campaign ID is correct and exists in your Smartlead.ai account.
- Authentication Errors: Ensure that the API key credential is valid and has sufficient permissions to access campaign sequences.
- Network Issues: Connectivity problems can cause request failures. Check network connectivity and Smartlead.ai service status.
- API Rate Limits: Excessive requests may be throttled by the API. Implement retry logic or reduce request frequency if needed.
Common error messages might include:
- Unauthorized or 401 errors indicating invalid credentials.
- 404 Not Found if the campaign or sequences do not exist.
- 400 Bad Request if required parameters are missing or malformed.
Resolving these usually involves verifying credentials, checking parameter correctness, and ensuring the campaign exists.
Links and References
- Smartlead.ai API Documentation (Assumed, please verify actual documentation URL)
- n8n Documentation on Creating Custom Nodes
- General REST API usage best practices