How do I setup Web Chat for Service or an Embedded Chat Inlay?
Environment:
B2C Service Chat
Oracle B2C Service
Resolution:
The following is required to invoke Web Chat for Service or an Embedded Chat Inlay on a customer portal page or on your corporate webpage. Oracle B2C Service customers must set the OIT_CORS_ALLOWLIST configuration setting properly to ensure your chosen chat UI is approved to interact with your site. For testing purposes, you can set a value of .* to allow all sites to interact with the chat UI. However, this value is not recommended for production.
Place the following code on your webpage for an Embedded Chat Inlay once the configuration setting is updated.
<script
id="oit-loader"
src="https://{interfaceOrSiteName}.widget.custhelp.com/s/oit/latest/common/v0/libs/oit/loader.js" async>
</script>
<inlay-oracle-chat-embedded
id="chatInlay"
class="inlay"
site-url="{interfaceOrSiteName}.widget.custhelp.com" >
</inlay-oracle-chat-embedded>
For those sites that are on the AG pods you will have to place the following code on your webpage for an Embedded Chat Inlay once the configuration setting is updated.
<script
id="oit-loader"
src="https://{interfaceOrSiteName}.widget.cx.usg.oraclecloud.com/s/oit/latest/common/v0/libs/oit/loader.js" async>
</script>
<inlay-oracle-chat-embedded
id="chatInlay"
class="inlay"
site-url="{interfaceOrSiteName}.widget.cx.usg.oraclecloud.com" >
</inlay-oracle-chat-embedded>
For further documentation for Chat Inlay parameters refer to Answer ID 10585: Parameters for Chat Inlay.
For WCFS, place the Engagement Engine code on the pages where you want the widget to be loaded. For further information, refer to Answer ID 12815: What is Web Chat for Service?