Skip to content

Feat/press 3 after hours classifier#41

Merged
CapuchaRojo merged 3 commits into
mainfrom
feat/press-3-after-hours-classifier
May 8, 2026
Merged

Feat/press 3 after hours classifier#41
CapuchaRojo merged 3 commits into
mainfrom
feat/press-3-after-hours-classifier

Conversation

@CapuchaRojo
Copy link
Copy Markdown
Owner

🚀 VetCan Pull Request

Summary

Adds deterministic after-hours Press 3 routing for known operational intents.

This PR:

  • Routes seven-month doctor recommendation / prescription renewal language to the existing Press 1 Renewal TELE path.
  • Routes annual Florida/MMU state-card language to the Press 2 state-card lane.
  • Routes new-patient / get-a-card language to the existing Press 1 new-patient path.
  • Keeps reschedule and cancellation on their hidden staff-controlled lanes.
  • Preserves mixed cancel/reschedule priority toward reschedule intake.
  • Adds safe after-hours handling for veteran, pricing, what-to-bring, hours/location, medical deflection, and unknown requests.
  • Keeps low-confidence requests on staff callback.

Validation

  • WSL npm run build passed
  • Targeted voice suites passed
  • git diff --check passed

Guardrails

  • No GPT/RAG/LLM behavior added.
  • No payment capture from Press 3 general triage.
  • No Acuity mutation from Press 3.
  • No medical advice added.
  • No raw card/MMU password handling added.
  • No Press 1/Press 2/Press 4 state-machine rewrite.
  • Seven-month renewal remains separate from annual Florida/MMU state-card help.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5c912c1a3b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread api/src/routes/voice.ts Outdated
Comment on lines +1818 to +1820
if (hasPress3AfterHoursMedicalQuestion(normalizedSpeech)) return "medical_callback";
if (hasExplicitRescheduleIntent(normalizedSpeech)) return "reschedule";
if (hasExplicitCancellationIntent(normalizedSpeech)) return "cancellation";
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Prioritize explicit appointment changes before symptoms

When a Press 3 after-hours caller gives an explicit reschedule/cancellation request and includes a symptom as the reason (for example, “I need to reschedule because I have a fever” or “cancel my appointment, I’m in pain”), this first check classifies the utterance as medical_callback and never reaches the hidden reschedule/cancellation lanes below. That loses the appointment-specific request even though the same function is meant to route explicit reschedules/cancellations to staff-controlled intake; consider checking those administrative intents before the medical keyword deferral, while still deflecting truly medical questions.

Useful? React with 👍 / 👎.

@CapuchaRojo CapuchaRojo merged commit 2a32856 into main May 8, 2026
3 checks passed
@CapuchaRojo CapuchaRojo deleted the feat/press-3-after-hours-classifier branch May 8, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant