Actions39
- Campaign Actions
- Campaign Statistic Actions
- Client Actions
- Email Account Actions
- Lead Actions
- Master Inbox Actions
- Webhook Actions
Campaign → Update Schedule
AI-generatedOverview
The node interacts with the Smartlead.ai API to manage and update various aspects of campaigns, leads, email accounts, statistics, webhooks, and clients. Specifically, for the Campaign - Update Schedule operation, it updates the scheduling settings of a campaign by specifying the timezone, active days of the week, and start/end times during which the campaign is active.
This operation is useful when you want to control when your campaign outreach or automation runs, ensuring that emails or actions are only performed during specified time windows and days, respecting recipients' local timezones or business hours.
Practical example:
You have a campaign targeting prospects in the US East Coast and want to send emails only on weekdays between 9 AM and 6 PM Eastern Time. Using this node operation, you can set the timezone to America/New_York, select Monday through Friday as active days, and specify the start and end times accordingly.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign to update the schedule for. |
| Timezone | The timezone in which the schedule times apply (e.g., "America/New_York"). |
| Days Of The Week | The days of the week when the campaign should be active. Options: Monday to Sunday (1-7). |
| Start Time | The daily start time (in HH:MM format) when the campaign becomes active on selected days. |
| End Time | The daily end time (in HH:MM format) when the campaign stops being active on selected days. |
Output
The output is a JSON object representing the updated campaign schedule as returned by the Smartlead.ai API. It typically includes confirmation of the new schedule settings such as timezone, days of the week, start hour, and end hour.
No binary data is output by this operation.
Dependencies
- Requires an API key credential for authenticating with the Smartlead.ai API.
- The node makes HTTP POST requests to the endpoint:
https://server.smartlead.ai/api/v1/campaigns/{campaignId}/schedule - 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.
- Incorrectly formatted time strings (not in HH:MM) may result in errors.
- Specifying days outside the allowed range (1-7) could cause unexpected behavior.
- Network or authentication failures if the API key is invalid or expired.
Error messages:
"Campaign not found": Verify the Campaign ID is correct and exists."Invalid schedule parameters": Check the format and values of timezone, days, start time, and end time.- Authentication errors: Ensure the API key credential is correctly configured and has required permissions.
Links and References
- Smartlead.ai API Documentation (Assumed URL; replace with actual if known)
- n8n HTTP Request Node Documentation (for understanding how API calls are made)