Custom Logging

The Log building block helps you gather the detailed information about the Dialog Application or a Flow.

There are two approaches that allow to gather different types of information:

  • Defining Fail Reason: The Fail Reason contains the name of the cause why the Dialog Application or a Flow might has failed, has succeeded or has been executed, and allows to log this status.

  • Selecting Key-Value pair:  Key-Value pair of data contains the gathered information during the dialog, so it could be further tracked on the Analytics.

Further, you can check the collected information or the status on the Analytics for statistical purposes. For example, you can log the status as failed for the particular Dialog Application or a Flowalthough the Dialog Application or a Flow doesn’t fail.

It is possible to either add a custom fail reason, some key-value pairs, or both at the same time.

It is possible to use the names of the previously used fields and values to log them precisely, or it can be any other text to substitute the field or value.

If the Log building block is used twice in a row, only the second one will be applied.

To apply the Log building block, do the following:

  1. Choose the Log building block from the Dialog Control panel on the left, drag and drop it onto canvas, and connect with another building block.

2. Click the Settings button in the right upper corner of the Log building block to configure it.

3. Define the Fail Reason, or click + Add Input Field button to define a Key-Value pair (it is possible to add multiple pairs of data by clicking the + Add more button). Click Save to finish.


Statistics of Flow Status

Since the Logging block allows to define the status of the Flow, it is possible to further track it for statistics that provides you the detailed information on successful or failed Flows, and the additional information, such as the reason the for Flow failure.
To check the statistics of the Flow status, navigate to the Console, and select the Insights tab.