Trigger a Flow Manually Through a Script
Userpilot gives you the ability to trigger a flow manually based on a permalink or in a Checklist. That is, call the flow to activate using a manual script.
In the targeting section, under "How often this Flow will trigger" choose "Trigger Manually".
Note: Triggeinrg a flow manually will override all other flow settings such as the segment, domain and page settings.
You can then use the output unique script to trigger the flow directly from your code.