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).
true
means that the discussion is considered as a successfalse
means that the discussion is considered as a failure<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: