You are here:
Add a Screen Flow to a Public Experience Cloud Site
Create an Experience Cloud site that's available to everyone and add a flow component to a page in the site and select an active screen flow. You can link to the flow page from your company's website. Use this method to share flows with external users who don't have a Salesforce license, such as customers, partners, or other external users. Because users aren't logging into your site, you don't need to purchase Experience Cloud licenses.
Required Editions
| View supported editions. |
Adding a flow to an Experience Cloud site without having users login is great for flows where you’re just collecting information. For example, create a screen flow that collects a person's name and email and then create a lead record by using that collected information. Name your flow page Join Our Email List!.
Adding a flow to an Experience Cloud site is similar to adding a flow to a Lightning page. Flows on Experience Cloud sites work well for:
- Surveys
- Registration forms
- Lead capture forms
- The Flow component doesn't show the flow in design or preview mode. Publish and activate the site to test the flow.
-
Create a screen flow. Learn more in Get a Basic Screen Flow Ready for Users or in the
Screen Flow Trailhead Module.
- In your screen flow, click the gear to open the flow properties.
- Click Show Advanced.
- For How to Run the Flow, select System Context Without Sharing.
-
If your flow is sending an email, in the Send Email action element, set the sender to a
verified organization-wide email address.
Learn more in Set Up Organization-Wide Email Addresses.
- Save your flow as a new version.
- Click Activate.
-
Set up access to your flow.
- From Setup, in the Quick Find box, enter Flows, and then select Flows.
- From the Automation app, select the Flows tab.
- From the Flows tab in any Lightning app, click the actions menu and select Open Flow.
- Click the actions menu dropdown for your flow and select Edit Access.
- Select Override default behavior and restrict access to enabled profiles or permission sets..
- Click Save.
-
Enable Digital Experiences. If it's already enabled, skip to the next step.
- From Setup, in the Quick Find box, enter Digital Experiences, and then click Settings under Digital Experiences.
- Click Enable Digital Experiences.
- Click Save.
-
Create an Experience Cloud site.
- In the Digital Experiences All Sites page in Setup, click New.
- Select the Build Your Own (LWR) template, and then click Get Started.
-
Enter a name and end of URL for your site and click Create.
After a few minutes, your new site opens.
- Click the Builder card.
-
Create a page to put the flow on.
- Click Home to open the Pages menu.
- Click + New Page.
- Select Standard Page.
- Click + New Blank Page.
- Give the page a name and URL. For example, Join Our Email List and join-our-email-list.
-
Add the flow to the page.
- Click the lightning icon to open the Components list.
- Click and drag the Flow component on to the page.
- In the Flow component settings, for Flow, select the active screen flow that you want to show on the page.
- If the flow includes variables that are available for input, the variable fields appear in the property editor. Enter a value for each variable or leave the fields blank.
-
Add any other additional text or styling to the page.
Learn more about building an Experience Cloud site in Build and Customize Your Experience Cloud Site.Consider adding your logo to the page by using an Image component so users can tell it's a legitimate web page.
-
Give unauthenticated guest users access to your site and flow.
- Click the gear to open Settings.
- In the General section, for Public Access, select Guest users can see and interact with the site without logging in.
-
Under Guest User Profile, click the site profile. For example, click Join Our
Email List Profile.
The profile opens in Setup in a new browser tab.
- Search for and select Flow Access.
- Add your screen flow to the Enable Flows list and click Save.
-
Publish and activate your site.
- Go back to your Experience Cloud site.
-
Click Publish, and then click Publish again
to confirm.
When the site is published, you receive an email.
- After the site is published, in Setup, search for and select All Sites.
- Click Workspacesnext to your Experience Cloud site.
- Click the Administration card.
- In the Settings section, click Activate.
-
Give unauthenticated guest users access to public APIs.
Because we selected a Lightning runtime (LWR) template, this step is required.
- In the Administration workspace, in the Preferences section, select Allow guest users to access public APIs and then click Save.
-
Test your flow.
- Go back to the Digital Experiences All Sites page in Setup.
- Click Builder next to your Experience Cloud site.
- Click the gear to open Settings.
- Under Published Status, copy the URL.
-
Paste the URL into the address bar of a new incognito browser window.
Use an incognito window to mimic the experience of a user who isn't logged into your org.
- Back in Experience Builder, go to your page with the flow on it.
- Click the gear near the pages menu to open the page Properties.
- Copy the page URL and paste it after the base URL in the incognito window.
- Press the enter key and see your flow on the web page.
Now, you can use that full URL to link to the screen flow.

