How ooarchitect92/talktobot works
Northstar is a multi-tenant AI support platform. Users configure assistants and knowledge in the React control plane; the FastAPI service ingests sources, retrieves grounded context, and serves chat and channel experiences, while tenant security and persistence support the workflow. The README also documents analytics, education, workspace administration, WhatsApp, and an in-progress lead/CRM delivery capability. Edges use README-documented relationships or the supplied source index/excerpts; several subsystem internals were not sampled, so their links are intentionally limited.
Main entry points: main.py FastAPI service · ingestion.py Knowledge ingestion · whatsapp.py Channel integrations · routes.tsx Admin UI
Components 23
Control plane
- Admin UI
frontend/src/app/routes.tsx - Website widget
frontend/public/widget.js
API and tenancy
- FastAPI service
backend/src/northstar_api/main.py - Authentication and access
backend/src/northstar_api/dependencies.py - Token security
backend/src/northstar_api/security.py - Workspace settings
backend/src/northstar_api/modules/workspace/contracts.py - Assistant configuration
backend/src/northstar_api/agent_purpose.py
Grounded assistant
- Knowledge ingestion
backend/src/northstar_api/modules/knowledge/ingestion.py - Document extraction
backend/src/northstar_api/services/hybrid_extraction.py - Knowledge retrieval
backend/src/northstar_api/modules/knowledge/retrieval.py - Grounded chat
backend/src/northstar_api/services/chat.py - Knowledge API
backend/src/northstar_api/routers/knowledge_routes.py
Channels and CRM
- Channel integrations
backend/src/northstar_api/services/whatsapp.py - WhatsApp Cloud
- Lead and CRM
backend/src/northstar_api/lead_crm/services.py - CRM connectors
backend/src/northstar_api/lead_crm/connectors.py
Persistence and events
- Tenant data
backend/src/northstar_api/models.py - Database runtime
backend/src/northstar_api/database.py - Transactional outbox
backend/src/northstar_api/services/outbox.py - Background workers
backend/src/northstar_api/workers/tasks.py
Owner website
- Owner website
website/src/main.tsx - Website server
website/server.mjs
Other components
- Workspace user
Connections 30
- Workspace user → Admin UI: configures
README.md - Admin UI → FastAPI service: manages assistants
- Workspace user → Website widget: starts chat
README.md - Website widget → FastAPI service: requests chat
README.md - FastAPI service → Authentication and access: enforces access
- Authentication and access → Token security: validates tokens
backend/src/northstar_api/dependencies.py - FastAPI service → Workspace settings: serves workspace
- Admin UI → Workspace settings: configures workspace
- Admin UI → Assistant configuration: configures assistant
README.md - FastAPI service → Knowledge API: routes requests
- Knowledge API → Knowledge ingestion: manages sources
- Knowledge ingestion → Document extraction: extracts documents
backend/src/northstar_api/modules/knowledge/ingestion.py - Knowledge ingestion → Tenant data: stores knowledge
backend/src/northstar_api/modules/knowledge/ingestion.py - Knowledge ingestion → Knowledge retrieval: makes searchable
README.md - Grounded chat → Knowledge retrieval: retrieves context
README.md - Grounded chat → FastAPI service: streams grounded replies
README.md - FastAPI service → Channel integrations: serves channel APIs
- Channel integrations → WhatsApp Cloud: exchanges messages
README.md - Channel integrations → Grounded chat: queues AI replies
README.md - Channel integrations → Lead and CRM: captures leads
README.md - Lead and CRM → Transactional outbox: records delivery events
backend/src/northstar_api/lead_crm/services.py - Lead and CRM → CRM connectors: routes CRM delivery
- CRM connectors → Tenant data: persists delivery state
- Database runtime → Tenant data: connects
backend/src/northstar_api/database.py - FastAPI service → Database runtime: opens sessions
backend/src/northstar_api/main.py - Transactional outbox → Tenant data: reads event state
backend/src/northstar_api/services/outbox.py - Background workers → Knowledge ingestion: runs ingestion jobs
backend/src/northstar_api/workers/tasks.py - Background workers → Channel integrations: runs channel jobs
backend/src/northstar_api/workers/tasks.py - Workspace user → Owner website: visits site
README.md - Owner website → Website server: loads website