What is it for?

The Done action is used to signal the end of the discussion script.

There are 2 distinctions to make depending on where the Done action is used:

The Done action can have 2 different values that represent either the discussion is considered as a success (the caller was treated as expected) or a failure (for example, the voice agent was not able to understand the caller at one point).

done_action.png

<aside> ⚠️ It is mandatory that every paths of the script ends with a Done action. If it’s not the case, you will get an error in the helper and you won’t be able to deploy your voice agent in production.

</aside>

Those results are then used in the calls Table view to have an overview of the discussions that are a success or a failure, using the tags:

calls_table_view.png