1) Ingestion Workflow
Primary async job-backed flow:POST /api/ingestorPOST /api/ingest/upload- Receive
job_id - Monitor with
GET /api/ingest/{job_id}orWS /api/ingest/ws/{job_id} - Wait for terminal state:
completedorfailed
POST /api/ingest/urlexecutes immediately and returns payload-level status.- Use
force: trueonPOST /api/ingest/urlfor explicit reprocessing and relevance-override ingestion when needed.
- Both
/api/ingestand/api/ingest/urlaccept optionalmanual_caption,manual_title,manual_descriptionfields. - When
manual_captionis provided, Firecrawl is bypassed and the provided text is used directly.
GET /api/ingest/policyreturns the current relevance gate criteria, threshold, model, career goal context, and accept/reject stats.- Rendered at
/signal-policyin the frontend.
POST /api/ingest/screenshotswithsource_url+ imagefiles(multipart). Fire-and-forget, can be called at any point.- Screenshots are copied to extracted projects automatically.
2) Chat Workflow
Request/response mode:POST /api/chat- For multi-turn conversations, the query rewriter resolves follow-ups into standalone queries using conversation history (rewrite-retrieve-read pattern)
- System routes request (
clear_meta,ambiguous,general,content,web_search,skill) - Response returns answer + provenance fields
POST /api/chat/stream- Query rewriting applies the same way as request/response mode
- Consume SSE event sequence
- Finish on one terminal event:
doneorerror
3) Career Recommendation Workflow
- Fetch overview and scoring context:
GET /api/career/overviewGET /api/career/taxonomyGET /api/career/taxonomy/inventoryGET /api/career/compositesGET /api/career/patterns- Composite scores expose:
readiness_pctfor coverage-driven activation/rankingconfidence_pctfor evidence depthscore_pctas backward-compatible readiness alias
- Request recommendations:
GET /api/career/recommend/jobs
- Send user signals:
POST /api/career/recommend/jobs/impressionsPOST /api/career/recommend/jobs/feedbackPOST /api/career/recommend/jobs/feedback/batch
- Inspect feedback aggregates:
GET /api/career/recommend/jobs/feedback/stats
4) Services/Operator Workflow
Use services-backed APIs for runtime control and quality visibility:- Health:
GET /health,GET /health?deep=true - Provider/runtime:
GET /api/stats/providers,GET /api/stats/slo - Cost/usage:
GET /api/stats/costs - Eval runs:
GET /api/evals/runs,GET /api/evals/runs/{run_id},GET /api/evals/compare
5) LinkedIn Network Execution Workflow
- Run LinkedIn audit and scoring in
/linkedin-network. - Persist an audit snapshot:
POST /api/network-ops/linkedin/snapshots
- Generate and execute a weekly plan in
/startup-challenge. - Monitor week-over-week KPI movement:
GET /api/network-ops/linkedin/summary