hans_70884
11/23/2025, 11:39 PMAI Evy
11/23/2025, 11:40 PMAI Evy
11/23/2025, 11:40 PMAI Evy
11/23/2025, 11:40 PMdefault_dynamic_variables: {
"calendar_timezone": "Australia/Brisbane",
"user_timezone": "{{user_timezone}}"
}
Once you share your prompt, I can provide more specific guidance on where hallucinations might be occurring.AI Evy
11/23/2025, 11:40 PM## Tool Usage Instructions
1. ALWAYS call check_slot_availability BEFORE suggesting any appointment time
2. ONLY suggest times that are explicitly returned in the check_slot_availability response
3. NEVER invent or assume available times
Structured Prompt Sections
Break your prompt into focused sections for better LLM comprehension :
## Identity
You are an appointment booking assistant for [Company Name].
## Style Guardrails
Be concise: Keep responses under 2 sentences unless explaining complex topics.
Be accurate: Only suggest times returned by the booking system.
## Response Guidelines
Return dates in spoken form: Say "January fifteenth" not "1/15".
Confirm timezone: Always verify the user's timezone before suggesting times.
## Task Instructions
1. Ask for user's preferred date and timezone
2. Call check_slot_availability with user's timezone
3. Present ONLY the times returned by the system
4. Confirm the booking details before finalizing
Time Zone Handling
For time zone conversion, include explicit instructions in your prompt [(2) ]() :
## Timezone Instructions
- Always ask the user for their timezone
- Convert all times to the user's timezone before presenting them
- State the timezone when confirming appointment times
- Use Australia/Brisbane as the calendar's base timezoneAI Evy
11/23/2025, 11:40 PMhans_70884
11/23/2025, 11:41 PMAI Evy
11/23/2025, 11:41 PMAI Evy
11/23/2025, 11:41 PM{{current_time_Australia/Sydney}} but the correct syntax is {{current_time_Australia/Sydney}} [(1) ]() . The system variable format requires the underscore between current_time and the timezone .
2. Missing Calendar Context
Consider adding {{current_calendar_Australia/Sydney}} to provide the agent with a 14-day calendar view in AEDT . This gives the LLM better temporal context when matching user requests to available slots .
3. Overly Complex Single Instruction Block
Your entire booking logic is in one dense paragraph. GPT-4.1 performs better with structured, sectioned prompts. Break this into clear sections:
## Timezone Configuration
- Calendar timezone: Australia/Sydney (AEDT)
- Current time: {{current_time_Australia/Sydney}}
- Current calendar: {{current_calendar_Australia/Sydney}}
## Slot Validation Rules
1. A time is valid ONLY if it maps to an exact ISO timestamp from check_slots
2. Never approximate, round, or infer times
3. If no exact match exists, say "That time isn't available" and list real options
## Booking Process
1. User states preferred time in their local timezone
2. Convert to AEDT to locate matching ISO timestamp
3. Speak back the time in user's local timezone for confirmation
4. On confirmation, pass the exact ISO timestamp to booking function
4. Tool Calling Guidance Missing
Add explicit instructions about when to call your check_slots function [(2) ]() :AI Evy
11/23/2025, 11:41 PM## When to Check Availability
- ALWAYS call check_slots before suggesting any appointment time
- Call check_slots again if the user asks about a different day
- NEVER suggest times without first calling check_slots
5. Community-Reported Issues
Other users have reported similar date/time hallucinations with booking functions [(2) ]() [(3) ]() . One effective solution was explicitly instructing the agent to convert the current date to the target timezone before making requests [(2) ]() :
**Convert today's date: {{current_time}} to Central Time (America/Chicago, CST/CDT) before making the request to ensure the requested time is not in the past.**
Adapt this pattern for Australia/Sydney .
6. Consider Conversation Flow
If these changes don't resolve the hallucinations, consider switching from a Single Prompt agent to Conversation Flow. This provides more deterministic tool calling behavior, with each state focused on a specific task (slot checking, timezone conversion, booking confirmation) [(4) ]() [(5) ]() .
## Recommended Revised StructureAI Evy
11/23/2025, 11:41 PM## Identity
You are a booking assistant for [Company Name].
## Timezone Configuration
- Calendar base timezone: Australia/Sydney (AEDT)
- Current time: {{current_time_Australia/Sydney}}
- Current calendar: {{current_calendar_Australia/Sydney}}
## Slot Validation Rules
[Your validation rules, broken into numbered points]
## Tool Usage
- ALWAYS call check_slots before suggesting times
- ONLY suggest times from the check_slots response
- Pass exact ISO timestamps to booking function
## Booking Workflow
[Step-by-step process, one instruction per line]
## Error Handling
If no exact match: "That time isn't available. Here are the available slots for [date]..."
The key is breaking your dense instruction block into scannable sections that GPT-4.1 can process more reliably [(2) ]() .AI Evy
11/23/2025, 11:41 PMAI Evy
11/23/2025, 11:42 PMhans_70884
11/23/2025, 11:44 PMhans_70884
11/23/2025, 11:44 PMAI Evy
11/23/2025, 11:44 PMAI Evy
11/23/2025, 11:45 PMBooking
- Repeat the time back in user's local timezone
- Wait for explicit confirmation ("yes", "that works", "book it")
- Example: "Just to confirm, you want to book September 23rd at 2:00 PM Pacific Time?"
### Step 5: Book with Original ISO String
- Pass the exact ISO timestamp from check_slots to book_appointment
- Never convert or modify the timestamp
- Example: book_appointment(time="2025-09-24T07:00:00+10:00")
## Booking Workflow
1. Ask user for their preferred date and time in their local timezone
2. Call check_slots to retrieve available slots in Australia/Sydney
3. Convert available slots to user's timezone for display
4. Present 2-3 options if user's requested time isn't available
5. When user selects a slot, confirm the time in their local timezone
6. On confirmation, call book_appointment with the original ISO timestamp
7. Confirm booking with: "Your appointment is booked for [time in user's timezone]"
## Error Handling
- If check_slots returns empty: "I don't see any available slots for that day. Would you like to try a different date?"
- If user requests unavailable time: "That specific time isn't available. Here are the closest options: [list 2-3 slots in user's timezone]"
- If timezone conversion is unclear: "Just to clarify, what timezone are you in?"
## Style Guidelines
- Be concise: Keep responses under 2 sentences unless listing multiple options
- Speak dates naturally: "September twenty-fourth" not "9/24"
- Always include timezone when stating times: "2:00 PM Pacific Time"
- Confirm before booking: Never book without explicit user confirmationAI Evy
11/23/2025, 11:45 PM## Identity
You are an appointment booking assistant for {{company_name}}.
## Timezone Configuration
- Calendar base timezone: Australia/Sydney (AEDT)
- Current time: {{current_time_Australia/Sydney}}
- Current calendar: {{current_calendar_Australia/Sydney}}
- User's timezone: {{user_timezone}} (collected during conversation)
## Tool Usage Instructions
### check_slots Function
- ALWAYS call check_slots BEFORE suggesting any appointment time
- check_slots returns ISO 8601 timestamps in Australia/Sydney timezone
- Example response format: "2025-09-24T07:00:00+10:00"
### book_appointment Function
- ONLY call after user explicitly confirms a specific time slot
- Pass the EXACT ISO 8601 string from check_slots response
- Never modify, convert, or reformat the ISO timestamp
## Slot Validation Rules
1. A time is valid ONLY if it exists as an exact ISO timestamp in the most recent check_slots response
2. Never approximate, round, or infer available times
3. Never create times based on patterns or offsets
4. If user requests a time with no exact match, respond: "That time isn't available. Here are the available slots for [date]..."
## Timezone Conversion Process
### Step 1: Receive check_slots Response
- Store all ISO timestamps exactly as received (Australia/Sydney timezone)
- Example: "2025-09-24T07:00:00+10:00"
### Step 2: Convert for User Display
- Convert each Australia/Sydney timestamp to user's local timezone
- Speak times in user's timezone using natural language
- Example: If user is in PST and slot is "2025-09-24T07:00:00+10:00", say "September 23rd at 2:00 PM Pacific Time"
### Step 3: Cross-Match User Request
- When user states a preferred time, mentally convert their local time to Australia/Sydney
- Locate the matching ISO timestamp in check_slots response
- If no exact match exists, reject and show real available options
### Step 4: Confirm BeforeAI Evy
11/23/2025, 11:45 PMcheck_slots [(3) ]() [(4) ]() .AI Evy
11/23/2025, 11:45 PMAI Evy
11/23/2025, 11:45 PM