Hello,
I am having some trouble with associating a Predictive Engagement session to an external contact. My problem is I am seeing "Unknown" in the live PE View even after I have associated the messaging conversation to an external contact, and cannot figure out how I can associate the PE session to the contact properly.
Here is my setup:
I am using a web messaging widget, configured with the Predictive Engagement piece turned on. I am able to confirm that this is working, because I can see in my Predictive Engagement "LIVE" view. However, all of my active sessions are showing up as unknown. See below:
I am using /api/v2/externalcontacts/conversations/{conversationId} in my messaging flow to associate the interaction to my external contact. This works great as well - I am taking the messaging session ID, the media type and the conversation ID to do this. However, it does NOT change the session association, in the PE Live view to my External Contact that I've associated the conversation with. This kind of makes sense, because I'm telling the system "associate" the messaging session to that contact.
But it also DOESN'T make sense because the participant that owns the messaging session that I am using when i associate the conversation to the external contact has the following attributes attached to it:
"journeyContext": {
"customer": {
"id": "c3e2f3c5-f182-4ea6-af9f-41ccb08fcb8e",
"idType": "cookie"
},
"customerSession": {
"id": "9061fb16-a231-4568-a147-82ac4f3d1c21",
"type": "web"
}
So, I would expect that when I associate the conversation to the external contact, the system also reads "oh hey, this journeySession is also associated to this external Contact. But, this is not the case.
I also tried using the new "Merge" API (/api/v2/externalcontacts/merge/contacts) to merge the ephemeral contact to my curated contact, and when I use this endpoint, I am able to see the external contact associated with the session in the PE Live view. However, this has it's own challenges - there is a limit to the amount of merges I can do (25).
Does anyone have any tips or comments on how I can associate a live PE session with an external contact? I feel like I need a PATCH /api/v2/journey/sessions/{sessionId} endpoint where I can update the externalContact on the session itself.