How ajaykarthikpogula0101/deep-agent works
DeependHQ Assistant is an embeddable, cited-Q&A chat service with live Zoom booking and supporting lead-management features. Visitors enter through the website widget and FastAPI service; chat retrieves grounded sources or invokes booking, then records outcomes and may notify the visitor or host. A separate documented ingestion workflow crawls site content, chunks and embeds it, and stores it for retrieval. The graph also shows booking, tracking, and email capabilities. Edges rely on the README and SOURCE INDEX references; unsampled internals are not inferred.
Main entry points: chat.py Chat orchestration · service.py Booking service · pipeline.py Content ingestion · main.py FastAPI service
Components 21
Visitor interface
- Embeddable widget
static/widget.js - FastAPI service
app/main.py
Knowledge Q&A
- Chat orchestration
app/chat.py - Content ingestion
app/ingest/pipeline.py - Site crawling
app/ingest/sources.py - Document chunking
app/ingest/chunker.py - Local embeddings
app/embeddings.py - Vector retrieval
app/rag/retrieve.py - Answer prompts
app/rag/prompts.py - Postgres and pgvector
app/db.py
Booking
- Booking flow
app/booking/flow.py - Booking service
app/booking/service.py - Slot availability
app/booking/availability.py - Zoom integration
app/booking/zoom.py - Booking records
app/store_bookings.py
Lead operations
- Conversation inbox
app/inbox.py - Session tracking
app/tracking.py - Email templates
app/templates.py - Booking email
app/booking/email.py - Outbound mailer
app/mailer.py
Other components
- Website visitor
Connections 25
- Website visitor → Embeddable widget: uses
README.md - Embeddable widget → FastAPI service: connects to
- FastAPI service → Chat orchestration: routes chat
app/chat.py - Chat orchestration → Vector retrieval: retrieves sources
app/chat.py - Chat orchestration → Answer prompts: builds answers
app/chat.py - Chat orchestration → Booking service: invokes booking
app/chat.py - Chat orchestration → Booking flow: uses booking tools
app/chat.py - Chat orchestration → Conversation inbox: records turns
app/chat.py - Content ingestion → Site crawling: fetches pages
app/ingest/pipeline.py - Content ingestion → Document chunking: chunks documents
app/ingest/pipeline.py - Content ingestion → Local embeddings: embeds chunks
app/ingest/pipeline.py - Content ingestion → Postgres and pgvector: writes vectors
app/ingest/pipeline.py - Vector retrieval → Local embeddings: embeds query
app/rag/retrieve.py - Vector retrieval → Postgres and pgvector: queries vectors
app/rag/retrieve.py - Booking flow → Slot availability: checks slots
app/booking/flow.py - Booking flow → Booking service: delegates booking
app/booking/flow.py - Booking flow → Postgres and pgvector: reads bookings
app/booking/flow.py - Booking service → Slot availability: checks availability
app/booking/service.py - Booking service → Zoom integration: books with Zoom
app/booking/service.py - Booking service → Booking records: stores lead
app/booking/service.py - Booking service → Booking email: sends host brief
app/booking/service.py - Booking email → Email templates: renders messages
app/booking/email.py - Booking email → Outbound mailer: queues mail
app/booking/email.py - FastAPI service → Session tracking: handles tracking
app/main.py - FastAPI service → Conversation inbox: serves inbox
app/main.py