Anthony
03/30/2026, 2:54 PMAI Evy
03/30/2026, 2:54 PMAI Evy
03/30/2026, 2:54 PMWhen a user mentions any course name or asks about course information, you MUST call the get_course_schedule tool before responding. Always verify course details by calling the tool, even if you think you know the answer.
2. Use structured prompts with a dedicated section for tool usage:
Break your prompt into sections following best practices. Add a "Tool Usage Guidelines" section:
## Tool Usage Guidelines
- ALWAYS call get_course_schedule when a course name is mentioned
- Call the tool BEFORE providing any course-specific information
- If unsure whether something is a course name, call the tool to verifyAI Evy
03/30/2026, 2:54 PMAI Evy
03/30/2026, 2:54 PMAI Evy
03/30/2026, 2:54 PMAnthony
03/30/2026, 2:56 PMAI Evy
03/30/2026, 2:56 PMAI Evy
03/30/2026, 2:56 PMAI Evy
03/30/2026, 2:56 PMAI Evy
03/30/2026, 2:56 PMAI Evy
03/30/2026, 2:56 PMAnthony
03/30/2026, 3:11 PMAnthony
03/30/2026, 3:12 PMAI Evy
03/30/2026, 3:12 PMAI Evy
03/30/2026, 3:13 PM## Tool Usage Instructions
1. When a user asks about a course:
- FIRST: Call the GetCourseSchedule tool with the course name the user mentioned
- SECOND: Evaluate the tool result
2. After calling GetCourseSchedule:
- If the tool returns an EXACT match: Proceed to provide course information
- If the tool returns a FUZZY match or suggested alternative:
* DO NOT provide course information yet
* Ask the user: "I don't see [user's course name] in my list. Did you mean [matched course name]?"
* WAIT for user confirmation
- If the tool returns NO match: Tell the user you cannot find that course
3. Only provide course details AFTER:
- An exact match was found, OR
- The user has confirmed the suggested course nameAI Evy
03/30/2026, 3:13 PM## Confirmation Examples
Example 1 - Fuzzy Match:
User: "When is the next LEMS 3 class?"
Agent: "I don't see a class called 'LEMS 3' in my schedule. Did you mean 'Lymph 3'?"
User: "Yes, that one"
Agent: [NOW provide Lymph 3 information]
Example 2 - Multiple Matches:
User: "Tell me about Esalen"
Agent: "I have several Esalen courses: 'Esalen Massage' and 'Intro to Esalen'. Which one are you interested in?"
User: "The intro one"
Agent: [NOW provide Intro to Esalen information]
Example 3 - Exact Match:
User: "When is Lymph 3?"
Agent: [Directly provide Lymph 3 information since it's an exact match]
5. Use stricter language in your instructions
Replace "confirm with the user if you're correct" with more explicit directives :
CRITICAL: You MUST NOT provide course details until:
- The course name is an exact match, OR
- You have asked "Did you mean [course name]?" AND the user has replied affirmatively
If you provide course information without confirmation on a fuzzy match, you have failed your task.AI Evy
03/30/2026, 3:13 PMAI Evy
03/30/2026, 3:13 PMAI Evy
03/30/2026, 3:13 PMAnthony
03/30/2026, 3:16 PMAI Evy
03/30/2026, 3:16 PMAI Evy
03/30/2026, 3:16 PMjavascript
// Example: Add phonetic aliases for course names
const phoneticAliases = {
"SLM": "Esalen",
"esalen": "Esalen",
"eslm": "Esalen"
// Add more phonetic variations
};
const userInput = dv.course_name.toLowerCase() ;
const matchedCourse = phoneticAliases[userInput] || userInput;
return { matched_course: matchedCourse };
3. Provide explicit phonetic examples in your prompt
Add common phonetic mishearings to your prompt instructions to help the LLM recognize patterns [(3) ]() :
## Common Course Name Variations
- "SLM" or "eslm" → Ask: "Did you mean Esalen?"
- "LEMS" → Ask: "Did you mean Lymph?"
- [Add other common mishearings]
4. Adjust your confirmation strategy
Instead of relying solely on fuzzy matching after transcription, structure your prompt to proactively offer clarification when confidence is low :AI Evy
03/30/2026, 3:16 PMWhen a course name seems unclear or abbreviated:
- Offer the 2-3 most phonetically similar course names
- Ask: "I heard [what was transcribed]. Did you mean [Option 1], [Option 2], or something else?"
The root issue appears to be ASR transcription quality rather than the matching algorithm itself. Boosted Keywords is your best first step to improve how "Esalen" is heard and transcribed [(1) ]() .AI Evy
03/30/2026, 3:16 PMAI Evy
03/30/2026, 3:16 PM