Smartlead icon

Smartlead

Interact with the Smartlead.ai API

Overview

This node integrates with the Smartlead.ai API to manage leads and their associated campaigns. Specifically, the "Lead" resource with the "Get Campaigns" operation fetches all campaigns that a particular lead belongs to. This is useful for marketing automation workflows where you want to track or analyze which campaigns a lead is currently engaged in.

Practical examples include:

  • Retrieving all campaigns for a lead to personalize follow-up emails.
  • Checking campaign memberships before updating lead status or sending targeted messages.
  • Reporting or analytics on lead participation across multiple campaigns.

Properties

Name Meaning
Lead ID The unique identifier of the lead whose campaigns you want to retrieve (required).

Output

The output JSON contains an array of campaign objects that the specified lead belongs to. Each object represents a campaign with its details as returned by the Smartlead.ai API. The exact structure depends on the API response but typically includes campaign identifiers, names, statuses, and other metadata.

No binary data is output by this operation.

Dependencies

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

Troubleshooting

  • Common issues:

    • Invalid or missing Lead ID will cause the API request to fail.
    • Authentication errors if the API key credential is not set up correctly.
    • Network connectivity issues preventing access to the Smartlead API endpoint.
  • Error messages:

    • Errors from the API are propagated and may include messages like "Lead not found" or "Unauthorized".
    • If the node throws a generic error, verify the Lead ID and API credentials.
  • Resolution tips:

    • Ensure the Lead ID is correct and exists in your Smartlead account.
    • Confirm that the API key credential is valid and has necessary permissions.
    • Check network connectivity and firewall settings.

Links and References

Discussion