SmartLead icon

SmartLead

Comprehensive SmartLead API integration for email marketing automation

Overview

This node integrates with the SmartLead API to manage email marketing campaigns. Specifically, the Get Sequence operation under the šŸŽÆ Campaign Management resource fetches the email sequence associated with a given campaign ID. This is useful for retrieving the ordered set of emails that will be sent as part of an automated campaign workflow.

Typical use cases include:

  • Reviewing or auditing the sequence of emails configured in a campaign.
  • Exporting the campaign sequence for reporting or backup.
  • Using the sequence data to trigger other workflows or integrations based on campaign content.

For example, a marketer might use this node to programmatically retrieve the sequence of follow-up emails scheduled in a campaign to analyze timing and messaging before launching the campaign.

Properties

Name Meaning
Campaign ID The unique identifier of the campaign whose email sequence you want to retrieve.
Additional Fields (Not applicable for Get Sequence operation)

The Campaign ID is required and must be provided to specify which campaign's sequence to fetch.

Output

The node outputs JSON data representing the campaign's email sequence. The structure typically includes an array of email steps or messages that define the order, content, and timing of emails in the campaign sequence.

  • The output is accessible via the json field of each item.
  • Each item corresponds to one step or element in the campaign sequence.
  • No binary data output is involved in this operation.

Example output snippet (conceptual):

[
  {
    "step": 1,
    "subject": "Welcome Email",
    "content": "...",
    "delay": "0 days"
  },
  {
    "step": 2,
    "subject": "Follow-up Email",
    "content": "...",
    "delay": "3 days"
  }
]

Dependencies

  • Requires an active connection to the SmartLead API.
  • Needs an API authentication token credential configured in n8n to authorize requests.
  • The base URL used is https://server.smartlead.ai/api/v1.
  • The node uses HTTP GET method to fetch the sequence from the endpoint /campaigns/{campaignId}/sequence.

Troubleshooting

  • Invalid Campaign ID: If the campaign ID does not exist or is incorrect, the API may return a 404 error. Verify the campaign ID is correct.
  • Authentication Errors: Missing or invalid API credentials will cause authorization failures. Ensure the API key/token is correctly configured.
  • Network Issues: Connectivity problems can cause request timeouts or failures. Check network access to the SmartLead API server.
  • Empty Sequence: If the campaign has no sequence saved, the response may be empty or contain an empty array.
  • API Rate Limits: Excessive requests may be throttled by the API. Implement retry logic or reduce request frequency if needed.

Links and References


This summary focuses exclusively on the Get Sequence operation within the šŸŽÆ Campaign Management resource, describing its purpose, inputs, outputs, dependencies, and common troubleshooting points based on static analysis of the provided source code and property definitions.

Discussion