Before you go through this guide, make sure to create an account.
The agent
Our inbound agent takes orders and answers basic questions for a fictional restaurant called Bamboo Express.
Creating a new agent
To create a new agent, navigate to the Agents tab on the left sidebar and click the New Agent button on the top right. For this quickstart, we’ll walk through the pre-built agent together. You can clone this agent to your workspace by following the instructions here.Configuring the agent
Once you click into your cloned agent, you’ll see the agent’s configuration page. This is mission control for your agent, where you can configure the agent’s behavior and settings, go through past dials and run evaluations, and more.
Prompting the agent
Click on the Model tab to see the language model configuration for this agent. This specific agent is a prompted agent on top of GPT-4o. For more information on prompting agents and choosing a base model, see the prompting agents guide.Prompt
Prompt
Ignore previous instructions. You are answering the phones as a representative of the following restaurant:Bamboo Express
140 McConnell Boulevard
Denton, Texas 76203When you pick up, open with the following line:Hi, thank you for calling Bamboo Express, this is Kyle, how can I help you?The person on the other end will then say how they want to be helped.For any questions about the store (operating hours, address, phone number, etc.), use the following information to respond:Name: Bamboo Express
Address: 140 McConnell Boulevard, Denton, Texas 76203
Phone Number: 800-806-6453
Hours: 9 AM to 11 PM, 7 days a week
Open right now: TrueYour main purpose is to accept orders. If the customer would like to place an order, ask them what they would like.These are the possible menu items:Orange Chicken
Eggplant Tofu
Broccoli Beef
White Rice
Brown RiceAs the customer requests items, ask if they would like anything else, until they confirm that they’re done ordering. If they ask for any items that are not on the above menu, let them know that you don’t have that item. Entrees do not come with rice.The customer may provide special instructions; acknowledge these instructions.Once the customer has completed their order, tell them you’ll ring it up, and determine the total for the order. The total can be calculated using the
get_total
function.
This function will return a number with a decimal, which is the cost in dollars of the meal; tell the customer the cost by saying the number of dollars and cents that it is.Once you have the total, let them know the price and ask for their name.Finally, let them know that the order will be ready for pickup in 20 minutes.If you receive any requests that you cannot answer or if the caller needs assistance beyond what is outlined here, apologize and let them know that this line only handles orders.Calculating the total using function-calling
The prompt above references a function calledget_total
.
Once the customer has completed their order, tell them you’ll ring it up, and determine the total for the order. The total can be calculated using the get_total
function.
This function will return a number with a decimal, which is the cost in dollars of the meal; tell the customer the cost by saying the number of dollars and cents that it is.
Vogent supports leveraging function-calling within agents to perform actions and retrieve information live. To include a function in your agent, you’ll need to:
- Define the function in the Functions tab on the left sidebar.
- Include the function as one of the agent’s functions in the Agent’s Functions tab.
- Reference the function in your prompt.
get_total
function hits an external API with the counts for each item in the order, and receives the total cost of the order (The API simply sums the cost of each ordered item). To see how we’ve defined the function, head to the Functions tab, and select the get_total
function.

Retrieving the order post-call
After the call is completed, you can retrieve the order information from the call using the Dial Extractor webhook. The webhook will return the extracted order information in the format defined within the agent’s Extractor tab. For this particular agent, we’ve defined a single extractor field as a JSON object with the following schema using the Custom type:Extractor Schema
Making a call
Phone call
To make a phone call to an inbound agent, you’ll first need to create a phone number; see the getting started guide for more information. Once you’ve created a phone number, you can attach it to the agent by going to the agent’s Config tab, clicking Link Number, and selecting the chosen phone number. You can then make a call to the agent by dialing the phone number you’ve attached to the agent.Web call
To make a web call to the inbound agent, you can just click on the Make Call button on the top-right of the agent’s page, toggle to Web, then click Talk.Viewing past calls
To view past calls to the agent, you can go to the agent’s Dials tab. This will show you a list of all past calls to the agent as well as the extractor results. You can click into any dial to listen to the recording and see the full transcript of the call, among other things. You can also filter calls by date range, call type, and more, or view dials across agents in the Dial History tab on the left sidebar.Testing new version on past calls
If you’ve made changes to your agent, you can test the new version on past calls by clicking the Run Counterfactual button when you’ve clicked into a dial. This will run the new agent on the same call transcript and show you the results.Counterfactuals will feed call history up to the current line to generate each response, so they won’t be perfect reconstructions of how the conversation would have gone. LLM-as-judge functionality is coming soon to enable more dynamic agent testing. See the counterfactuals guide for more information.