Thank you Gage, I was more scoping the feasibility of the request. Mainly if it was at all possible and a general idea of How.
It seems perfectly doable for a small development.
Interaxa S.A.
Original Message:
Sent: 11-14-2019 10:04
From: Gage Decker
Subject: Search Chat recording bodies
Hi Facundo,
I had to edit my post earlier to include the first API call. For the 404 error it's difficult to say what happened without reviewing a browser console log and network HAR file. I would suggest if you are still having this error returned and are unable to resolve it, to open a case with PureCloud Support.
Based on what you are trying to do the very first API call you will need to use is this one to pull all of the chat conversation ID's POST /api/v2/analytics/conversations/details/query
For the scoping of your project I would recommend posting specific questions on our developer forum https://developer.mypurecloud.com/forum/. If you are having any trouble developing this program and need Genesys to create it for you I would recommend opening a case with PureCloud Support and have us engage PSO to develop the program for you.
------------------------------
Gage Decker
Genesys - Employees
Original Message:
Sent: 11-13-2019 16:36
From: Facundo Nowicky
Subject: Search Chat recording bodies
Thank you for your help. Odd. It seems you tried to list 2 options but they are apparently the same.
So if I understand you correctly, and in order to search through various chats, I should obtain a list of conversations IDs, and then iteratively go through all of them calling this API, load the messages up in memory and search through that?
A question then:
- I tested the API, using the Conversation ID reported in "Interactions" (and verified that the ChatLog is available), both with chats where the user was part of them and where he wasn't. In both cases the API returns 404 "chat not found error".
Rereading my original post it might not be obvious, that the objective is to be able to search certain words in the body of a group of chats, for example all chats from a Queue within a time range.
------------------------------
Facundo Nowicky
Interaxa S.A.
Original Message:
Sent: 11-13-2019 15:42
From: Gage Decker
Subject: Search Chat recording bodies
Hi Facundo,
There are ways to do this and the design of the application would be up to you but you can use one of these two API calls:
- GET /api/v2/conversations/chats/{conversationId}/messages. The only caveat to that call is "The current user must be involved with the conversation to get its messages."
- GET /api/v2/conversations/chats/{conversationId}/messages. This one will need an OAuth setup to have that populate outside of https://developer.mypurecloud.com/developer-tools/#/api-explorer site.
------------------------------
Gage Decker
Genesys - Employees
Original Message:
Sent: 11-13-2019 15:06
From: Facundo Nowicky
Subject: Search Chat recording bodies
Different customers have requested the possibility to search recorded chat bodies, meaning the full text of the chat interaction.
The only reference to search chats I found referred to chat rooms.
Is there any way to do so. Perhaps some API calls or similar?
Regards
#Ask Me Anything (AMA)
------------------------------
Facundo Nowicky
Interaxa S.A.
------------------------------