https://prefect.io logo
Title
j

Josh Paulin

03/08/2023, 7:46 PM
It doesn’t look like the case, but are generic webhooks allowed to be used as notification blocks? (docs for webhooks returns a 404 btw)
Ty use case is as follows: Trying to use automations to set up sending alerts to VictorOps. I’ve been able to successfully use their email integration to create incidents, but as I did in further, they parse the email subject to create the entity_id, which is what’s used to dedupe incidents. Since the docs only say that email body can be templated, that won’t work. I assume if I used a webhook block to send the notification that would get around this, since they parse the JSON body for the entity_id, and I assume that would be templatable. But my webhook block doesn’t show up in the UI when setting up the automation.
Hoping for some insight/suggestions
One more try….
w

Will Raphaelson

03/10/2023, 4:42 PM
Hey josh, sorry my alert for mentions of “automations” didnt fire on this. let me dig into why the webhook docs are not working. The subject of a notification when using an email block is also templatable actually, ill update the docs and ill make the ui look like a code input so its more obvious. To answer you question anyway, webhooks dont have the notification block methods, the lines are a little blurry there. this would be evident if you could see the docs but clearly thats broken 😞. I’ll figure that out now.
j

Josh Paulin

03/10/2023, 4:49 PM
Thanks! I think email would work fine for my use case if it’s templatable, although webhook would be a nice alternative. For my use case of working with VictorOps the email parsing is a little more limited.
w

Will Raphaelson

03/10/2023, 4:56 PM
yeah i just merged in templated webhook bodies to the ui, should be out today!
:party-parrot: 1