---
schema_version: "1"
id: 84e31c718eded5d8995e21aec736c5b88d0ec9244da711bb167b8d8ac6597a06
title: Embed a Flow in a Custom Aura Component
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_distribute_internal_lc.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_distribute_internal_lc.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: af3fba4c90f7ca33bdb79e8a18fbef629118e6399cebfccf6353787a28428e57
description: 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.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Embed a Flow in a Custom Aura Component

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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.flow_ref_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Flow Builder. Some Flow Builder features integrate with other Salesforce products that require additional licenses.">View supported editions.</a></td></tr></tbody></table>

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");
  },
})
```