How to add a webhook in MedChat

Send MedChat events, such as new chats, posted messages or chat tags, to a Keragon workflow using the MedChat Trigger.

You add the workflow's webhook URL in MedChat yourself. You need access to Admin > Developer in your MedChat organization.

1. Get the webhook URL from Keragon

  1. In your Keragon workflow, add the MedChat connector's Trigger as the first step.
  2. Publish the workflow.
  3. Open the trigger step and copy its webhook URL.

2. Create the webhook in MedChat

  1. In MedChat, go to Admin > Developer and click Webhooks in the left sidebar.
    Webhooks page in the MedChat Developer console
  2. Click New Webhook in the upper-right corner.
  3. Leave Webhook status on, enter a Webhook Name, and paste the Keragon webhook URL into Payload URL.
  4. Click Create Webhook.
    Add Webhook dialog with Webhook status, Webhook Name and Payload URL

3. Choose the events to send

  1. In the Webhooks list, click the webhook you created to open its Settings.
  2. Under Webhook Events, click Add event and pick an event category, for example Chat Status or Message Posted. Repeat for each category you want.
    Add event menu listing the MedChat event categories
  3. Optional: to send only some events in a category, add a filter property, for example Event Type matches ChatEnded.
    Webhook event filters, for example Event Type matches ChatEnded

Every event the webhook sends starts the workflow. To run different steps for different events, branch on the event's Type field in the workflow, or create a separate workflow and webhook for each.

Was this article helpful?
0 out of 0 found this helpful

Articles in this section