To customize how your flow gets and receives data, add it to a custom Aura component.
Then distribute that component through a custom action, Lightning tab, or Lightning
page.
Required Editions
To embed a flow in your Aura component, add the lightning:flow component to it, for
example:
<aura:component>
<aura:handler name="init" value="{!this}" action="{!c.init}" />
<lightning:flow aura:id="flowData" />
</aura:component>
In the JavaScript controller, identify which flow to start,
for example:
({
init : function (component) {
// Find the component whose aura:id is "flowData"
const flow = component.find("flowData");
// In that component, start your flow. Reference the flow's API Name.
flow.startFlow("myFlow");
},
})