Historical flow execution data overview
Genesys Cloud now gives customers access to historical flow execution data. Historical execution data can help you gain more insight into previous flow performance. You can use the data to optimize, debug, and troubleshoot flows and gain a high-level understanding of user journeys.
The following examples are possible scenarios that consumers of historical flow execution data can use the execution data for:
- Listen for specific flow events, for example, when flows encounter an error
- Watch events for a specific flow and analyze specific flow execution items, for example, when a flow runs a particular action and the action takes the failure or timeout path
- See which flows are running more than others
Genesys Cloud provides historical flow execution data for the following flow types:
{ "flow": { "conversationId": "49dbd0ea-c3ee-4568-ab5b-1fac76a5b81c", "division": { "id": "d62836e8-ff2a-43ee-bcf6-dc9d8b9e89a0" }, "endDateTime": "2023-10-12T09:09:50.495Z", "execution": [ { "startedFlow": { "dateTime": "2023-10-12T09:09:17.642Z", "languageTag": "en-us", "variables": [] } }, { "startedBotState": { "dateTime": "2023-10-12T09:09:17.642Z", "executionId": "433aad21-9b89-4c4c-aa46-3c2a23459a68", "stateId": "26d285b4-fdc8-4978-9d33-b9eb46a10cf9", "variables": [] } }, { "actionAskForIntent": { "actionId": "c5f05c45-f683-4ea5-ab0b-93ca101c0d66", "dateTime": "2023-10-12T09:09:17.642Z", "execution": [], "executionId": "00c0597c-7810-4425-b079-91bd680b9a8b", "outputPathId": "b12f6d65-5f4c-4702-843a-c753885fd57b", "outputVariables": [], "trackingId": 11 } }, { "actionAskForSlot": { "actionId": "a6846b61-7736-42ef-ada2-05643078bef5", "dateTime": "2023-10-12T09:09:24.708Z", "execution": [], "executionId": "02f44452-7883-4ea4-a854-973121fb6020", "outputPathId": "__DEFAULT__", "outputVariables": [], "trackingId": 12 } }, { "actionDecision": { "actionId": "efa25778-0b01-4e78-ab66-b5893cbfa72c", "dateTime": "2023-10-12T09:09:34.462Z", "executionId": "6e39cc7f-4701-4b9e-b0d0-f2b4adf80752", "outputPathId": "__NO__", "trackingId": 15 } }, { "actionDecision": { "actionId": "bcfc8a36-b4e4-4cb1-a9cf-f1fe9ec084cd", "dateTime": "2023-10-12T09:09:34.462Z", "executionId": "e6b8644a-d4ab-4743-a447-31b0e198ef60", "outputPathId": "__NO__", "trackingId": 23 } }, { "actionCommunicate": { "actionId": "137e8a9b-de39-4641-9304-2905548d4112", "dateTime": "2023-10-12T09:09:34.462Z", "executionId": "a1f21445-9841-43fb-8bf0-ba9111bb27b5", "trackingId": 17 } }, { "actionClearSlot": { "actionId": "768304ea-6aae-4a29-9f17-a708dcaba087", "dateTime": "2023-10-12T09:09:34.900Z", "executionId": "809640f3-5d0e-461e-9a6a-468e6afcc9c3", "outputVariables": [], "trackingId": 22 } }, { "actionLoopAnythingElse": { "actionId": "a6b6d035-f291-4c4b-bf8f-d6a9becc43e8", "dateTime": "2023-10-12T09:09:34.900Z", "execution": [], "executionId": "7a18178e-a65e-4bb4-abd7-5c2cf5ad78a7", "outputPathId": "__LOOP__", "outputVariables": [], "trackingId": 18 } }, { "actionCommunicate": { "actionId": "4bb7d902-57ad-4183-924d-02e03a03c1f3", "dateTime": "2023-10-12T09:09:50.229Z", "executionId": "b1574b6a-cc2b-4a56-87ad-46b1430c2f0b", "trackingId": 19 } }, { "actionExitBotFlow": { "actionId": "8d2f40dc-9269-41b4-bf8e-d7ac4d631fe3", "dateTime": "2023-10-12T09:09:50.495Z", "executionId": "8f97d86c-cd6a-4c14-aa4b-bf5bcd60f89c", "trackingId": 14 } }, { "endedBotState": { "dateTime": "2023-10-12T09:09:50.495Z" } }, { "endedFlow": { "dateTime": "2023-10-12T09:09:50.495Z", "flowExitReason": "FLOW_EXIT", "naturalLanguageUnderstanding": { "intent": { "intentName": "Check Account Balance" } }, "outputVariables": [] } } ], "executionId": "9ce12079-8e45-42ad-8130-2f104b258777", "flowId": "7df71c06-4d63-43ef-8db7-d90e68d037f2", "flowIsDebug": false, "flowName": "Bank Bot", "flowType": "bot", "flowVersion": "7.0", "startDateTime": "2023-10-12T09:09:17.642Z" } }
Name | Type | Description |
---|---|---|
Name | Type | Description |
flow:conversationId | String | The unique identifier for a conversation in Genesys Cloud. A conversation can involve multiple flows or agents. |
flow:division:id | String |
The division the flow is in when Genesys Cloud saves the execution data after the flow execution completes.
|
flow:endDateTime | String |
The date and time when the flow execution completed.
|
flow:execution | Array | An array of flow execution items that describe what happened when the flow ran. |
flow:execution:startedFlow | Object | A flow execution item that describes the starting date and time of the flow and the language the flow was running in. |
flow:execution:startedBotState | Object |
A flow execution item that describes
|
flow:execution:actionAskForIntent | Object |
The flow execution item that holds the execution data for the Ask for Intent action:
|
flow:execution:actionAskForSlot | Object |
The flow execution item that holds the execution data for the Ask for Slot action:
|
flow:execution:actionDecision | Object |
The flow execution item that holds the execution data for the Decision action:
|
flow:execution:actionCommunicate | Object |
The flow execution item that holds the execution data for the Communicate action:
|
flow:execution:actionClearSlot | Object |
The flow execution item that holds the execution data for the Clear Slot action:
|
flow:execution:actionLoopAnythingElse | Object |
The flow execution item that holds the execution data for the Anything Else? Loop action:
|
flow:execution:actionExitBotFlow | Object |
The flow execution item that holds the execution data for the Exit Bot Flow action:
|
flow:execution:endedBotState | Object |
A flow execution item that describes
|
flow:execution:endedFlow | Object |
The flow execution item that describes
|
flow:executionId | String |
The unique identifier that identifies a unique instance of an Architect flow that ran. |
flow:flowId | String |
The unique identifier for the flow in Architect. |
flow:flowIsDebug | Boolean |
It specifies whether the executed flow was in debug mode. |
flow:flowName | String |
The name of the flow that ran. |
flow:flowType | String |
The Architect flow type of the flow that ran. |
flow:flowVersion | String |
The version of the flow that ran. |
flow:startDateTime | String |
The date and time when the flow execution started. |
- In a future release, data granularity will increase and historical flow execution data will be available for other flow types.
- Genesys Cloud stores historical flow execution data for 10 days.
- Genesys Cloud stores historical flow execution data for a maximum of 50 executions per flow. It is a rolling limit so when you create the 51st execution for your flow, Genesys Cloud deletes the oldest execution data for the flow.
- Genesys Cloud does not store the historical execution data of flows that run longer than three days.
Features in Architect
Available historical execution data includes flow events such as errors or warnings and is retrievable via the public API for third-party access. For more information about the relevant endpoints in the public API, see Start a process (job) to prepare a download of a singular flow execution data instance by Id and Get the status and/or results of an asynchronous flow execution data retrieval job in the Genesys Cloud Developer Center.
- Aggregate data, such as counts of the number of times that an action runs during a flow, is not supported.
- Data that you store in secure variables is not retrievable. Architect redacts secure data.
- You can only view flow execution data for published flows. To ensure that you capture the most recent execution data, make sure that you republish the flow and send an interaction through it before you run a query.