Starting a Flow from event hook?

Easiest solution would be to trigger a webhook flow by calling the webhook address from the event hook.

If you really need to trigger another flow type, it will get more complicated because as of now FlowManager is not exported by the extension sdk.
It’s doable tho by using dynamic imports. I’m describing exactly this usecase here

I'd recommend just going through the API :)

In the linked example the flow should have been triggered inside a server.start hook which, allegedly, executes before the flow endpoints are mounted. So there might be edge cases where you want to trigger flows programmatically.