This is a agentic travel agent that uses AI to plan trips. It uses the Cloudflare AI stack and the AI SDK.
For search, I use free tier api keys for Exa and the Google Flights RapidAPI.
I created this project to learn how to use the cloudflare workers + ai tech stack.
- React
- Tailwind
- Shadcn UI
- Cloudflare Workers
- Cloudflare D1
- Cloudflare Agents SDK
Feel free to try it out at travel.badbird.dev!
To run it locally, follow the following instructions:
# Clone the repo
git clone https://github.com/Badbird5907/cf_ai_travel_agent/
cd cf_ai_travel_agent
# Define your environment variables - You can get free API keys for https://exa.ai and https://rapidapi.com/DataCrawler/api/google-flights2
cp .dev.vars.example .dev.vars
vim .dev.vars
# Install dependencies (make sure you have pnpm installed)
pnpm install
# Generate types
pnpm run typegen
# Run the dev server
pnpm run dev
pnpm run dev