Ben
12/27/2024, 6:01 PM{
"event": "{{body.event_name}}",
"resource": {
"prefect.resource.id": "data.type.{{ body.data_type }}",
"prefect.resource.name": "{{ body.friendly_name }}",
"data_url": "{{ body.url }}"
}
}
When I send a post to my webhook endpoint, I receive the event and it contains a body like this:
"body": "{\"event_name\":\"event_add\",\"data_type\":\"event\",\"friendly_name\":\"add_new_event\",\"url\":<https://example.com/123>}"
Now when I create a new automation, I don't know how to fill in the form in the Prefect dashboard.
Should the resource be the name of my webhook?
For the event_url
parameter, how can I use the value of url
in my webhook event body?Bianca Hoch
12/27/2024, 6:09 PMBianca Hoch
12/27/2024, 6:11 PMBen
12/27/2024, 6:13 PM{{ event.payload.body.url }}
Bianca Hoch
12/27/2024, 6:13 PMBianca Hoch
12/27/2024, 6:13 PMBen
12/27/2024, 6:14 PMBen
12/27/2024, 6:35 PMpayload
I used the value from the webhook template which were event.resource.data_url
Ben
12/27/2024, 6:35 PMBianca Hoch
12/27/2024, 6:56 PM