This solution demonstrates how Dynamics 365 Contact Center for Customer Service can automatically identify and assign existing customer records to new inbound conversations using JavaScript and the CE Web API. Agents can see customer information immediately in the conversation pop-up, improving efficiency and response times.Architecture
Dataflow- A customer places an inbound call to the contact center.
- Dynamics 365 Contact Center generates a new conversation and displays the active conversation pop-up.
- A JavaScript function executes to fetch the conversation ID and check if inbound call phone number is populated.
- The JavaScript code extracts the phone number from the conversation.
- Using the Dynamics 365 CE Web API, the system queries Dataverse for an existing customers matching the phone number.
- If a matching customer exists, it is automatically linked to the conversation.
- The agent interface updates, and customer details are displayed in the conversation pop-up.
Components- Dynamics 365 Contact Center for Customer Service
Handles inbound call routing, live conversations, and agent interface. - Dataverse
Stores contact and customer data as well as live work items. - Dynamics 365 CE Web API
Queries existing customer records based on the phone number. - JavaScript client-side logic
Fetches conversation ID, retrieves customer data, and links records to conversations.
Scenario detailsInbound calls to contact centers often show only the caller's phone number in the agent interface. Without automatic linking, agents must manually search for the customer, slowing down service and similarly, increase the steps for the agent, search the customer and link to the conversation. This solution enables real-time detection of existing customers using the phone number as the key, automatically linking the customer record to the conversation.Potential use cases- Retail: Quickly display returning customer details and purchase history.
- Finance: Show account information immediately for faster call resolution.
- Healthcare: Identify patients efficiently for better service.
- Telecommunications: Surface subscriber information instantly to agents.
Applicable across industries where inbound call handling and rapid customer identification are critical.Sample implementationGit Repo Location: https://github.com/fahmeedayaseen86-png/ContactCenterSolutionIdeas.gitContributorsThis article is maintained by Microsoft. It was originally written by the following contributors.Principal authors:- Fahmeeda Yaseen | FastTrack Solution Architect