Introduction
Now that we’ve ensured our function works, we want to get our voice agent to use it. Open the knowledge base and start writing your instructions.Adding a Function
You can add a function into the knowledge base in three ways:- Type ”/” in the card’s “Actions” field
- Right-click in the card’s “Actions” field
- Click the + icon on the right side of the field
It may require some iterative testing to get your voice agent to call your function and behave as expected.
Testing your agent
- Save your agent
- Click the Play button in the top right-hand corner of the header to reveal the test chat panel.
- Ask “Where is my order?”
- Watch as your agent responds with the location in natural language.
- Check Function Calls
- You can check if your voice agent called a function and with what parameters by clicking on the settings button next to the close button in the test panel and enabling the functions toggle.