You are here:
Add the Applicant and Grantee Support Agent Chat Window to Your Site
Configure Messaging for In-App and Web and deploy an embedded chat widget to your Grantmaking Experience Cloud site so grantseekers can interact with the support agent.
Required Editions
| Available in: Lightning Experience |
| Available in: Nonprofit Cloud for Grantmaking and Public Sector Solutions. View edition availability. |
| User Permissions Needed | |
|---|---|
| To configure Messaging and Omni-Channel: | Customize Application system permission |
| To create an Embedded Service deployment: | Customize Application system permission |
-
Turn on Messaging.
- From Setup, enter Messaging Settings in the Quick Find box, then select Messaging Settings.
- Turn on Messaging and click Save.
-
Turn on Omni-Channel with skill-based routing and create a Routing Configuration.
- From Setup, enter Omni-Channel Settings in the Quick Find box, then select Omni-Channel Settings.
- Turn on Enable Omni-Channel and Enable Skill-Based and Direct-to-Agent Routing, then click Save.
- From Setup, enter Routing Configurations in the Quick Find box, then select Routing Configurations.
- Click New and create a routing configuration with these settings:
- Routing Priority: 1
- Routing Model: Most Available
- Capacity Type: Inherited
- Units of Capacity: 1.00
-
Create a Queue for the Applicant and Grantee Support Agent.
- From Setup, enter Queues in the Quick Find box, then select Queues.
- Click New and assign the routing configuration you created in the previous step.
- Under Supported Objects, add Chat Transcript, Messaging User, and Messaging Session.
- Add the agent user to the queue, then click Save.
-
Create an Omni-Channel Flow to route conversations to the Applicant and Grantee
Support Agent.
- From Setup, enter Flows in the Quick Find box, then select Flows.
- Click New Flow, then select Omni-Channel Flow.
- Add a Route Work element (1).
-
In the Route Work element properties, create a recordId variable
to pass to the Route Work element (2).
- Set Service Channel to Messaging.
- Set Route To to Agentforce Service Agent.
- For Agentforce Service Agent, select your grant support agent.
- For Fallback Queue, select Select Queue, and for Fallback Queue ID, select the queue you created in the previous step.
- Save and activate the flow.
-
Create a Messaging Channel.
- From Setup, enter Messaging in the Quick Find box, then select Messaging Settings.
- Click New Channel and select Enhanced Chat.
- Enter a name for the channel and click Next.
- Set the routing type to Omni-Channel Flow, select the flow and fallback queue you created in the previous step.
- Turn on User Verification and click Save.
-
Create an Embedded Service Deployment.
- From Setup, enter Embedded Service Deployments in the Quick Find box, then select Embedded Service Deployments.
- Click New Deployment, select Enhanced Chat, then select Web as the deployment type, and click Next.
- Enter your Grantmaking Experience Cloud domain as the site to deploy the embedded messaging to, and click Next.
- Select the messaging channel that you created in the previous step.
- Turn on Add credential-based user verification and click Save.
-
Add the embedded messaging component to your Grantmaking Experience Cloud site.
- From Setup, enter All Sites in the Quick Find box, then select All Sites under Digital Experiences.
- Click Builder next to your Grantmaking site.
- In Experience Builder, open the Components panel and search for Embedded Messaging.
- Drag the Embedded Messaging component to your site page.
- In the component properties panel, set Embedded Web Deployment to the deployment you created in the previous step.
- Click Publish.
-
Configure Content Security Policy and Trusted Sites for your Grantmaking site.
This step requires the Embedded Service Deployment that you created in step 7. If you haven't completed step 7, do that first before continuing.
- From Setup, enter All Sites in the Quick Find box, select All Sites, then click Builder next to your Grantmaking site to open Experience Builder.
- Go to Settings | Security & Privacy.
- Under Content Security Policy, set Security Level to Relaxed CSP: Permit Access to Inline Scripts and Allowed Hosts.
-
Get the SCRT URL from your Embedded Service deployment's install code
snippet.
To find the install code snippet, go to Setup, enter Embedded Service Deployments in the Quick Find box, open your deployment, and click Install Code Snippet. The SCRT URL is the domain in thesrc2URLattribute of the script tag. - In Security & Privacy settings in Experience Builder, under Trusted Sites for Scripts, add the SCRT URL from the install code snippet.
-
Add a second entry for the bootstrap URL, by using the format
deployment-URL/assets/js/bootstrap.min.js.
-
Add your site's domain URLs to CORS, Trusted URLs, and the Embedded Messaging
Site.

You need two URLs: your org's My Domain URL (1) and your Experience Cloud site URL (2). To find them, go to Setup and enter My Domain in the Quick Find box for your org URL, and enter All Sites to find your Experience Cloud site URL.
- From Setup, enter CORS in the Quick Find box, then select CORS. To add your URLs to the Allowed Origins list, click New.
- From Setup, enter Trusted URLs in the Quick Find box, then select Trusted URLs. To add your URLs to the Trusted URLs list, click New Trusted URL.
-
From Setup, enter Sites in the Quick Find box, then under
User Interface, select Sites. Select the Embedded Messaging
Site created with your deployment, and click Add Trusted
Domains.
Note If you don't see the Embedded Messaging Site, verify that the Embedded Service Deployment saved successfully. The site is created automatically when the deployment is saved.
Did this article solve your issue?
Let us know so we can improve!
