Trigger Rule via WebHook
Nected helps you to seamlessly automate and trigger rules and workflows directly from your systems via WebHooks. By leveraging WebHooks, you can integrate custom parameters and ensure real-time execution of predefined rules and workflows. Additionally, easily integrate third-party services and applications to further extend the capabilities of the Nected platform. Follow the steps below to maximize the benefits of WebHooks within your automated workflows and rules.
Trigger Rule via WebHook
Nected enables you to securely trigger a rule from your systems via WebHook, allowing you to use custom parameters and access all relevant information about the rule.
To trigger a rule using a WebHook, follow these steps:
Test and Publish the Rule: Ensure the rule you want to trigger is tested and published.
Access the Trigger Settings:
Go to the Trigger section of the rule.
Update the rule trigger settings as needed.
Use the WebHook URL: The API Settings window contains the WebHook URL, which includes all the information and behavior of the rule. Use this URL to trigger the rule via WebHook.
WebHook URL Template: The Webhook URL looks like this:
Where the URL consists of the following components:
Base URL:
https://nected-xx.nected.io/nected/webhook
env: The environment of the rule, either
staging
orproduction
.id: The ID of the rule.
nected-api-key: You'll see this in your cURL code if you've enabled authentication for your rule.
Passing Custom Attributes Using WebHook
You can pass custom attributes to a rule using the WebHook by utilizing a flattened payload structure. Here’s how to do it:
Select the WebHook URL: Once you have the WebHook URL, you can use it to pass custom attributes.
Payload Structure: Unlike the API, the payload structure for webhooks is different. Here we use flattened JSON like this:
Execution: The WebHook will run asynchronously in the backend. After successful execution, it will respond with a success message.
By following these steps, you can effectively trigger and manage rules within the Nected platform using WebHooks.
Last updated