Quick Start¶
Get started with EpidBot in 5 minutes.
Prerequisites¶
Before starting, make sure you have:
- Backend: Python 3.12+,
uvpackage manager - Frontend: Node.js 18+,
pnpmpackage manager - PostgreSQL running (users, sessions, catalog — see Installation)
- A Docker sandbox for code execution (
SANDBOX_URL; optional but recommended) - Installed dependencies:
uv sync && cd frontend && pnpm install - Configured
.envwith at leastSECRET_KEY/JWT_SECRET,DATABASE_URLandOPENAI_API_KEY(see Configuration) - Created at least one user account (see Authentication)
Starting EpidBot¶
1. Create First User (Required)¶
If you haven't created a user yet:
Follow the prompts to create a username and password.
2. Start the Backend API¶
This starts the FastAPI server on port 8123 with REST API and WebSocket support.
3. Start the Next.js Frontend¶
This starts the Next.js development server on port 3000.
4. Login¶
Open your browser to http://localhost:3000.
You'll see a login screen. Enter your username and password to access EpidBot.
Onboarding Tutorial
New users automatically receive a guided tutorial on first login. The tutorial introduces all major features with example prompts.
Basic Usage¶
1. Download Data¶
Ask EpidBot to download health data:
Or in English:
2. Explore Available Data¶
3. Query Data¶
4. Generate Visualizations¶
5. Analyze International Data¶
Example Queries¶
Data Discovery¶
| Query | Description |
|---|---|
| "What databases are available?" | List PySUS databases |
| "List downloaded datasets" | Show cached data |
| "Describe the dengue dataset schema" | Show columns and types |
Analysis¶
| Query | Description |
|---|---|
| "Calculate mean age of patients" | Statistical analysis |
| "Compare dengue cases 2022 vs 2023" | Temporal comparison |
| "Top 10 municipalities by cases" | Ranking queries |
Visualization¶
| Query | Description |
|---|---|
| "Plot time series of cases" | Line chart |
| "Bar chart of cases by state" | Bar chart |
| "Map of cases by municipality" | Choropleth map |
Tips¶
- Be specific: Include years, diseases, and locations
- Request visualizations: Ask for charts when exploring data
- Use sessions: Create separate sessions for different analyses
- Send during streaming: You can interrupt the assistant with a new message at any time