# prefect-getting-started

Nimesh Kumar

01/13/2023, 12:05 PM
Hi, I have configured slack to my prefect flow that whenever task fail it will send a notification. But the link (can be seen in Details) I am getting in the notification is giving 404 Flow failed... The flow test-Inferencing fails. Summary: Failed('1/11 states failed.')). Details: Can anyone tell me what i am doing wrong

Christopher Boyd

01/13/2023, 2:32 PM
HI Nimesh, your IP address indicates this is orion and not cloud. It’s hard to tell from this alone what’s going on. Can you provide some more details, the flow failing, how your notification is configured, and the address that is returning a 404

Nimesh Kumar

01/15/2023, 5:59 AM
Hi Christopher, this is how i have implemented slack notification in my code
Copy code
from prefect.blocks.notifications import SlackWebhook
from prefect_alert import alert_on_failure
slack_block = SlackWebhook(url="<https://mywebhookurl>")
alert_id = str(uuid.uuid4())

@alert_on_failure(block_type=SlackWebhook, block_name=alert_id)
def start_inferencing():