Actions39
- Campaign Actions
- Campaign Statistic Actions
- Client Actions
- Email Account Actions
- Lead Actions
- Master Inbox Actions
- Webhook Actions
Overview
The node interacts with the Smartlead.ai API to manage and update campaign settings among other campaign-related operations. Specifically, the Update Settings operation for the Campaign resource allows users to modify tracking preferences and lead stopping criteria for a given campaign.
This node is beneficial in scenarios where you want to programmatically adjust how a campaign tracks email opens or define conditions under which leads should be stopped within a campaign workflow. For example, you might disable email open tracking for privacy reasons or configure the campaign to stop engaging leads once they reply to an email.
Practical examples:
- Disabling email open tracking on a campaign to comply with GDPR.
- Setting the campaign to stop sending emails to leads who have replied, preventing unnecessary follow-ups.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign to update. |
| Tracking Settings | Options to control email tracking behavior. Available option: "Don't Track Email Open". |
| Stop Lead On | Condition to stop engaging a lead. Available option: "Reply to an Email". |
Output
The output is a JSON object representing the response from the Smartlead.ai API after updating the campaign settings. This typically includes confirmation of the updated settings or details of the campaign reflecting the changes made.
No binary data output is involved in this operation.
Dependencies
- Requires an API key credential for authenticating requests to the Smartlead.ai API.
- The base URL for API requests is
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 will cause the API request to fail.
- Incorrect or missing API credentials will result in authentication errors.
- Providing unsupported values for tracking or stop lead settings may cause validation errors.
Error messages and resolutions:
- "Unauthorized" or "Authentication failed": Check that the API key credential is correctly configured and valid.
- "Campaign not found": Verify that the Campaign ID provided exists and is correct.
- "Invalid parameter" or similar validation errors: Ensure that the options for tracking settings and stop lead settings are chosen from the allowed values.
Links and References
- Smartlead.ai API Documentation (Assumed based on base URL; verify actual docs)
- n8n documentation on HTTP Request Authentication for setting up API credentials