A comprehensive AI agent for Financial Advisors that integrates with Gmail, Google Calendar, and HubSpot. The agent can answer questions about clients using RAG and perform actions through tool calling.
Jump-agent/
├── backend/ # FastAPI backend
├── frontend/ # Next.js frontend
└── README.md # This file
Before starting, ensure you have:
- Python 3.11+ installed
- Node.js 18+ and npm/yarn installed
- PostgreSQL 14+ installed and running
- Google Cloud Console account (for OAuth)
- HubSpot account (free tier works)
-
Install PostgreSQL (if not already installed):
- Windows: Download from postgresql.org
- Mac:
brew install postgresqlor download from postgresql.org - Linux:
sudo apt-get install postgresql(Ubuntu/Debian)
-
Start PostgreSQL service:
- Windows: Services app → Start "postgresql-x64-XX" service
- Mac/Linux:
sudo service postgresql startorbrew services start postgresql
-
Create a new database:
# Connect to PostgreSQL psql -U postgres # Create database CREATE DATABASE financial_advisor_agent; # Connect to the new database \c financial_advisor_agent # Install pgvector extension CREATE EXTENSION vector; # Exit \q
Note: You may need to install pgvector separately:
- Mac:
brew install pgvector - Linux: Follow instructions at github.com/pgvector/pgvector
- Windows: Download from pgvector releases
- Mac:
-
Navigate to backend directory:
cd backend -
Create virtual environment:
python -m venv venv
-
Activate virtual environment:
- Windows PowerShell:
venv\Scripts\Activate.ps1 - Windows CMD:
venv\Scripts\activate.bat - Mac/Linux:
source venv/bin/activate
- Windows PowerShell:
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
- Copy
.env.exampleto.env:# Windows copy .env.example .env # Mac/Linux cp .env.example .env
- Open
.envand fill in all required values (see Configuration section below)
- Copy
-
Run database migrations:
# Make sure you're in the backend directory with venv activated alembic upgrade head -
Start the backend server:
uvicorn main:app --reload --port 8000
You should see output like:
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) INFO: Started reloader process INFO: Started server process INFO: Waiting for application startup. INFO: Application startup complete.
-
Navigate to frontend directory (in a new terminal):
cd frontend -
Install dependencies:
npm install
This may take a few minutes. If you encounter errors, try:
npm install --legacy-peer-deps
-
Set up environment variables:
- Copy
.env.exampleto.env.local:# Windows copy .env.example .env.local # Mac/Linux cp .env.example .env.local
- Open
.env.localand verifyNEXT_PUBLIC_API_URL=http://localhost:8000
- Copy
-
Start the development server:
npm run dev
You should see:
▲ Next.js 14.0.4 - Local: http://localhost:3000