function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BobPBobP 

Add flow button to lightning component

I am looking at a lightning component that i didnt create but want to add a flow action(button) to the page. I'm not sure how to do this or if i can do this, but i want to add a flow that creates notes to the lightning component.  Below are schreenshots of where I need to the button and the code snippett where the other button reside.
User-added image

User-added imageUser-added image
PriyaPriya (Salesforce Developers) 
Hey,

To embed a flow in your Aura component, add the  <lightning:flow>  component to it.
<aura:component>
    <aura:handler name="init" value="{!this}" action="{!c.init}" />
    <lightning:flow aura:id="flowData" />
</aura:component>
 
({
    init : function (component) {
        // Find the component whose aura:id is "flowData"
        var flow = component.find("flowData");
        // In that component, start your flow. Reference the flow's API Name.
        flow.startFlow("myFlow");
    },
})

For more reference, refer these article :- 
https://rajvakatidotcom.wordpress.com/2017/10/25/invoking-flow-from-lightning-component/

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_using_flow_cmp.htm

https://developer.salesforce.com/forums/?id=9060G000000MV43QAG

Kindly mark it as the best answer.

Thanks
BobPBobP
How would I add it to the lightning component shown above?