Hello community! We are on prefect-2 and there is ...
# ask-community
s
Hello community! We are on prefect-2 and there is a usecase that we need to trigger a flow run outside of prefect UI, for example through a slack command. Are there any examples or resources for it if its possible?
n
hi @Solmaz Bagherpour - there are several ways you could approach this the simplest way would be to call
POST /create_flow_run_from_deployment
from within whatever code is hooked up to your slack command similarly, you could use webhooks and automations so that your slack command just has to hit a webhook and this will trigger a flow run from an existing deployment