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
- In your Keragon workflow, add the MedChat connector's Trigger as the first step.
- Publish the workflow.
- Open the trigger step and copy its webhook URL.
2. Create the webhook in MedChat
- In MedChat, go to Admin > Developer and click Webhooks in the left sidebar.
- Click New Webhook in the upper-right corner.
- Leave Webhook status on, enter a Webhook Name, and paste the Keragon webhook URL into Payload URL.
- Click Create Webhook.
3. Choose the events to send
- In the Webhooks list, click the webhook you created to open its Settings.
- Under Webhook Events, click Add event and pick an event category, for example Chat Status or Message Posted. Repeat for each category you want.
- Optional: to send only some events in a category, add a filter property, 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.