Skip to main content

Use Case

Flights & Stays Booking Assistant

Difficulty

Medium

Build Time

10 – 15 minutes

Integrations

Duffel

What does this Agent do?

This template helps you build an agent that can search, verify, and book flights and stays using real-time data from Duffel. It ensures all information comes directly from Duffel to prevent errors or assumptions. Here’s what this agent can do:
  • Search for flights and accommodations
  • Verify availability and prices in real time
  • Create instant or held flight bookings
  • Generate quotes for stays and confirm bookings
  • Manage passenger and guest details securely
  • Display travel options with accurate IDs and pricing

Example Conversations

Try asking your agent:
  • “Search for flights from NYC to London departing Dec 20, 2025, for 2 passengers.”
  • “Create a held booking for offer ID off_12345 for John Doe.”
  • “Book a stay at accommodation ID acc_987 with 2 rooms from Jan 5 to Jan 10.”
  • “Update passenger email for Jane Smith to [email protected].”
  • “Show me available flights under $800 from San Francisco to Paris next week.”

Setup

1

Customize prompt

This agent uses the Travel Booking Agent prompt template.
Go to Prompts → Templates → Add Template to select it.
Replace all variables—shown in curly brackets—to match your values.
2

Configure integrations

Add the Duffel API integration.
Go to Integrations → Add New and connect using your Duffel credentials.
3

Build agent

Go to the Agent tab and click Add New.
Enter your agent’s name and description.
Add your prompt and integration.
Select gpt-4.1 as your model, then click Save.
4

Use agent

Open the Chat panel and select your new agent from the dropdown.
Start using it to search for flights, check availability, and book travel.
Adjust the prompt if you want to change tone, behavior, or actions the agent takes with Duffel.