Building a Travel Agent with ChatGPT AgentKit: A Complete Guide
Updated on October 7, 2025
ChatGPT Agent Builder visual workflow interface
Building complex AI workflows often involves writing a lot of code, which can slow down development and make it harder to iterate. What if you could design, test, and launch AI agents using a visual, drag-and-drop interface? OpenAI’s new Agent Builder makes this possible, providing an all-in-one space to create powerful agentic workflows without writing any code.
This guide will walk you through the key features of Agent Builder and show you how to create your first agent, using a practical travel assistant example from OpenAI’s tutorial. You will learn how to connect different components, test your agent’s performance, and prepare it for deployment.
What is Agent Builder?
Agent Builder is part of AgentKit, OpenAI’s all-in-one suite of tools for building, deploying, and optimizing AI agents. As an essential component of AgentKit, Agent Builder provides a visual interface that simplifies the process of designing multi-agent workflows—no coding required. It allows you to connect different functional blocks, called nodes, to build a complete workflow. You can start from pre-built templates or create a custom workflow from scratch.
One of its most valuable features is the built-in evaluation system, which helps you test how your agents perform and make adjustments on the fly. When your agent is ready, you can export the entire workflow as code or integrate it directly into your product using the provided workflow ID. This streamlines the path from idea to production.
Building a Travel Agent: A Step-by-Step Example
To see Agent Builder in action, let’s explore how to create a helpful travel agent. This agent will be able to handle two types of user requests: building a travel itinerary and looking up flight information.
1. Setting Up the Workflow
Every workflow begins with a Start Node. This node is where you can define input variables that your agent will use. For our travel agent, the default settings are sufficient to get started. The user’s request will be passed through this node to the rest of the workflow.
2. Classifying User Intent
Since our agent needs to handle two different tasks, we need a way to determine what the user wants. This is where a Classifier Agent comes in. A classifier is a specialized agent that categorizes the user’s input.
We can configure this node with a prompt that instructs it to act as a travel assistant and classify the user’s message as either “itinerary” or “flight info.” To ensure the output is structured and predictable, we can specify the output format as JSON.
Here’s an example of the JSON output structure:
{
"classification": "itinerary"
}
3. Branching the Logic with an If/Else Node
Once the user’s intent is classified, we need to direct the request to the correct specialized agent. An If/Else Node allows us to create conditional branches in our workflow.
We can set up the condition to check the output from our classifier.
- If
classification
is “flight info,” the workflow proceeds to the flight agent. - Otherwise, the workflow proceeds to the itinerary agent.
This simple branching logic ensures that each request is handled by the agent best equipped for the task.
4. Creating Specialized Agents
Now, we create the two specialized agents that will perform the core tasks.
The Itinerary Agent
For users asking for travel suggestions, we’ll create an Itinerary Agent. This is another agent node configured with a specific prompt, such as: “You are a travel assistant. Build a concise itinerary.” This agent will take the user’s request (e.g., “What should I do in a day in Tokyo?”) and generate a detailed plan.
The Flight Agent
For users looking for flight details, we’ll configure a Flight Agent. Its prompt can be something like: “You are a travel assistant. Always recommend a specific flight. Use airport codes.”
To provide the most accurate and current information, we can give this agent access to tools like Web Search. This allows the agent to look up real-time flight data based on the user’s query (e.g., “SFO to Tokyo on October 7th”).
5. Testing Your Workflow
With the basic structure in place, you can use the Run Preview panel to test your agent. When you enter a prompt like “What should I do in a day in Tokyo?”, you can watch as the workflow visualizer shows the request moving from the classifier to the if/else branch and finally to the itinerary agent, which generates the output.
This immediate feedback loop is great for debugging and understanding how your agent processes information.
Enhancing the User Experience with Widgets
A plain text response for flight information is functional, but we can do better. Agent Builder allows you to create richer, more interactive user experiences using Widgets.
You can design custom UI components in the Widget Studio. For our flight agent, we can create a widget that displays flight details like departure and arrival locations, times, and other relevant information in a visually appealing card format.
After designing the widget, you can download its template and upload it directly to the flight agent node. You can even add more creative instructions to the agent’s prompt, such as “Choose a background color creatively based on the destination.” When tested, the agent might search the web, find a flight, and then display it using the custom widget with a background color it associates with the destination city.
Publishing Your Agent
Once you are satisfied with your agent’s performance, publishing it is straightforward. You can give your workflow a name, like “Travel Agent,” and publish it.
After publishing, you have two primary options for integration:
- Agents SDK: You can use the Software Development Kit to integrate the agent into your application. This gives you more control but also requires managing more code.
- Workflow ID with ChatKit: For a much simpler, no-code integration, you can take the generated workflow ID and drop it directly into your product using ChatKit.
Get Started with Agent Builder
Agent Builder is part of OpenAI’s AgentKit suite and is designed to work seamlessly with related tools like ChatKit and Connector Registry, making it easier to build, customize, and deploy end-to-end AI workflows. By offering a visual canvas, built-in testing, and easy deployment options, it empowers you to focus on designing great user experiences.
If you have a project that could benefit from an AI-powered workflow, give Agent Builder a try. Explore its features, build a simple agent, and see how quickly you can bring your ideas to life.