SmartLead

Comprehensive SmartLead API integration for email marketing automation

Overview

The node integrates with the SmartLead API to manage email marketing campaigns. Specifically, the Update Schedule operation allows users to update the scheduling settings of an existing campaign by specifying its ID. This is useful for automating when a campaign's emails are sent, adjusting timing without recreating the campaign.

Common scenarios include:

  • Changing the start time or frequency of an ongoing campaign.
  • Pausing or resuming scheduled sends.
  • Adjusting campaign timing based on new marketing strategies or audience behavior.

Example: You have a campaign running but want to delay its next batch of emails by a day. Using this operation, you can update the schedule without interrupting other campaign settings.

Properties

Name Meaning
Campaign ID The unique identifier of the campaign whose schedule you want to update.
Additional Fields Optional parameters to refine the request; includes:
- Limit Number of results to return (used in some operations, not directly relevant here).
- Offset Number of results to skip (used in some operations, not directly relevant here).
- Status Campaign status filter with options: Active, Paused, Stopped (not directly used here).

Note: For the Update Schedule operation, only the Campaign ID is required. The Additional Fields collection is available but may not affect this specific operation.

Output

The output is a JSON array containing the response data from the SmartLead API after updating the campaign schedule. The structure depends on the API response but generally includes details about the updated schedule or confirmation of the update.

No binary data is returned by this operation.

Example output snippet (conceptual):

[
  {
    "id": "campaign-id",
    "schedule": {
      "startTime": "2024-07-01T10:00:00Z",
      "frequency": "daily",
      "status": "ACTIVE"
    },
    "message": "Schedule updated successfully"
  }
]

Dependencies

  • Requires an active connection to the SmartLead API via an API key credential configured in n8n.
  • The node uses the base URL https://server.smartlead.ai/api/v1.
  • Proper permissions on the API key to update campaign schedules are necessary.

Troubleshooting

  • Invalid Campaign ID: If the provided campaign ID does not exist or is malformed, the API will return an error. Verify the campaign ID before running the node.
  • Authentication Errors: Ensure the API key credential is valid and has sufficient permissions.
  • Network Issues: Connectivity problems with the SmartLead API endpoint will cause failures. Check network access and API availability.
  • Incorrect Request Body: Since the schedule update uses a POST request, missing or incorrect schedule parameters (if any are required) might cause errors. Review API documentation for required fields.
  • Continue On Fail: The node supports continuing execution on failure, which can help process multiple items even if some fail.

Links and References

Discussion