How To Initiate Screen Flows Using Lightning Web Components

In the Winter ’23 release, Salesforce introduced a fresh method to incorporate a screen flow using the new lightning-flow component into any Lightning Web Component. This empowers developers to delegate intricate input gathering and branching logic to Flow, resulting in time and cost savings.

Below is an example of an LWC component featuring the Product_survey flow with its API name.

<template>
    <lightning-flow
        flow-api-name='Product_survey'
    >
    </lightning-flow>
</template>