Webhook
Last updated
Last updated
A Webhook is an HTTP callback triggered by specific events on a server. It facilitates real-time communication between systems by instantly sending relevant event data to a pre-configured URL upon occurrence of specific events. This eliminates the need for continuous polling and enables the triggering of predefined flows within CX Fabric from external systems.
Add Webhook Component to Canvas:
To add the Webhook components to the canvas, you have two options:
Navigate through the components menu in the side panel, and drag the Webhook component onto the canvas of your workflow.
Click the plus icon, which opens a window allowing you to search for various components and connectors. Search for the Webhook component and select it.
Each component will be labeled with a unique identifier (e.g., webhook_1) for easy reference if multiple Webhook components are used.
Access Webhook Settings:
Click on the Webhook Component to access its settings.
Copy the Webhook Endpoint: The Webhook endpoint is where all callbacks are sent, allowing it to receive data from a user's chosen service. It includes essential parameters such as 'tenant_id' and 'flow_id'. You may refer to the Service-side configuration section, this is where the Webhook endpoint comes into play.
Select HTTP Method: The HTTP method specifies the type of action to be performed by the webhook endpoint. Here are the common methods:
GET: Retrieve data from the API.
POST: Send data to the API.
PUT: Update existing data on the API.
PATCH: Partially update existing data on the API.
DELETE: Remove data from the API.
Select Credential:
Choose a credential stored in your CXFabric tenant from the dropdown list.
To associate the webhook with your selected service, utilize the webhook endpoint.
Note that this is a general guide and steps may differ based on your specific service requirements.
Log in to your chosen service.
Paste the Tray.io Workflow public URL into the designated target field.
Click the ellipsis menu next to the credential selection dropdown to manage credentials (add, edit, view, delete). Click "Manage" to access the full list in the Credential Management page.