You are here:
Integrate Patient Services Agent with Digital Channels
Complete steps to enable your Provider Matching AI agent to have conversations with authenticated and guest users on your Experience Cloud site.
Required Editions
Available in: Lightning Experience Available in: Enterprise and Unlimited Editions with Health Cloud |
| User Permissions Needed | |
|---|---|
| To create and edit a flow: | Manage Flow permission |
| To use Health Cloud for Communities: | Health Cloud For Community add-on license AND Customer Community or Customer Community Plus add-on license |
| To customize an Experience Cloud site: | Be a member of the site AND Create and Set Up Experiences OR Be a member of the site AND View Setup and Configuration AND be an experience admin, publisher, or builder in that site |
| To publish an Experience Cloud site: | Be a member of the site AND Create and Set Up Experiences OR Be a member of the site AND an experience admin or publisher in that site |
-
Turn on Messaging Settings.
- From Setup, use the Quick Find box to find and select Messaging Settings.
- Turn on Messaging.
-
Get your site’s domain name..
- From Setup, use the Quick Find box to find and select Domains.
- Copy the domain name for the Experience Cloud Sites Domain. This name ends with: my.site.com. For example: salesforce25.my.site.com.
-
Create a new embedded service deployment
- From Setup, use the Quick Find box to find and select Embedded Service Deployments.
- Click New Deployment.
- Select Messaging for In-App and Web and click Next.
- Select Web and click Next.
- Enter an Embedded Service Deployment Name.
- In Domain, paste the domain name you copied in step 2b.
- In Messaging Channel, select ESA Channel.
- Save your changes. It takes a few minutes for the deployment to become active and show the Embedded Service Deployment Settings page.
- From the Embedded Service Deployment Settings page, click Publish.
- Refresh the page.
-
Test your messaging deployment.
- From the Embedded Service Deployment Settings page, scroll to the Test Messaging setting, and then click Test Messaging.
- Open the Chat to test you can see the Agentforce Patient Services agent and its welcome message.
- Close the browser tab.
-
Add Cross-Origin Resource Sharing (CORS) records for your org and patient site.
- From Setup, use the Quick Find box to find and select CORS.
- Add CORS records that match your org and site. To create each record, click New, enter the name in Original URL Pattern, and then save your changes. Add the records in a format where you replace salesforce25 with your org’s My Domain name: https://salesforce25--c.vf.force.com, https://salesforce25.my.salesforce-scrt.com, and https://salesforce25.my.site.com.
- Return to the CORS page to add another record.
-
Connect your new embedded service deployment to your patient site.
- From Setup, use the Quick Find box to find and select All Sites.
- Click Builder next to your patient site.
- On the Home page of the patient site, click OK to acknowledge the messages.
- Select the Embedded Messaging component, which is positioned above the Template Footer.
- In the Embedded Message Properties, select the embedded service deployment you created, and then select the matching Enhanced Service URL.
- Publish your changes.
- Go back to the All Sites page and select the URL for the your patient site. The Agentforce Patient Services agent is visible on the Home page.
-
Log in to the patient site as a patient.
- From the App Launcher, find and select Accounts.
- Select the All Accounts view, and then find and select a patient.
- From the record’s dropdown menu, select Log in to Experience as User. The AI agent is visible and ready to assist you on the site’s Home page.
Did this article solve your issue?
Let us know so we can improve!

