Skip to content

AI agents and call QA

AI processing can transcribe recordings, generate structured call analysis, and run organization-scoped AI agents. Call QA provides configurable rubrics and review queues; admins can inspect results rather than treating a model score as an irreversible business decision.

  • AI_GLOBAL_KILL disables AI execution globally.
  • AI_DAILY_CAP_CENTS caps daily spend.
  • AI_QA_MAX_PER_RUN bounds each QA worker pass.
  • AI_RUN_LEASE_SECONDS prevents abandoned jobs from remaining locked forever.
  • AI_MODEL, Anthropic credentials, and optional Whisper binary/model paths select providers.
  • Organization BYO keys are sealed at rest and require NPK_CRYPT_KEY.

AI workers should run from cron with monitored exit status. Audio-redaction or provider failure does not justify exposing an unredacted artifact; the pipeline treats unavailable operations as failures.

Implementation anchors: modern/admin/ai-agents.php, qa.php, modern/agent-dialer/ai_pipeline.php, ai_agents_cron.php, modern/shared/ai_agents.php, ai_schema.php.