prism_09
08/05/2025, 1:48 PMAI Evy
08/05/2025, 1:48 PMAI Evy
08/05/2025, 1:49 PM7. Ask if user is interested in an in person tour.
- if yes, transition to schedule_tour.
- if no or hesitant, call function end_call to hang up politely and say will reach out if any other interesting properties pop up.
3. **Update the Prompt**: Enhance the agent's understanding by incorporating the end call conditions into the prompt [(1) ]() . Include specific instructions such as: "If the user says 'thank you', 'goodbye', or 'bye', use the end_call tool to terminate the conversation" .
You can also define when to call the function within your state logic [(2) ]() :
3. Confirm the date, time, and timezone selected by user: "Just to confirm, you want to book the appointment at ...". Make sure this is a time from the available slots.
4. Once confirmed, call function book_appointment to book the appointment.
By default, the agent won't end the call automatically, so you'll need to configure these termination conditions to control when and how the call should be terminated [(1) ]() .AI Evy
08/05/2025, 1:49 PMAI Evy
08/05/2025, 1:49 PM