Beth: proposed technology stack

Beth: proposed technology stack Beth system architecture and component relationships. CopilotKit + AG-UI · Beth chat and quote cards · Architecture component · UI SDK + event protocol CopilotKit + AG-UI Beth chat and quote cards UI SDK + event protocol Beth API · FastAPI · Identity, consent, case access · Architecture component · Custom application layer Beth API · FastAPI Identity, consent, case access Custom application layer Temporal · Recover, retry, await approval · Architecture component · Server + Beth workers Temporal Recover, retry, await approval Server + Beth workers Langflow · Versioned AI stage flows · Architecture component · Visual builder + runtime Langflow Versioned AI stage flows Visual builder + runtime PostgreSQL · Cases, quotes and execution state · Architecture component · Separate databases / roles PostgreSQL Cases, quotes and execution state Separate databases / roles Redis · Langflow shared events + cache · Architecture component · Not the recovery controller Redis Langflow shared events + cache Not the recovery controller n8n · optional · CRM, email and channel adapters · Architecture component · Source-available; check terms n8n · optional CRM, email and channel adapters Source-available; check terms LiteLLM · optional · Model routing and usage budgets · Architecture component · Direct providers also work LiteLLM · optional Model routing and usage budgets Direct providers also work Model providers · Hosted APIs or self-hosted LLMs · Architecture component · Provider costs are separate Model providers Hosted APIs or self-hosted LLMs Provider costs are separate Beth approved tools · Evidence, pricing and matching · Architecture component · Custom logic still required Beth approved tools Evidence, pricing and matching Custom logic still required Official sources · BIR, laws and court decisions · Architecture component · Live fetch + small verified cache Official sources BIR, laws and court decisions Live fetch + small verified cache AG-UI / HTTPS Start / signal Stage activity Execution history Client records Approved outbox Shared events Validated call Model request Provider API Fetch and verify

Proposed, not installed

  • • Follow the main path left to right.
  • • AG-UI adapter and Beth workers need development.

One recovery owner

  • • Temporal owns case progress and retries.
  • • n8n is optional; it does not own the case.

Build only what earns its place

  • • Add LiteLLM when model routing needs it.
  • • Keep quotes and evidence checks in tested tools.