Triggers - Webhook

×

REQUEST FREE TRIAL

Share A Little Information To Request Free Trial

Created with Sketch.
REQUEST FREE TRIAL

The WebHook trigger allows you to catch callouts for any service that offers sending a signal to a custom URL.  For this example, we will show you how to set up a WebHook for Promoter.

Locate your Workflow's Public URL

The public URL is where all WebHook calls will be sent.  This is what allows Tray to receive data from your service of choice.

  1. Create a new workflow with a WebHook trigger.
  2. Select the Operation: When WebHook is Received.
  3. In the top-left, select the Workflow Settings menu.
  4. Select General Settings.
  5. Copy your Workflow Public URL to the clipboard.

Configure the WebHook in your Service

Navigate to your service of choice and direct it to send all callouts to your Workflow Public URL.

  1. Log in to your service of choice.
  2. Select Account (varies by service).
  3. Select WebHooks.
  4. Select the desired operation for your WebHook.
  5. Add the Tray Workflow Public URL as the target.

Test your WebHook

Let's send some data to your WebHook to ensure it was configured correctly.

  1. Click Enable at the bottom-right to enable your workflow.  Now, Tray is actively listening for calls from any WebHook whose target is your Workflow Public URL.
  2. Navigate to your service and run a test (varies by service).
  3. If your service does not have a test option, you will have to trigger an event type that matches what your WebHook is listening for.  In this example, the Promoter WebHook is listening for in the campaign .
  4. In Tray, click Debug.  This is where you can see all data that is entering, exiting, and being manipulated within your workflow.
  5. If your configuration is correct, you will see a singular entry in the Workflow Logs containing the data from your test.

Now this data can be used anywhere else in your flow!  Check out Working with Data Structures to learn how to access this data.

Last updated 14th April 2017

REQUEST FREE TRIAL

Share A Little Information To Request Free Trial

Created with Sketch.