Smartlead icon

Smartlead

Interact with the Smartlead.ai API

Campaign → Save Sequence

AI-generated

Overview

The node interacts with the Smartlead.ai API to manage campaigns and their sequences, among other resources. Specifically, the Save Sequence operation under the Campaign resource allows users to save or update the sequence steps of a campaign. This is useful for defining or modifying the order and details of email or outreach steps within a campaign workflow.

Typical use cases include:

  • Automating the setup or update of campaign sequences in bulk.
  • Integrating campaign sequence management into larger automation workflows.
  • Adjusting the order or content of outreach steps dynamically based on external triggers.

For example, you might use this node to programmatically update the sequence steps of a marketing campaign after importing new data or changing strategy, without manually editing the campaign in the Smartlead dashboard.

Properties

Name Meaning
Campaign ID The unique identifier of the campaign for which the sequence steps are being saved.
Sequences A collection of sequence steps to save, each containing:
   ID The numeric ID of the individual sequence step.
   Sequence Number The order position of this step in the sequence (e.g., 1, 2, 3).

The Sequences property supports multiple values, allowing you to define several sequence steps at once.

Output

The output JSON contains the response from the Smartlead API after saving the sequences. It typically includes confirmation of the saved sequences or details about the updated campaign sequences.

The node does not output binary data.

Dependencies

  • Requires an active connection to the Smartlead.ai API.
  • Needs an API authentication token configured in n8n credentials to authorize requests.
  • The base URL used for API calls is https://server.smartlead.ai/api/v1.

Troubleshooting

  • Invalid Campaign ID: If the provided Campaign ID does not exist or is incorrect, the API will return an error. Verify the Campaign ID before running the node.
  • Malformed Sequences Data: Ensure that each sequence item has valid numeric IDs and sequence numbers. Missing or invalid fields may cause the API to reject the request.
  • Authentication Errors: If the API key or token is missing or invalid, requests will fail. Confirm that the credential is correctly set up in n8n.
  • API Rate Limits or Downtime: Temporary failures may occur due to rate limits or server issues. Retrying after some time or checking Smartlead's status page can help.

Common error messages usually come directly from the API and indicate issues such as unauthorized access, validation errors, or resource not found.

Links and References

Discussion