Back to Tooljet

Trigger Workflows Using Webhooks

docs/versioned_docs/version-3.0.0-LTS/workflows/how-to/trigger-using-webhook.md

3.20.154-lts3.6 KB
Original Source

This guide demonstrates how to trigger workflows using webhooks.

<div style={{paddingTop:'24px'}}>

Creating a Workflow

To create a workflow follow the following steps:

  1. Navigate to the Workflows Section on the dashboard.

  2. Click on Create new workflow, enter a unique name for your workflow and click on + Create workflow to create the workflow.

  3. Configure your workflow. You can refer to the workflow overview documentation to learn how you can configure a workflow.

  4. Navigate to the Triggers section.

  5. Click on Webhooks. By default, the webhook trigger is disabled. Toggle the switch to enable the webhook trigger. Refer to the trigger documentation for more information.

  6. Add Parameters to the workflow by clicking the + Add parameter button.

  7. Copy the Endpoint URL and API token.

</div> <div style={{paddingTop:'24px'}}>

Triggering a Webhook

Let's take a look at an example of triggering a webhook using Postman.

  1. Visit Postman, and click New Request.

  2. Select the POST Method and paste the Endpoint URL that was copied earlier.

  3. Navigate to the Authorization tab, select Bearer Token as the Auth Type, and enter the API token.

  4. Go to the Body tab, select Raw, and enter the required parameters in JSON format.

  5. Click on Send to trigger the webhook. It will fetch the response from the created workflow.

</div>

This was a basic example of how you can trigger workflows using webhooks. You can use webhooks to connect ToolJet to external applications and services for advanced use-cases and event-driven automation.

If you want to learn how to trigger workflows withing ToolJet, refer to this guide.