Configuring Actions
In this guide we will cover more information on how to setup actions that the voice agent can take
Enforcing structure or format
When getting information from the user, it is often required that the information be ingested in a specific format.
For example for providing a date, there are multiple ways users can say the date - “7th May 2025” or “May the 7th this year” etc. In such cases, you can provide the format in which you want the date to be in the description of the action.
Controlling agent behaviour based on function output
Often times you might want the agent to say or act in a specific manner based on the output of the function. In such cases, the return of the function can include instructions for the agent on how to handle the outcome. For example, in our submitDate example, we can tell the agent to tell the user to provide a date after 2025.