Webhooks
You can configure webhooks so that the completion of specific events within User.com triggers Cycles in Cyclr.
In this example, the creation of a new user triggers the webhook, and you can use a Cycle to retrieve that user’s details.
Create User.com automation
To configure the webhook, you need to create an automation within User.com:
- From your selected application’s dashboard, go to Automations.
- From the Automations page, select Create automation.
- From the Triggers menu, drag the New user trigger onto the automation builder.
- From the Actions menu, drag the Api call action onto the automation builder.
Get the Webhook URL in Cyclr
- In the Cyclr Builder, drag in the User Created and Get User By ID Methods.
- Select Step Setup on the User Created Step to show the its Cyclr Webhook URL.
Configure the automation in User.com
- In the User.com automation builder, select the API call module to configure its settings.
- Enter the Cyclr Webhook URL and add the header
Content-Type: application/json
, and select Save. - From the top-right corner of the automation builder, select Save and exit.
- Enter a name for the automation.
- From the Timing drop-down, select Each time the condition is met, make sure Run this action – enable is activated, and select Save.
Set up the webhook in Cyclr
- In the Cyclr Builder, select Field Discovery for the User Created Step. This activates Cyclr’s Field Discovery.
- Create a test user in User.com to send to the Cyclr’s webhook Step, to provide the webhook with a user object to Discover the fields from.
- From the User.com dashboard navigate to Data > People.
- Select Create user, enter test data and select Save.
- Check for a notification within the Cyclr Builder that the fields have been successfully received.
- Map the required User ID within the Get User By ID‘s Step Setup.
- Select Run in the top-left corner of the Cyclr Builder.
When the cycle is active, each time a user is created, the webhook triggers the Cycle to retrieve the new user’s details.