Overview

Flows offers a JS library that makes it easy to trigger Flows and send events from your frontend code.  To start using this library simply add the following line of code in the <head> part of your html.

<script type="text/javascript" 
  src="https://cdn.flows.world/js/flows-2.0.js">
</script

Once added, you will be able to invoke the following functions in the Flows system.

FunctionDescription
Trigger Single FlowCall a single flow by it's ID
Send Event to FlowsSend an event into Flows that can be used to trigger multiple Flow
Listen to Flow EventsListen for Push events from the Flows.  This can be used when you want to broadcast certain events from Flows to your front end users