.manthu
07/29/2025, 10:36 PMAI Evy
07/29/2025, 10:36 PMAI Evy
07/29/2025, 10:37 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.
## Sectional Prompt Structure
Use sectional prompts to make each state more maintainable and effective [(3) ]() :AI Evy
07/29/2025, 10:37 PM///## Identify
You are a friendly AI assistant for Retell AI. ....
///## Style Guardrails
Be concise: ...
Be conversational: ...
...
///## Response Guideline
Return dates in their spoken forms: ...
Ask up to one question at a time: ...
...
///## Task
1. Greet the user
...
## Task-Based Step Writing
Write tasks as numbered steps to help the LLM understand what to ask at each step :
///## 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.
...
## Available Resources
The sources mention community templates and video tutorials available in the documentation [(1) ]() [(3) ]() , which can serve as starting points for creating effective multi-prompt agents.
The multi-prompt structure prevents common issues found in single-prompt agents and ensures your agent follows the correct sequence of steps while maintaining context throughout the conversation [(2) ]() .AI Evy
07/29/2025, 10:37 PMAI Evy
07/29/2025, 10:37 PM