Fabian_Quiroga | 2022-10-18 14:39:55 UTC | #1
How to identify in the API if a message interaction (conversations) is in threadingtimeline?
Paul_Lewis | 2022-10-18 20:04:33 UTC | #2
I use /api/v2/analytics/conversations/details/query with body along the lines of: { "interval": "substdaterange", "paging": { "pageSize": 100, "pageNumber": subst_page }, "segmentFilters": [ { "predicates": [ { "dimension": "queueId", "operator": "notExists", "type": "dimension" }, { "type": "dimension", "dimension": "mediaType", "operator": "matches", "value": "message" } ], "type": "and" } ], "conversationFilters": [ { "predicates": [ { "type": "dimension", "dimension": "conversationEnd", "operator": "notExists" } ], "type": "and" } ] }
Then in the return data I throw out any conversations that have a flow object (segment filter in the POST did not seem to work the way I had imagined)
What's left in my customer's case are conversations waiting for the 72 hour threading timeline. They don't want these to reach the agent so I then patch them to disconnect all participants using PATCH /api/v2/conversations/messages/${id}
I did see in other recent posts that there is soon to be a way to determine if a conversation times out while bot waiting for input (which in my case would solve the issue better for my customer). It may or may not be something useful to you too, depending on why you want to know in the interaction is in threading timeline. https://developer.genesys.cloud/forum/t/in-queue-bot-to-see-if-customer-available-web-messaging-guest-api/14670
Hope it helps
system | 2022-11-18 20:04:52 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 16760