SmartLead

Comprehensive SmartLead API integration for email marketing automation

Overview

This node integrates with the SmartLead API to manage email marketing campaigns. Specifically, the Create Campaign operation allows users to create a new email campaign by specifying its name and optional additional settings. This is useful for marketers or automation specialists who want to programmatically launch new email campaigns within their workflow automation.

Typical use cases include:

  • Automatically creating campaigns based on triggers such as form submissions or CRM updates.
  • Setting up campaigns dynamically with specific statuses or limits.
  • Integrating campaign creation into larger marketing automation sequences.

For example, you could use this node to create a new campaign named "Spring Sale 2024" whenever a new product line is added to your inventory system.

Properties

Name Meaning
Campaign Name The name of the new campaign to be created (required).
Additional Fields Optional extra parameters:
• Limit: Number of results to return (default 100)
• Offset: Number of results to skip (default 0)
• Status: Campaign status, options are Active, Paused, or Stopped (default Active)

Output

The node outputs JSON data representing the response from the SmartLead API after creating the campaign. The output typically includes details about the newly created campaign such as its ID, name, status, and other metadata returned by the API.

If the API returns multiple items or nested data, the node flattens it into an array of JSON objects for further processing in n8n workflows.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the SmartLead API.
  • The base URL used is https://server.smartlead.ai/api/v1.
  • The node expects the user to configure the API authentication credentials in n8n before use.

Troubleshooting

  • Common issues:

    • Missing or invalid API credentials will cause authentication errors.
    • Providing an empty or invalid campaign name will result in API validation errors.
    • Network connectivity problems can cause request failures.
  • Error messages:

    • "Unauthorized" or similar indicates incorrect or missing API key.
    • "Validation failed" or related messages indicate required fields are missing or invalid.
    • Timeout or network errors suggest connectivity issues; verify internet access and API endpoint availability.
  • Resolutions:

    • Ensure the API key credential is correctly set up and has necessary permissions.
    • Double-check that the "Campaign Name" property is provided and valid.
    • Test connectivity to the SmartLead API endpoint outside n8n if needed.

Links and References

Discussion