<@ULVA73B9P> is there a way to set up an Automatio...
# marvin-in-the-wild
g
@Marvin is there a way to set up an Automation to send a notification via a webhook besides those listed under the "Block" section? I need to send alerts to a platform besides those listed as available options. Can I configure a custom webhook to send notifications to somehow?
m
Yes, you can configure a custom webhook to send notifications in Prefect. While Prefect has a comprehensive set of pre-built notification blocks, you can also create a JSON webhook if the platform you want to send alerts to isn't listed as an available option. Here's a high-level overview of the steps you might take to create and configure a custom JSON webhook in Prefect: 1. Authenticate your CLI to Prefect Cloud with
prefect cloud login
. 2. In the Prefect UI, create a webhook using a Dynamic template as a base. 3. Set the event's name and include relevant information you might want to send in your payload in the resource field. The webhook can be based on events from your GitHub repository, as noted in the first document excerpt. You would need to provide the webhook address to GitHub so that it sends a payload to Prefect with necessary information like the issue number, title, body, and username upon certain events like opening an issue. The content was found through Prefect's blog on creating a JSON webhook which demonstrates how webhooks can be set up for integration with GitHub. Keep in mind that for detailed instructions, you should check the Prefect documentation or the specific help resources for the target platform to ensure you have all the necessary steps covered.
w
Hey @Geoff Garrido, that marvin answer is wrong, sorry. There is an action type in automations called “Call a webhook” which should get you where you need to go.
g
Ah, awesome, thank you so much!