https://retellai.com/?utm_source=discord&utm_medium=seo logo
What format should i structure my prompt in retel ...
# ❓・ai-evy-support
j
@AI Evy What format should i structure my prompt in retel ai single prompt agent
a
Thanks for tagging me @joesturdy. I'll look through relevant sources and get back to you shortly.
### Answer For structuring your single prompt agent in Retell AI, use a sectional approach to break down your system prompt into focused sections [(1) ]() . Here's the recommended format structure :
Copy code
///## 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
...
When defining tasks, write them as numbered steps to help the LLM understand the procedure :
Copy code
///## 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.
...
If you need more explicit control over conversation flow, add "wait for user response" instructions :
Copy code
///## 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
...
This sectional approach makes your prompts reusable, easier to maintain, and easier for the LLM to understand . However, keep in mind that single prompt agents may start to hallucinate or deviate from instructions as complexity increases, which is why Retell AI recommends using multi-prompt approaches for more sophisticated agents [(2) ]() .
​ To learn more, see the sources I considered: [[1] Write a single prompt](https://docs.retellai.com/build/single-multi-prompt/write-single-prompt) [[2] Prompt Overview](https://docs.retellai.com/build/single-multi-prompt/prompt-overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.