https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> Being more effective on mul...
# ❓・ai-evy-support
u
@AI Evy Being more effective on multi prompt agents Hey I had a question is their some ressources that can be coupled with ai in order to be more efficient to create the prompts for each agent state
a
Thanks for tagging me @.manthu. I'll look through relevant sources and get back to you shortly.
### Answer The sources provide several techniques for creating effective multi-prompt agents in Retell AI: ## Structured Approach to Multi-Prompt Creation For multi-prompt agents, break down your conversation into distinct steps where each step has its own specific prompt [(1) ]() . The multi-prompt approach allows you to create a structured tree of prompts where each node contains its own specific prompt, custom function calling instructions, and clear transition logic to other nodes [(2) ]() . ## Best Practices for State Design When creating prompts for each agent state, use these proven techniques [(1) ]() : 1. Define clear state transition logic - Include specific conditions for when to move between states 2. Define when to call functions - Specify exactly when the agent should execute particular actions 3. Break conversations into logical steps - Each state should handle a specific part of the conversation flow For example, you can structure transitions like this :
Copy code
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.
## Sectional Prompt Structure Use sectional prompts to make each state more maintainable and effective [(3) ]() :
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
...
## Task-Based Step Writing Write tasks as numbered steps to help the LLM understand what to ask at each step :
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.
...
## 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) ]() .
​ To learn more, see the sources I considered: [[1] Build a multi-prompt agent](https://docs.retellai.com/build/single-multi-prompt/write-multi-prompt) [[2] Prompt Overview](https://docs.retellai.com/build/single-multi-prompt/prompt-overview) [[3] Write a single prompt](https://docs.retellai.com/build/single-multi-prompt/write-single-prompt) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.