web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Unanswered

set customer details in agent dashboard customer summary using directline API

(0) ShareShare
ReportReport
Posted on by

I wanted the customer summary part of live agent dashboard in Omnichannel to be populated with customer details(like email, name

when I initiate a conversation using Direct-Line API's,  for those incoming customer chat requests whose details match with Contacts and Accounts   already existing as records.

Is it possible.?

I tried sending customer details( values matches with Account and Contacts saved in agent dashboard ) through "from" and " channeldata > customercontext " keys of the payload to url

"https://directline.botframework.com/v3/directline/conversations/<conversationid>/activities" to initiate the chat as pre-existing customer.

payload given below:

{
    "locale""en-EN",
    "type""message",
    "channelId""directline",
    "from": {
        "id":"DHANRAJ P",
        "Name":"DHANRAJ P",
        "Email":"dhanraj.p@cognicor.com"
    },
    "channeldata":{
        "channeltype""Chat",
        "customercontext":{
            "id":"DHANRAJ P",
            "Name":"DHANRAJ P",
            "Email":"dhanraj.p@cognicor.com"
        }
    },
    "text""Cognicor customer context testing message!!!!"
}
 
My agent dashboard already has a Contact saved with above highlighted Name and Email.
Also I have set up two context variables( Name and Email ) in the corresponding workstream( not sure whether this has anything to do with the issue here)
Still it's shown as anonymous customer.
I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi DHANRAJ,

    You can create authentication settings to validate a signed-in customer from a domain, and extract information based on the context variables that are defined. You can differentiate your anonymous customers from authenticated customers, and you can create rules based on the context variables.

    Create chat authentication settings | Microsoft Docs

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Community Member Profile Picture
    on at

    Hello Leah Ju,

    I think you are talking about authentication in Live chat widgets of Omnichannel.

    We are using our own custom UI which communicates to omnichannel agent through Direct-Line API's.

    It  was working fine few months before passing customer details through payload to API as  mentioned above( for customer contacts already saved from agent dashboard as "Contact" record).

    Recently it stopped working.

    Can you reconfirm on this.

    Regards,

    Dhanraj

  • Community Member Profile Picture
    on at

    Dhanaraj did you solve this issue?

  • Community Member Profile Picture
    on at

    Can you please help with this? I am trying the same and facing the same issue. Following the instructions here

    docs.microsoft.com/.../bring-your-own-channel

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 73 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 42 Most Valuable Professional

#3
Scott Jackson UK Profile Picture

Scott Jackson UK 22

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans