The only thing I can think of that is different is for mediaType I just pass a literal value of MESSAGE - see pic. I would be happy to jump on a call at some point to take a deeper look, as it does appear to be fine. I have also exported my data action that does this so you can take a look there also.
Original Message:
Sent: 09-27-2024 16:20
From: Tim Dowdy
Subject: Passing External Contact Data to Web Messenger
Hi Lawrence,
Thanks for this post it's been very helpful. Unfortunately, I'm still running into an issue with getting the "No Name" when a message is being answered.
Using the Data Actions in the Inbound Message flow I could see were the data was being passed along in the execution history but was still getting the "No Name" result. I noticed in the External Contact field that was being returned it was coming through as an Array of the External Contact information instead of an UUID.
So I moved the Data Actions into the Bot Flow and do a Transfer to ACD right after the Bot Flow looking at the execution history I can still see that when it steps "passed" the bot flow all the correct data is being returned(including the External Contact as a UUID) but still getting "No Name" when the interaction is answered.
I thought maybe the Associate External Contact Data Action may need to be ran again post bot flow and still getting "No Name" when it comes through.
Throughout all three scenarios, the flows are taking the path of success when stepping through the execution history steps. So I'm at a bit of a loss at what the missing piece may be. Data Actions test out. Data is there but for some reason the External Contact isn't getting pass the transfer to ACD.
Message Flow
Bot Flow
Any insights or suggestions you can think of would be greatly appreciated.
Thank you,
------------------------------
Tim Dowdy
Generac Power Systems, Inc.
Original Message:
Sent: 10-09-2023 22:03
From: Lawrence Drayton
Subject: Passing External Contact Data to Web Messenger
Hey Steven,
What you need to do here is once you get the details, complete a search and get the external contact ID - then use this in another data action to then link it to the contact. It's a few steps, and there are some edge cases like if you have a customer that has the same number/email it will return multiple results and you'll need to decide which one to use etc. All of which you can create decisions for.
As an example - here is part of what we do.
- Get phone number from bot flow
- Run search on external contacts using the phone number as the search term
- If results of that = 1 then move to step 4 - If results >1 we exit flow (To have agent double check and confirm which contact to link to)
- Get communicationID of the message type media type
- Run contact association with message and external contact.
For the search we use /api/v2/externalcontacts/contacts?q=${input.searchTerm} This will return all the details for matched. We take the first result in these and take a bunch of details out from the API response to move on. One of these is the externalContactId
For communicationID we use the interactionID /api/v2/conversations/${input.conversationId} and take the first participants message ID
For the contact association we use /api/v2/externalcontacts/conversations/${input.conversationId} and in the body use the externalContactId, interactionID, communicationID and the mediaType.
Happy to assist further - I've attached a simple flow of this for one of my centres.
------------------------------
Lawrence Drayton
Prvidr Pty Ltd
Original Message:
Sent: 10-09-2023 16:50
From: Steven Strom
Subject: Passing External Contact Data to Web Messenger
We configured the inbound Digital Bot flow to call the Genesys Data Action and retrieve External Contact information if the customer enters their phone number in the web messenger. When the customer requests to speak to an agent, the bot flow exits to our inbound message flow and targets the queue. Unfortunately, none of the customer data is passing and the customer contact information doesn't appear in the agent message window. Just displays "No Name" Any thoughts on how to resolve?
#ConversationalAI(Bots,AgentAssist,etc.)
------------------------------
Steven Strom
Financial Industry Regulatory Authority, Inc.
------------------------------