# Trigger Retool Workflows

With PixieBrix, you can trigger a Retool Workflow from any web app.

PixieBrix triggers [Retool Workflows via Webhook](https://docs.retool.com/workflows/guides/webhooks)

### Preparing your Retool Workflow

1. [Add/Enable a Webhook Trigger for your Workflow](https://docs.retool.com/workflows/guides/webhooks#add-a-webhook-trigger)<br>

   <figure><img src="https://2274778196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq123bF1HPQPV35s5vHa1%2Fuploads%2Fw5SoxXKVPIvIdwFgDlmP%2Fimage.png?alt=media&#x26;token=467ea920-b2cf-48dc-ae70-f1818c1853b5" alt=""><figcaption></figcaption></figure>
2. (Optional) [Configure your Workflow to use the payload](https://docs.retool.com/workflows/guides/webhooks#retrieve-event-payload) of the `startTrigger` object
3. Copy the URL of the Webhook<br>

   <figure><img src="https://2274778196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq123bF1HPQPV35s5vHa1%2Fuploads%2FTIl2GNXqQmPNiaBJT7if%2Fimage.png?alt=media&#x26;token=5b4f036a-c665-48df-9c19-aaad65b25ed8" alt=""><figcaption></figcaption></figure>

### Triggering the Retool Workflow from PixieBrix

1. Add the HTTP Request Brick to your Mod
2. Configure the HTTP Request Brick
   * `URL`: the Webhook URL copied from the Retool interface
   * `Method`: post
   * `JSON Data`: (Optional) the payload to pass to the Webhook<br>

     <figure><img src="https://2274778196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq123bF1HPQPV35s5vHa1%2Fuploads%2FxIU8HAlwBhVOBBB1yh6J%2Fimage.png?alt=media&#x26;token=15b3cd10-aee4-4601-b00f-39b5b3754f3e" alt=""><figcaption></figcaption></figure>
