fix: book on a plain yes, never push after a no, and always hang up - #2
Merged
Merged
Conversation
Live testing surfaced four voice agent problems: - Double confirmation: the prompt asked for "explicit agreement" before accept_slot, which the agent read as needing a second yes. A clear yes is now explicit agreement; it books immediately and never re-asks. - Pushing after a decline: the agent offered alternatives unprompted. A no is now final — decline_slot, one sentence of thanks, end. Other times come up only if the customer asks. - Unreliable hangup: end_call was instructed for both outcomes but only enforced on the decline path. The instruction now covers both, and the web client ends the session itself if the agent keeps talking after a booked or declined result. - Past times: the demo date was hardcoded to a fixed day, so offered slots were often in the past. It is now tomorrow in the shop's timezone, with the real UTC offset for that date, and a database left from an earlier demo day reseeds onto the new date. The dashboard reads the same DEMO_DATE. npm run voice:update pushes the new rules to an existing agent; superseded sentences from earlier prompt versions are stripped first so an updated agent never carries contradictory instructions. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Live testing surfaced four voice agent problems:
npm run voice:update pushes the new rules to an existing agent; superseded sentences from earlier prompt versions are stripped first so an updated agent never carries contradictory instructions.