firefly_0206
02/26/2025, 5:37 AMfirefly_0206
02/26/2025, 5:37 AMKyle
02/26/2025, 5:44 PMexamples
Enhance the prompt to include context persistence:
const CONTEXT_MANAGEMENT = `
[Context Management]
- Maintain a running list of collected information
- On interruption, store current progress
- After handling interruption, explicitly return to last incomplete item
- Before ending call, verify all required information is collected
- Only trigger endCall after either:
a) All information is collected and functionsEnquiry is called
b) Customer explicitly ends conversation
c) Error condition requires termination
`;
Add state tracking to the assistant's prompt:
const STATE_TRACKING = `
[Information Tracking]
Required Fields:
1. numberOfGuests: [STATUS]
2. firstName: [STATUS]
3. lastName: [STATUS]
4. email: [STATUS]
5. phoneNumber: [STATUS]
6. functionDate: [STATUS]
7. catering: [STATUS]
8. budget: [STATUS]
9. specialRequests: [STATUS]
On interruption:
1. Save current state
2. Handle interruption
3. Return to last incomplete field
4. Confirm remaining information before ending call
`;
\`\`\`
it's more of prompting task with different approaches trial and error but I will try to implement few by myself so adding your ticket in my investigation list.firefly_0206
02/27/2025, 4:12 AMTim Tran
02/27/2025, 6:36 PMfirefly_0206
02/28/2025, 3:53 AMShubham Bajaj
03/03/2025, 2:04 AMfirefly_0206
03/11/2025, 4:06 AM