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 their campaign subscriptions. Specifically, the "Unsubscribe From All Campaigns" operation for the Lead resource allows you to unsubscribe a specified lead from all campaigns they are currently part of. This is useful in scenarios where a lead no longer wishes to receive any communications or marketing emails from your campaigns, ensuring compliance with opt-out requests and improving user experience.
Practical examples include:
- Automatically unsubscribing a lead who has requested to stop all marketing emails.
- Cleaning up lead statuses in bulk workflows when leads become inactive or opt out.
- Integrating with CRM systems to synchronize unsubscribe preferences across platforms.
Properties
| Name | Meaning |
|---|---|
| Lead ID | The unique identifier of the lead to unsubscribe from all campaigns. This is a required string input. |
Output
The node outputs JSON data representing the response from the Smartlead.ai API after attempting to unsubscribe the lead from all campaigns. The structure typically includes confirmation of the action or details about the lead's updated subscription status.
No binary data output is produced by this operation.
Dependencies
- Requires an active connection to the Smartlead.ai API.
- Needs an API authentication token configured in n8n credentials (referred generically as "an API key credential").
- The base URL used for API requests is
https://server.smartlead.ai/api/v1.
Troubleshooting
Common Issues:
- Invalid or missing Lead ID: Ensure the Lead ID provided is correct and exists in Smartlead.ai.
- Authentication errors: Verify that the API key credential is valid and has sufficient permissions.
- Network issues: Confirm connectivity to the Smartlead.ai API endpoint.
Error Messages:
- Errors returned from the API will be surfaced by the node. For example, if the lead does not exist, the API may return a 404 error.
- If the node throws an authentication error, recheck the API key configuration.
- To handle errors gracefully, enable the "Continue On Fail" option in the node settings.
Links and References
- Smartlead.ai API Documentation (generic link; replace with actual documentation if available)
- n8n Documentation on HTTP Request Node for understanding API integrations
- Best practices for managing email unsubscribes and compliance with regulations like GDPR and CAN-SPAM