Feat/press 3 after hours classifier#41
Conversation
There was a problem hiding this comment.
💡 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".
| if (hasPress3AfterHoursMedicalQuestion(normalizedSpeech)) return "medical_callback"; | ||
| if (hasExplicitRescheduleIntent(normalizedSpeech)) return "reschedule"; | ||
| if (hasExplicitCancellationIntent(normalizedSpeech)) return "cancellation"; |
There was a problem hiding this comment.
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 👍 / 👎.
🚀 VetCan Pull Request
Summary
Adds deterministic after-hours Press 3 routing for known operational intents.
This PR:
Validation
npm run buildpassedgit diff --checkpassedGuardrails