
Explanation
Step 1: Open Omnichannel Administration.
Embed chat widget in your Power Apps portal
To embed a chat widget in Power Apps portals:
1. In one of the administrator apps, open the chat widget you want to embed in Power Apps portals.
Step 2: One the Basic details tab, copy the widget snippet code.
2. On the Basic details tab, copy the widget snippet code from the Code snippet section.
Step 3: Open the Portal Management app.
3. Open the Portal Management app.
Step 4: In Content Snippet > Chat widge code in the web portal, paste the widget snippet code.
4. Go to Portal > Content Snippets.
5. Find the Chat Widget Code content snippet and open it.
6. On the General tab, scroll down to the Value (HTML) section.
7. Paste the chat widget snippet code in the HTML tab.
8. Save the changes. The chat widget is now embedded into the portal.
Reference:
https://docs.microsoft.com/en-us/dynamics365/customer-service/embed-chat-widget-portal