I have previously asked if there's a way to have Architect respond to a premature disconnect, such as calling a web service and passing the value of the flow's variables after a user disconnects unexpectedly. I've been told that I can use the AWS Event Bridge to achieve this, however, the Event Bridge has its own separate cost to use.
I'm trying to see if there's a workaround to this. I currently have Flow Execution History enabled on my Genesys account, so when a call ends, I have a history of the call and I can see the value of all the variables at any point in the flow. At the start of the flow, I'm calling a web service and passing the conversation ID. I intend on having a service that runs every X minutes, and when it runs, I want to call a Genesys API to see if the call has disconnected.
If it has disconnected, and I don't have sufficient data (because the caller hung up early), I want to grab the value of all the variables at the last point in the call.
What API can I call to check to check the progress of a call to an Architect flow, to see if it has disconnected?
Is there an API I can call that can allow me access to the Flow Execution History, to grab all the values of the variables in the call?
This looks promising. I created a trigger with that topic, I called my flow, disconnected, and I do see that the trigger was hit and the workflow target was called. However, I don't see any of the variables from the originating flow that I disconnected from in the first place.
I viewed the workflow using Architect Replay, and I exported the execution data, but I only see the variables that were created in the responding workflow, not the flow that I disconnected from in the first place. Am I missing a step?
set the variables you want to access in a participant data in the flow. In the workflow called by the trigger you can access them using the "Get Data Variables" control (I dont remember the exact name). Use the Flow.conversationId variable for this.
I set all the variables I want to pass to the triggered workflow with the "Set Participant Data" tool.
In the triggered workflow, I notice that I don't have the option to select "Get Participant Data" like I could in my voice flow. But I do see "Get Conversation Data," perhaps that's what you're referring to? In there I see that I can put in the conversation ID. However, Flow.conversationId doesn't show any results, and Call.ConversationId, which is what I use to grab the conversation ID in the voice flow, also doesn't show up on the list of variables I can select. Is there a different tool I need to use, or am I trying to grab the conversation ID of the voice flow from the triggered workflow the wrong way?
Yes, it is the "Get Conversation Data". The variable you must use is Flow.conversationId. You must check the option input to flow so the Trigger can pass the value to the workflow.
Also check that the trigger use date format topPrimitiveLevel