Smartlead icon

Smartlead

Interact with the Smartlead.ai API

Master Inbox → Reply To Thread

AI-generated

Overview

This node integrates with the Smartlead.ai API to manage and interact with email campaigns, leads, email accounts, and related entities. Specifically, the "Master Inbox" resource's "Reply To Thread" operation allows users to reply to an existing email thread within a campaign directly from the master inbox.

This is useful in scenarios where automated or manual follow-up emails need to be sent as replies to ongoing conversations tracked by Smartlead.ai. For example, after receiving a lead's response, you can use this node to send a personalized reply within the same email thread, maintaining conversation context.

Properties

Name Meaning
Campaign ID The unique identifier of the campaign in which the email thread exists.
Email Stats ID The unique identifier for the specific email statistics record representing the thread.
Email Body The content/body of the reply email to be sent in the thread.

Output

The output JSON contains the response from the Smartlead.ai API after sending the reply to the email thread. This typically includes details about the sent message or confirmation of the action. The exact structure depends on the API response but generally reflects the updated state of the email thread or message.

No binary data output is involved in this operation.

Dependencies

  • Requires an active connection to the Smartlead.ai API.
  • Needs an API authentication token configured in n8n credentials (referred generically as "an API key credential").
  • The base URL used for API requests is https://server.smartlead.ai/api/v1.

Troubleshooting

  • Common Issues:

    • Invalid or missing Campaign ID or Email Stats ID will cause the API request to fail.
    • Empty or improperly formatted Email Body may result in errors or no message being sent.
    • Authentication failures if the API key credential is not set up correctly.
  • Error Messages:

    • Errors returned from the API will be propagated, often indicating invalid parameters or authorization issues.
    • If the node throws an error about missing required parameters, verify that all required fields (Campaign ID, Email Stats ID, Email Body) are provided.
  • Resolution Tips:

    • Double-check that the Campaign ID and Email Stats ID correspond to valid existing records in Smartlead.ai.
    • Ensure the Email Body is not empty and properly formatted.
    • Confirm that the API key credential is correctly configured and has sufficient permissions.

Links and References

Discussion