Actions39
- Campaign Actions
- Campaign Statistic Actions
- Client Actions
- Email Account Actions
- Lead Actions
- Master Inbox Actions
- Webhook Actions
Overview
This node integrates with the Smartlead.ai API to manage webhooks associated with marketing campaigns. Specifically, the "Webhook" resource with the "Create or Update" operation allows users to add a new webhook or update an existing webhook for a specified campaign.
Use cases include automating notifications or triggering external workflows when certain events occur in a campaign, such as lead updates or email interactions. For example, you might create or update a webhook URL that receives real-time data about campaign activity, enabling seamless integration with other systems like CRMs or analytics platforms.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign to which the webhook will be added or updated. |
| Webhook Details | A collection of key-value pairs specifying the details of the webhook. Common keys include: - name: The name of the webhook.- webhook_url: The URL endpoint where webhook events will be sent.Users can add multiple such detail pairs to configure the webhook fully. |
Output
The node outputs JSON data representing the response from the Smartlead.ai API after creating or updating the webhook. This typically includes information about the webhook such as its ID, name, URL, status, and any other metadata returned by the API.
No binary data output is produced by this operation.
Dependencies
- Requires an active API key credential for Smartlead.ai configured in n8n.
- The node makes HTTP requests to the Smartlead.ai API base URL:
https://server.smartlead.ai/api/v1. - Proper network connectivity to the Smartlead.ai service is necessary.
Troubleshooting
Common Issues:
- Invalid or missing Campaign ID: Ensure the Campaign ID provided exists and is correct.
- Incorrect webhook details: Verify that required fields like
webhook_urlare correctly formatted URLs. - Authentication errors: Confirm that the API key credential is valid and has sufficient permissions.
- Network issues: Check internet connectivity and firewall settings that may block access to the Smartlead.ai API.
Error Messages:
- Errors returned from the API will be surfaced, often indicating invalid parameters or authentication failures.
- If the node throws a generic error, verify input parameters and credentials.
- To handle errors gracefully, enable the "Continue On Fail" option in the node settings.
Links and References
- Smartlead.ai API Documentation (for detailed API endpoints and webhook configuration)
- n8n Documentation on HTTP Request Node (for understanding how API calls are made)
- Webhook Concepts (general info on webhooks)