https://retellai.com/?utm_source=discord&utm_medium=seo logo
My agent conducts interviews; how can I instruct i...
# ❓・ai-evy-support
i
@AI Evy My agent conducts interviews; how can I instruct it to ask all of the questions properly? In my test, it skipped most of the questions and asked one twice
a
Thanks for tagging me @itserikwolf. I'll look through relevant sources and get back to you shortly.
### Answer To instruct your Retell AI agent to ask all interview questions properly and in sequence, structure your prompts with explicit instructions to “wait for user response” after each question. For example: 1. Ask the first question. wait for user response 2. Ask the second question. wait for user response 3. Continue for each question. This approach is recommended to ensure the agent pauses for answers and does not skip or repeat questions. If your agent is still skipping questions or repeating them after following this structure, it may not be a prompt issue—some users have reported similar behavior and were advised to check their prompt instructions and, if needed, contact support for further troubleshooting [(1) ]() .
​ To learn more, see the sources I considered: [[1] Agent not waiting in between statements/questions despite pauses in prompt](https://discord.com/channels/1186424376300679209/1409973649221619812) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy OK. I'm also a little confused about the difference between what goes in the main prompt and what goes in the prompt tree. Does one take precendent over the other? Feels like I'm putting things in twice.
a
Thanks for the follow-up, @itserikwolf. I'll get back to you soon.
### Answer In Retell AI, the main prompt (sometimes called the general or global prompt) sets the overall behavior, tone, and context for the agent, applying across all conversation states or nodes. The prompt tree (or multi-prompt structure) organizes the conversation into states or nodes, each with its own focused prompt and logic for that specific phase. The agent combines the main/global prompt with the state/node-specific prompt to generate responses. The main/global prompt provides broad instructions, while the prompt in each node or state gives detailed guidance for that part of the conversation [(1) ]() [(2) ]() [(3) ]() [(4) ]() [(5) ]() . If you feel like you're repeating yourself, make sure the main/global prompt only includes instructions that should apply everywhere, and keep state/node prompts focused on what is unique to that part of the flow. The state/node prompt does not override the global prompt; instead, both are used together for that state [(3) ]() [(4) ]() [(5) ]() .
​ To learn more, see the sources I considered: [[1] Single/Multi Prompt Agent Overview](https://docs.retellai.com/build/single-multi-prompt/prompt-overview) [[2] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[3] Create Retell LLM](https://docs.retellai.com/api-references/create-retell-llm) [[4] Update Conversation Flow](https://docs.retellai.com/api-references/update-conversation-flow) [[5] Prompt Engineering Guide](https://docs.retellai.com/build/prompt-engineering-guide) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
OK, @AI Evy here's my process. The agent asks 4 questions which should be mostly the same for every user. The 4th question triggers either a signle followup question or 3 follow-up questions based on the answer. Then the final 11 questions are pretty consistent. How many states should I have in my tree? Should there be one for every question or one for each of the major blocks of questions I described?
a
Thanks for the follow-up, @itserikwolf. I'll get back to you soon.
### Answer For your scenario, you do not need a separate state for every single question. Retell AI’s multi-prompt or conversation flow structure is designed to group related questions or logic into states, each with its own focused prompt and transition logic. The documentation recommends organizing your flow so that each state covers a logical "block" or phase of the interview, not every individual question [(1) ]() [(2) ]() [(3) ]() . In your case, you might set up: - One state for the initial 4 questions, - A branching state after the 4th question (to handle either the single follow-up or the 3 follow-up questions based on the answer) , - One state for the final 11 consistent questions. This approach keeps your flow maintainable and leverages the benefits of state separation: clearer logic, easier debugging, and more predictable agent behavior [(1) ]() [(2) ]() . Only split into more granular states if you have complex branching or different logic per question that truly requires it.
​ To learn more, see the sources I considered: [[1] Single/Multi Prompt Agent Overview](https://docs.retellai.com/build/single-multi-prompt/prompt-overview) [[2] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[3] Inside Retell AI | The Conversational AI Platform Behind Scalable AI Phone Systems | Retell AI](https://www.retellai.com/blog/inside-retell-ai-conversational-ai-phone-system) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
OK, great, thanks. Last question @AI Evy , what is the best way to write the instructions in the "Edge" bubbles?
a
Thanks for the follow-up, @itserikwolf. I'll get back to you soon.
### Answer In Retell AI conversation flows, the "Edge" bubbles define the transitions between nodes (states) based on specific conditions. The best way to write instructions for an edge is to clearly specify the transition condition that should trigger moving from one node to the next. For example, you can use a prompt-based condition like:
Copy code
json
"edges": [
  {
    "id": "edge_1",
    "transition_condition": {
      "type": "prompt",
      "prompt": "Customer wants to book appointment"
    },
    "destination_node_id": "book_appointment"
  }
]
This means that if the user's input matches the transition prompt ("Customer wants to book appointment") , the flow will move to the "book_appointment" node. Write your edge conditions to clearly express the user intent or answer that should trigger the next step. This keeps transitions predictable and the flow easy to debug [(1) ]() , [(2) ]() , [(3) ]() , [(4) ]() , [(5) ]() .
​ To learn more, see the sources I considered: [[1] Get Conversation Flow](https://docs.retellai.com/api-references/get-conversation-flow) [[2] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[3] List Conversation Flows](https://docs.retellai.com/api-references/list-conversation-flows) [[4] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[5] Update Conversation Flow](https://docs.retellai.com/api-references/update-conversation-flow) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy there is a question in my sequence that is "What was your role in the decision-making process? And who else was involved?" I want one state to cover the scenario where the interviewee was the sole decision-maker and one to cover if it was a group decision based on the interviewee's response. How would I instruct the Edge bubbles for that?
a
Thanks for the follow-up, @itserikwolf. I'll get back to you soon.
### Answer To handle this branching in Retell AI, create two edges from your node, each with a clear prompt-based transition condition reflecting the user's answer. For example: - For the sole decision-maker path, use a prompt like: - "User indicates they were the sole decision-maker" - For the group decision path, use a prompt like: - "User mentions others were involved in the decision" Set each edge’s transition condition to match these expected responses. This ensures the agent routes to the correct next state based on whether the interviewee acted alone or as part of a group. Write these prompts in the edge bubbles so they clearly express the user intent that triggers each path [(1) ]() .
​ To learn more, see the sources I considered: [[1] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.