Actions39
- Campaign Actions
- Campaign Statistic Actions
- Client Actions
- Email Account Actions
- Lead Actions
- Master Inbox Actions
- Webhook Actions
Overview
This node integrates with the Smartlead.ai API to manage leads and campaigns. Specifically, the "Delete From Campaign" operation under the "Lead" resource allows users to remove a lead from a specified campaign. This is useful in scenarios where a lead should no longer be part of an active outreach or marketing campaign, such as when the lead has opted out, converted, or is no longer relevant.
Practical examples:
- Removing a lead who unsubscribed from a campaign.
- Cleaning up leads that are duplicates or invalid from a campaign.
- Managing dynamic campaign memberships based on lead status changes.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign from which the lead will be deleted (required). |
| Lead ID | The unique identifier of the lead to be removed from the campaign (required). |
Output
The output JSON contains the response from the Smartlead.ai API after attempting to delete the lead from the campaign. Typically, this will include confirmation of deletion or any error messages returned by the API.
The structure depends on the API response but generally includes success status or details about the deleted lead within the campaign context.
No binary data output is involved in this operation.
Dependencies
- Requires an API key credential for authenticating requests to the Smartlead.ai API.
- The node uses the base URL
https://server.smartlead.ai/api/v1. - Proper configuration of the API authentication credential in n8n is necessary.
Troubleshooting
Common issues:
- Invalid or missing Campaign ID or Lead ID parameters will cause the API call to fail.
- Authentication errors if the API key credential is not set or expired.
- Network connectivity issues preventing access to the Smartlead.ai API endpoint.
Error messages:
- Errors returned from the API will be passed through; typical messages might include "Lead not found in campaign" or "Invalid campaign ID".
- If the node throws an error related to authentication, verify the API key credential setup.
- For request failures, check internet connectivity and API service status.
Links and References
- Smartlead.ai API Documentation (Assumed official docs for further reference)
- n8n documentation on HTTP Request Node for understanding API calls in workflows