https://github.com/blaxel-templates/template-copilot-kit-py
A multi‑agent conversational assistant for booking flights and hotels, built with LangGraph, CrewAI, and the Blaxel platform. It orchestrates specialized sub‑agents and integrates web scraping, search, and summarization tools for end‑to‑end trip booking workflows.
https://github.com/blaxel-templates/template-copilot-kit-py
agent blaxel copilotkit crewai langgraph python
Last synced: 11 months ago
JSON representation
A multi‑agent conversational assistant for booking flights and hotels, built with LangGraph, CrewAI, and the Blaxel platform. It orchestrates specialized sub‑agents and integrates web scraping, search, and summarization tools for end‑to‑end trip booking workflows.
- Host: GitHub
- URL: https://github.com/blaxel-templates/template-copilot-kit-py
- Owner: blaxel-templates
- License: mit
- Created: 2025-04-17T05:28:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-15T21:26:36.000Z (11 months ago)
- Last Synced: 2025-07-16T20:10:25.743Z (11 months ago)
- Topics: agent, blaxel, copilotkit, crewai, langgraph, python
- Language: Python
- Homepage:
- Size: 2.57 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CopilotKit X Blaxel - Trip Booking Agent
A multi‑agent conversational assistant for booking flights and hotels, built with LangGraph, CrewAI, and the Blaxel platform. It orchestrates specialized sub‑agents and integrates web scraping, search, and summarization tools for end‑to‑end trip booking workflows.
Blaxel integrates seamlessly with CopilotKit, allowing you to deploy sophisticated AI agents to your customers within seconds. This powerful combination enables rapid delivery of conversational assistants with minimal setup time.
## Features
- Supervisor agent to delegate booking tasks
- Flight Agent (CrewAI) for flight search and provider lookup
- Hotel Agent (LangGraph REACT) for hotel search and Q&A
- Explorer‑MCP microservice for scraping and URL generation
- Streaming responses via CopilotKit endpoint
- Easily deployable to Blaxel Platform
## Prerequisites
- **Python:** 3.10 or later
- **[UV](https://github.com/astral-sh/uv):** An extremely fast Python package and project manager, written in Rust
- **[Blaxel CLI](https://docs.blaxel.ai/Get-started):** Ensure you have the Blaxel CLI installed. If not, install it globally:
```bash
curl -fsSL https://raw.githubusercontent.com/blaxel-ai/toolkit/main/install.sh | BINDIR=$HOME/.local/bin sh
```
- **Blaxel login:** Login to Blaxel platform
```bash
bl login YOUR-WORKSPACE
```
- **Browserbase API KEY** [Settings](https://www.browserbase.com/settings)
Create a `.env` file in directory explorer-mcp and set:
```bash
# Your Browserbase API key for headless browsing
BROWSERBASE_API_KEY=your_api_key_here
```
## Installation
**Clone the repository and install dependencies:**
```bash
git clone https://github.com/blaxel-ai/template-copilot-kit-py.git
cd template-copilot-kit-py
uv sync
```
## Running the Root Service Locally
Start the root supervisor service with hot reloading:
```bash
bl serve --hotreload
```
_Note:_ This command starts the server and enables hot reload so that changes to the source code are automatically reflected.
## Running the Explorer-MCP Microservice
In a separate terminal, start the flight data service for scraping and URL tools:
```bash
cd explorer-mcp
BL_DEBUG=true uv run mcp dev src/server.py
```
## Testing the Agent
```bash
# Check your agents are registered correctly
bl run agent blaxel-agent --local --path /copilotkit
```
## Deploying to Blaxel
When you are ready to deploy your application:
```bash
bl deploy
```
This command uses your code and the configuration files under the `.blaxel` directory to deploy your application.
## Project Structure
- **src/main.py** - Application entry point
- **src/agent.py** - Core agent implementation with LangGraph integration
- **src/server/** - Server implementation and routing
- **pyproject.toml** - UV package manager configuration
- **blaxel.toml** - Blaxel deployment configuration
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.