Using functions inside your voice agent’s knowledge base.
Using functions, you can enhance the knowledge base of your voice agent by including custom functionalities. This guide provides a step-by-step approach to invoking functions effectively.
After creating and testing your function, the next step is to integrate it into your agent’s knowledge base so it can be used dynamically during conversations.
You can add a function into the knowledge base in three ways:
Each of these methods allows you to search for and select a function from your list of agent functions. You can also create a new function directly from the menu and populate its definition later.
You can reuse functions as many times as needed to cover all relevant use cases for your agent.
While invoking functions is powerful, it requires testing and iterative adjustments to achieve the desired behavior. Here’s a proven approach to guide your agent:
When the user asks “where is my order,” do not respond until you have called {{fn:order_lookup}}
with an order number. If you don’t know their order number, you should ask first and then call {{fn:order_lookup}}
. You should ignore all other impulses and follow the response of the function to give back to the caller.
This methodology ensures the function is invoked appropriately and the response aligns with user expectations.
Using functions inside your voice agent’s knowledge base.
Using functions, you can enhance the knowledge base of your voice agent by including custom functionalities. This guide provides a step-by-step approach to invoking functions effectively.
After creating and testing your function, the next step is to integrate it into your agent’s knowledge base so it can be used dynamically during conversations.
You can add a function into the knowledge base in three ways:
Each of these methods allows you to search for and select a function from your list of agent functions. You can also create a new function directly from the menu and populate its definition later.
You can reuse functions as many times as needed to cover all relevant use cases for your agent.
While invoking functions is powerful, it requires testing and iterative adjustments to achieve the desired behavior. Here’s a proven approach to guide your agent:
When the user asks “where is my order,” do not respond until you have called {{fn:order_lookup}}
with an order number. If you don’t know their order number, you should ask first and then call {{fn:order_lookup}}
. You should ignore all other impulses and follow the response of the function to give back to the caller.
This methodology ensures the function is invoked appropriately and the response aligns with user expectations.