Pre-requisites
- Widget installed and reachable — see Install Widget.
- Dynamics 365 credentials saved — see Connect to OpenCX.
How conversations land in Dynamics 365
Setting up
Confirm the widget is live
Open the page where the widget is embedded and send a test message. You should see the AI respond. If not, walk through Install Widget first.
Confirm Dynamics is connected
In your OpenCX dashboard, the Dynamics 365 card should show Active. If it doesn’t, re-run Test & Save in Connect to OpenCX.
Set a default workstream (optional but recommended)
The Omnichannel live work item routes to the workstream you pass as
workstreamId. OpenCX uses your default_queue_id setting for that. Copy the workstream GUID from Omnichannel admin center → Workstreams and paste it into default_queue_id in the OpenCX Dynamics settings.What the rep sees
- A live chat in the Omnichannel Agent app, not a case in the Customer Service app.
- The AI’s session summary as the conversation subject.
sessionIdandchannel: webin the work item’s —sessionIdis the trace key back to OpenCX.- Customer name, email, and phone pre-filled on the work item from the session.
- OpenCX records
dynamics365_chat_idon the OpenCX session for audit.
Channel-specific details
Omnichannel routing rules apply on the Dynamics side
Omnichannel routing rules apply on the Dynamics side
OpenCX creates the
oc_liveworkitem with a workstreamId; Dynamics’s Workstream → Routing rules → Assignment method decide which queue and which rep picks it up. Align default_queue_id with a workstream that has routing rules you actually want.Anonymous vs authenticated widget visitors
Anonymous vs authenticated widget visitors
When the widget passes a verified email via widget authentication, OpenCX links the existing Dynamics contact on that email. Anonymous visitors land with no contact linked on the work item — reps can link one manually.
Widget custom components still render on the visitor side
Widget custom components still render on the visitor side
When an AI action returns data rendered by a custom component, the visitor sees the richer UI. The rep in Omnichannel Agent sees the underlying text — write copy that reads well in both surfaces.
Rep replies in Omnichannel don't sync back to the widget today
Rep replies in Omnichannel don't sync back to the widget today
Reps should continue the conversation inside the Omnichannel Agent app. OpenCX marks the session as handed off once the live work item is created; messages the rep sends in Dynamics stay in Dynamics.
Related Documentation
AI Chat Widget
Install, configure, authenticate the widget itself.
Conversations in Dynamics 365
Routing rules, live work item payload, observability.
Connect to OpenCX
Paste credentials and verify the connection.
Troubleshooting
Live work item never appears, handoff lands as incident instead.