How to trigger a webhook automation from an external tool?
We are going to look at how to trigger an incoming webhook automation from an external tool and create a participant with the name, first name and email in a space table.
Let's look at this concretely.
You are in the table where you want to create a row from the triggering of this webhook.
You go into the automations, I start by creating an automation.
I will then name my automation.
Then I add the "incoming webhook" trigger.
This trigger will generate a URL for us.
As soon as an external service calls it in POST, the automation is triggered.
We can observe the configuration points in this window.
You can protect the incoming call of this webhook with a password.
This is optional.
Then, we will create the structure of the data in order to receive it and then use it in the actions.
You can directly create local variables manually by inserting the name of the local variable and inserting the name of the webhook property, or you can use the JSON editor to insert a structure that is available in the documentation of your external tool and thanks to this, Timetonic will read the keys and automatically create local variables that can be used afterwards in the actions.
You click on extrapolate and the structure is automatically created.
This structure is a collection in which I find 2 levels.
Then, I choose to create a row for each call to create a new participant.
The other options are used to find an existing row either by its ID, or by comparing the value of a field to update it.
I validate my webhook trigger configuration and I will insert the line creation action.
For this, I select the add a new record action.
I select the table and the view of the participant that interests me.
I retrieve the fields I want to update.
And there, I am looking for the variable that comes from the webhook.
This is exactly why we created the JSON structure earlier, to be able to find them here in the list of variables.
By the name of the structure that was previously created and I select each of the data opposite the respective fields.
Then, I validate my action.
I create my automation.
Once the automation is created, I return my webhook trigger, the post URL has been generated, I will copy it and insert it in the external tool.
And now, we are going to create a participant who registers for an event from an external interface.
The participant enters his first name and last name.
He validates his registration.
At the end of his registration, we can go to the space.
We are going to refresh the table and I have a new participant who has been generated.
I can go into the logs of my automation to see how the data arrived.
Here, I see on hover the information arrived from the webhook.
And in the action of creation, the data inserted in the respective fields.
Final important point for the structure of your JSON: when you are in creation, whether using the JSON editor which automatically creates your structure, or if you create it manually, and your JSON structure contains an array like this.
You have a collection in which you have a list of items Timetonic will not be able to map the data inside this list.
In this case, you will have to go through an external tool like MEC or N8N in order to flatten this ICEN structure.
Via transformation operators before sending it into Timetonic.
So, you've got it, the webbook becomes the gateway to connect Timetonic with any external tool.
Test it on a simple case: name, first name, email, and you can gradually enrich your automation afterwards.
Subtitle