Skip to content

Getting Started

This guide walks through setting up Friday Assistant for local development.

Prerequisites

  • Python 3.11+
  • Node.js 18+
  • pnpm
  • LiveKit server access
  • Microsoft 365 tenant with API permissions
  • Google Cloud project with Gemini API access

Backend Setup

  1. Clone and navigate to the backend directory:
git clone <repository-url>
cd bayer-assistant-agent
  1. Create a virtual environment:
python -m venv .venv

# Windows
.venv\Scripts\activate

# Linux/Mac
source .venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Create .env file with required variables:
LIVEKIT_URL=wss://your-livekit-server.com
LIVEKIT_API_KEY=your_api_key
LIVEKIT_API_SECRET=your_api_secret
GOOGLE_API_KEY=your_google_api_key
AZURE_CLIENT_ID=your_client_id
AZURE_TENANT_ID=your_tenant_id
AZURE_CLIENT_SECRET=your_client_secret
  1. Run the agent:
python agent.py dev

Frontend Setup

  1. Navigate to frontend directory:
cd frontend-agent
  1. Install dependencies:
pnpm install
  1. Copy environment template:
cp .env.example .env.local
  1. Configure .env.local:
NEXT_PUBLIC_AZURE_CLIENT_ID=your-azure-client-id
NEXT_PUBLIC_AZURE_TENANT_ID=your-azure-tenant-id
NEXT_PUBLIC_AZURE_REDIRECT_URI=http://localhost:3000
LIVEKIT_API_KEY=your-livekit-api-key
LIVEKIT_API_SECRET=your-livekit-api-secret
NEXT_PUBLIC_LIVEKIT_URL=wss://your-livekit-url
  1. Start development server:
pnpm dev

Open http://localhost:3000 in your browser.

Next Steps