A multi-agent network with human in the loop chat helping user explore various travel destinations.
Inspired by LangGraph multi-agent tutorial
Tokens are streamed to the frontend built with NuxtJS as they are generated by the LLM in the backend.
All of the agents in the network have the "ability" to talk to each other and are equipped with tools related to their tasks.
Currently live at https://ai-travel-agent-pied.vercel.app/
- Pluto the Pup 🐶: General travel agent who is equipped with tools that can search the internet for images ImageSearchTool, generate search queries related to user's travel interests, execute those search queries on the web, SearchExecutionTool and provide a summary of specific search results with SearchSummaryTool.
- Petey the Pirate 🏴☠️: The weather agent who is equipped with GeocodeTool to get latitude and longitude for the WeatherForecastTool to provide the weather and clothing recommendations for the user.
- Penny Restmore 🏨: The hotel agent who is equipped with the HotelSearchTool to help users find hotels near travel destinations. In additional she has the HotelDetailsTool to provide additional details about specific hotels. The HotelReviewsTool helps her show reviews of hotels for the user.
- Polly Parrot 🦜: The sightseeing agent who is equipped with the SightseeingSearchTool to help users find sights to see or attractions. The SightsDetailsTool provides additional details about sights or attractions and the SightsReviewsTool provides reviews from other users.
| Name | Source |
|---|---|
| ImageSearchTool | Brave Search API |
| SearchExecutionTool | Brave Search API |
| GeocodeTool | OpenCage |
| WeatherForecastTool | Weather API |
| HotelSearchTool | Tripadvisor Content API |
| HotelDetailsTool | Tripadvisor Content API |
| HotelReviewsTool | Tripadvisor Content API |
| SightseeingSearchTool | Tripadvisor Content API |
| SightsDetailsTool | Tripadvisor Content API |
| SightsReviewsTool | Tripadvisor Content API |
- Get an OpenAI API Key
- Get Weather API Key
- Get Brave Search API Key
- Get TripAdvisor API Key
- Get OpenCage API Key
- Get Postgres URL
- Optional get LangSmith API Key for tracing LLM calls
- Create .env by following env example with information from above
- Install project dependencies
pnpm install- Start the development server on
http://localhost:3000
pnpm dev