Search articles

How to Use Webhook Parameters in Interactive Videos

It is possible to reach the values inside the objects through webhook. Let's examine how we can take the values inside the objects and use them in the video with Webhook.

Let's assume that there is an object like below in the URL where we will export data to Cinema8 with Webhook.

  score: 85,
  user: {
      firstName: "John",
      lastName: "Doe",
      userName: "john.doe"


Now, let's use the values such as "firstName", "lastName" and "userName" into the video through webhook. First, I add the HTML element that I will place my values on my video (click to learn how to add the HTML element to the video). Then I add the following codes to the HTML element to show the contents of "firstName", "lastName" and "userName" in the video.


Then I run my video via the "Preview" button and check what I do.


That's it. Through webhook, you learned how to display values in objects with HTML widget on video. Now, let's see how we can quickly show this data on the video with the "Conditional Action" element.

First of all, I add the "Conditional Action" element to my video. (Click to learn how to add the conditional element to the video). By pressing the "Add Condition" button on the screen that appears, I add my codes as follows.

“user.username = john.doe”


The "user" here is the name of the object in the webhook I mentioned at the beginning, from which I will extract my data,

"Username" is the name of the data I will use in the object.


A "Conditional Action" placed in this way will only work if the webhook data exchange takes place successfully.