Lesson 3 of 5
In Progress

Event Trigger – Synchronous Webhook

Now let’s see how we can move this even further to return this data to the original source that the web was sent to. 

To do that, if we reopen the Webhook we have this synchronous Webhook response option available. So if you drag this on here, and connect it up, you’ll see here that this is linking the Webhook. So what you can do is you can map data in here sent back to the original source, and that can be including anything in your workflow. 

So we can set this up by pasting in some example JSON to make some fields. So in this case, I’m going to be looking to get the coin name, and the coin price and the currency in a single currency,

Now we sit formatted correctly. Now we save this.

And we are now provided with these new fields that you can map data to. So this has just been taken from the JSON that you’ve set up. And what we can do now is using using the setup process here as we can access any of the steps within the workflow. In this case, we’re going to go for our HTTP request, and we’re going to select the currency code. We’re going to then also select the rates variant here, we’ll get the description.

So this data is mapped to then be sent back to your original source.

Now if we hit run again, let’s go back to our Postman. We’ll change this over here.

So we can see something new. And hit Send to see how the flow works. And already, you can see as the response, we’ve now received, the coin name, the current price, and the description, which in this case is the currency that’s sent. If we go back to Cyclr. We can then open the step data and look at what has been sent out. And you can also go into the transaction to see the flow of the data pass through your workflow.