luckyshark1012
12/16/2024, 9:30 AMAI Evy
12/16/2024, 9:30 AMAI Evy
12/16/2024, 9:30 AM7. 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.
[(4)]()
The multi-prompt approach helps prevent common issues found in single-prompt agents, such as premature actions before completing required steps [(1)]() . It's especially recommended for scenarios where the agent's prompt is lengthy and tasks are too complex for a single input [(2)]() .
For implementation, Retell provides:
- A dashboard with drag-and-drop functionality for creating multi-prompt agents
- API support for programmatic agent creation
- GPT 3.5 and 4 as the underlying LLM options [(5)]()AI Evy
12/16/2024, 9:30 AMluckyshark1012
12/16/2024, 9:33 AMAI Evy
12/16/2024, 9:33 AMAI Evy
12/16/2024, 9:33 AM## Task
1. Ask for user's name.
2. Ask if user needs a refund, need a replacement, or just retriving information.
- if user needs a refund, transition to refund state.
- if user needs a replacement, transition to replacement state.
3. If user is just retriving information, ask for the order number.
...
[(1)]()
For cases where you want to be more explicit about waiting for user responses:
## Task
1. Inform user why you are calling.
2. Ask for user's name.
wait for user response
3. Ask if user needs a refund, need a replacement, or just retriving information.
wait for user response
- if user needs a refund, transition to refund state.
- if user needs a replacement, transition to replacement state.
4. Ask for the order number.
wait for user response
...
The key difference is that multi-prompt allows you to break these steps into separate states with their own prompts and transition logic, while single prompt keeps everything in one comprehensive prompt [(2)]() .AI Evy
12/16/2024, 9:33 AMluckyshark1012
12/16/2024, 9:40 AMAI Evy
12/16/2024, 9:40 AMAI Evy
12/16/2024, 9:40 AM3. 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.
[(1)]()
For state transitions:
7. 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.
The multi-prompt approach allows you to break down conversations into distinct steps, with each state having its own specific prompt and transition logic [(2)]() . For example, a lead qualification template might have two distinct states:
1. Lead Qualification: Gather and verify required information
2. Appointment Scheduling: Book appointment after qualification
Each state can have its own transition rules, and states can have multiple parent states transitioning to the same child state [(3)]() . The transition logic is better written within the states themselves, using phrases like "when xxx, go to state c" [(4)]() .
This structured approach helps prevent issues like premature appointment booking before completing the qualification process [(2)]() .AI Evy
12/16/2024, 9:40 AM