Skip to main content
All CollectionsGetting startedBasics
Connecting another web app to the platform
Connecting another web app to the platform

How to set up automation with webhooks?

Sila avatar
Written by Sila
Updated over 5 months ago

The urgency of the work sometimes outweighs the luxury of learning, creating a big challenge for the L&D teams in supporting employees in their daily operations.

What if we could use the workflow to drive learning? One way to connect the daily workflow with the learning platform is webhooks.

This article is a simple guide to webhooks and adding automations that allow other web apps you use to trigger an action on the platform:


1. What are webhooks?

Webhooks are a way for external apps to send information to the platform. This connection allows the external app to push data to the platform, which triggers automations. This way, you can run automation that are based on daily events to reward learners or support them with relevant learning content.

Example:

Let's imagine an internal application that is used to track the response time in customer service. You want to encourage the team to provide excellent support and customer satisfaction. You can set up two webhook automations for this purpose:

  1. Add to Programme group to unlock "Time-based email alerts" training when a user's customer service response time is higher than twice the average.

  2. Grant badge when a user's customer service response time is half the average.


2. Setting up webhooks in TinQwise Control

  • Go to Behaviour > Automations > Create a new automation > Choose Webhook event and save.

  • Choose the condition of this automation to be applied.

    • For example, use the condition Is group to limit this automation to only a specific group on the platform.

  • Choose the action to select what you want this webhook event to trigger.

    • For example, Notify user to send (email) notifications.

  • Save the automation.

  • Once you save the automation, the configuration of the webhook will automatically be generated.

  • Click on Webhook event to see the authentication details:

    • Webhook URL

    • Secret

  • Use this info to set up the webhook on the other app that you would like receive data from.

Tip: You'll often find webhook related settings under the "webhook", "workflow", or "integration" settings, depending on your app. If you don't know where to get started with webhooks, consult to your IT or engineer colleagues πŸ˜‰

Developer tip πŸ‘©β€πŸ’» just want to try it out? use the following cURL statement:
​

curl -X POST -H 'content-type: application/json' \
-H 'Authorization: Bearer [YOUR SECRET]' \
--url [YOUR WEBHOOK URL] \
-d '{"employee_email": "[YOUR EMAIL ADDRESS IN lEARNING PLATFORM]"}'

Good to know πŸ‘€

We recommend to use webhooks for sending notifications and adding users to groups for an optimal performance. They should not be used to unlock activities or journeys directly. If you want to unlock content on the platform based on the data received from the web apps you can create a group and set up an automation that unlocks the content when the users are added to that group.

Did this answer your question?