pgits Claude commited on
Commit
5359e35
·
1 Parent(s): c7dccfd

Prohibit showing availability when requested time IS available

Browse files

JULIA'S ISSUE: Requests 9:15 AM Friday → agent shows availability list instead of booking directly

ROOT CAUSE: Agent not following "complete user info = immediate booking" instructions
- Julia provides: time, date, duration, topic, phone, format (Google Meet)
- 9:15 AM Friday IS available in Peter's calendar
- Agent should book immediately, not ask "Which time would work best?"

FIXES ADDED:
- "DO NOT show availability list if their requested time is available"
- "DO NOT ask 'Which time would work best?' when they already specified a time"
- "WHEN REQUESTED TIME IS AVAILABLE: IMMEDIATELY call create_appointment"

EXPECTED FLOW AFTER FIX:
Julia: "Friday at 9:15 am, 15 minutes, Google Meet..."
→ Agent checks 9:15 AM Friday (available)
→ Agent calls create_appointment immediately
→ Returns real booking confirmation with Google Meet link

No more unnecessary availability lists when user's requested time is free!

Bump version to 1.0.53

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (2) hide show
  1. app/core/agent.py +4 -0
  2. pyproject.toml +1 -1
app/core/agent.py CHANGED
@@ -118,6 +118,8 @@ class ChatCalAgent:
118
  - DO NOT ask "Please let me know if these details are correct"
119
  - DO NOT ask "Please confirm if this looks good"
120
  - DO NOT say "To confirm, here are the details" and wait for confirmation
 
 
121
  - IMMEDIATELY proceed to check availability and book if time is available
122
 
123
  **STOP ASKING FOR CONFIRMATIONS** - When you have complete user info and the user says "all good", "yes", "correct", "that's right", "confirmed", or confirms the details, IMMEDIATELY proceed to:
@@ -125,6 +127,8 @@ class ChatCalAgent:
125
  2. If available, call create_appointment to book it
126
  3. Do NOT ask for more confirmations
127
 
 
 
128
  **TIME SLOT SELECTION** - When you've shown available time slots and user selects a specific time (e.g., "9:15 AM", "2:00 PM"), IMMEDIATELY proceed to:
129
  1. Extract and store their time selection in user_info (this should happen automatically)
130
  2. Call create_appointment with the selected time using stored user information
 
118
  - DO NOT ask "Please let me know if these details are correct"
119
  - DO NOT ask "Please confirm if this looks good"
120
  - DO NOT say "To confirm, here are the details" and wait for confirmation
121
+ - DO NOT show availability list if their requested time is available
122
+ - DO NOT ask "Which time would work best for you?" when they already specified a time
123
  - IMMEDIATELY proceed to check availability and book if time is available
124
 
125
  **STOP ASKING FOR CONFIRMATIONS** - When you have complete user info and the user says "all good", "yes", "correct", "that's right", "confirmed", or confirms the details, IMMEDIATELY proceed to:
 
127
  2. If available, call create_appointment to book it
128
  3. Do NOT ask for more confirmations
129
 
130
+ **WHEN REQUESTED TIME IS AVAILABLE**: If user requests "Friday at 9:15 AM" and that time slot is free, do NOT show them other times. IMMEDIATELY call create_appointment with their requested time.
131
+
132
  **TIME SLOT SELECTION** - When you've shown available time slots and user selects a specific time (e.g., "9:15 AM", "2:00 PM"), IMMEDIATELY proceed to:
133
  1. Extract and store their time selection in user_info (this should happen automatically)
134
  2. Call create_appointment with the selected time using stored user information
pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
  [tool.poetry]
2
  name = "voicecal-ai"
3
- version = "1.0.52"
4
  description = "A friendly AI chatbot for booking Google Calendar appointments"
5
  authors = ["Peter <pgits.job@gmail.com>"]
6
 
 
1
  [tool.poetry]
2
  name = "voicecal-ai"
3
+ version = "1.0.53"
4
  description = "A friendly AI chatbot for booking Google Calendar appointments"
5
  authors = ["Peter <pgits.job@gmail.com>"]
6