How musabumair687/xobalt-ai works
Xobalt AI is a sales-prospecting backend: API requests can discover and ingest leads, analyze company websites, score intent and fit, and generate personalized outreach. The Hunter workflow’s sampled path covers discovery through verification and database ingestion; website analysis runs as a background workflow and persists extracted evidence. Scoring and personalization are distinct product branches. Several routes and workflow implementations are indexed but not excerpted, so their internal links are shown only where the index or API excerpt supports them; unsampled integrations are omitted.
Main entry points: hunter/nodes.py Hunter agent · main.py FastAPI app · website_intelligence.py Website API · website_intelligence/nodes.py Website analysis agent
Components 27
API and workflows
- FastAPI app
backend/app/main.py - Hunter API
backend/app/api/hunter.py - Hunter workflow
backend/app/workflows/hunter_workflow.py - Website API
backend/app/api/website_intelligence.py - Website workflow
backend/app/workflows/website_intelligence_workflow.py - Scoring API
backend/app/api/scoring.py - Personalization API
backend/app/api/personalization.py - Personalization workflow
backend/app/workflows/personalization_workflow.py
Lead discovery
- Hunter agent
backend/app/agents/hunter/nodes.py - Company discovery
backend/app/services/discovery_service.py - Lead enrichment
backend/app/services/enrichment_service.py - Contact verification
backend/app/services/verification_service.py - Lead deduplication
backend/app/services/deduplication_service.py - Lead ingestion
backend/app/services/lead_ingestion_service.py
Company intelligence
- Website analysis agent
backend/app/agents/website_intelligence/nodes.py - Page discovery
backend/app/services/page_discovery_service.py - Content extraction
backend/app/services/content_extraction_service.py - Intelligence extraction
backend/app/services/intelligence_service.py - Website records
backend/app/services/website_service.py - Lead scoring
backend/app/services/scoring_service.py - Intent analysis
backend/app/services/intent_service.py - Personalization agent
backend/app/agents/personalization/nodes.py - Message generation
backend/app/services/personalization_service.py
Persistence
- PostgreSQL models
backend/app/models/lead.py - Company intelligence records
backend/app/models/company_intelligence.py - Database session
backend/app/database/session.py
Other components
- API client
Connections 27
- API client → FastAPI app: sends requests
- FastAPI app → Hunter API: routes to
backend/app/main.py - FastAPI app → Website API: routes to
backend/app/main.py - FastAPI app → Scoring API: routes to
backend/app/main.py - FastAPI app → Personalization API: routes to
backend/app/main.py - Hunter API → Hunter workflow: starts workflow
- Hunter workflow → Hunter agent: runs agent
backend/app/workflows/hunter_workflow.py - Hunter agent → Company discovery: discovers companies
backend/app/agents/hunter/nodes.py - Hunter agent → Lead enrichment: enriches leads
backend/app/agents/hunter/nodes.py - Hunter agent → Contact verification: verifies contacts
backend/app/agents/hunter/nodes.py - Hunter agent → Lead deduplication: deduplicates candidates
backend/app/agents/hunter/nodes.py - Hunter agent → Lead ingestion: ingests results
backend/app/agents/hunter/nodes.py - Lead ingestion → PostgreSQL models: writes lead records
backend/app/services/lead_ingestion_service.py - Website API → Website records: resolves website
backend/app/api/website_intelligence.py - Website API → Website workflow: starts background task
backend/app/api/website_intelligence.py - Website workflow → Website analysis agent: runs analysis
- Website analysis agent → Page discovery: discovers pages
backend/app/agents/website_intelligence/nodes.py - Website analysis agent → Content extraction: extracts content
backend/app/agents/website_intelligence/nodes.py - Website analysis agent → Intelligence extraction: extracts insights
backend/app/agents/website_intelligence/nodes.py - Website API → Website records: saves pages and intelligence
backend/app/api/website_intelligence.py - Website records → Company intelligence records: persists intelligence
backend/app/services/website_service.py - Scoring API → Lead scoring: requests scoring
- Scoring API → Intent analysis: requests intent analysis
- Personalization API → Personalization workflow: starts workflow
backend/app/api/personalization.py - Personalization workflow → Personalization agent: runs agent
- Personalization agent → Message generation: generates message
backend/app/agents/personalization/nodes.py - Database session → PostgreSQL models: creates tables
backend/app/database/session.py