My setup:
I have an Omnichannel Chat Bot Widget running on a Power Apps portal. I've published a Power Virtual Agent bot and linked its Azure AppID to Omnichannel for Customer Service. I've got queues and routing rules and a pre-chat survey setup. The Agent bot receives all chat requests first and then conditionally routes them to the appropriate queue with human agents. The only reason for a pre-chat survey is to ask for the customer's name and email address for identification.
Problem:
I want to auto identify the customer for my agents. Not just collect the identification info with a pre-chat survey for the agent to reference when searching for the contact record, but to automatically assign the contact record to the conversation straight away and have the chat notification popup to show "Chat request from Andrea Irvington" instead of "Chat request from Visitor 1". But I haven't been able to achieve this after reading and playing around.
First issue:
So far I've been using the chat widget (as a customer on the Portal) without being logged into the Portal. I've set pre-chat survey questions with Question Name = Name, Question Name = Full Name, Question Name = fullname and none of them work to auto identify as a Contact record. I've made sure my Dynamics 365 system settings has Full Name display set to "First Name Last Name" which is what I want. I've also made sure I don't have contact records with the same name. The pre-chat survey Question Name insists on alphabet only with no underscores or numbers, which is not the case for entity field display names or names. For example the Contact entity has fields like in the following screenshot with numbers, and custom fields will carry an underscore in the Name. So what is the question name supposed to match against to get a entity lookup?
Second issue:
Eventually I will have people registering and logging in on the Portal. When I register on the portal, a Contact record gets created. When I log in on the Portal and use the Chat, how can I get the Chat Widget and/or the Agent Bot to pick up the name of the logged in user, without having to use a pre-chat survey anymore?
Third issue:
Is there any way for the Power Virtual Agent bot to pick up the name of the logged in Portal user? In Step 2 of the screenshot above, the Bot says "Hi, what are you after today?" I would like the Bot to recognise that "Andrea Irvington" is logged into the Portal that it's on and for it to say "Hi Andrea, what are you after today?" instead.
Would someone be able to help me with this please? I'm at my wits end. I've seen this achieved in many screenshots and videos but I've not come across any real instructions that deliver results. Please and thank you all very much.