https://retellai.com/?utm_source=discord&utm_medium=seo logo
Does post chat analysis work after the chat is clo...
# ❓・ai-evy-support
a
@AI Evy Does post chat analysis work after the chat is close or any other way
a
Thanks for tagging me @akshat_9728. I'll look through relevant sources and get back to you shortly.
### Answer Post chat analysis in Retell AI is available after the chat has ended. The analysis includes sentiment, status, summary, and any custom-defined data to extract. This data is provided in the chat_analysis object and is only available after the chat ends. You can also subscribe to the chat_analyzed webhook event type to receive the analysis once it is ready [(1) ]() [(2) ]() .
​ To learn more, see the sources I considered: [[1] Get Chat](https://docs.retellai.com/api-references/get-chat) [[2] Create Outbound SMS](https://docs.retellai.com/api-references/create-sms-chat) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy when using multi prompt agent do we need to mention in prompt or prompt tree that when it should transition to next or previous phase or it understand itself no need to mention
a
Thanks for the follow-up, @akshat_9728. I'll get back to you soon.
### Answer When using a multi-prompt agent in Retell AI, you need to define explicit transition logic for moving between phases or states. This is typically set up in the prompt tree, where each state has clear conditions for moving to the next or previous state. The agent will not automatically understand when to transition without these instructions. You should specify in each state's configuration when and how the transition should occur, using transition logic and conditions to direct the flow [(1) ]() [(2) ]() .
​ 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) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy Can it move to previous phase also
a
Thanks for the follow-up, @akshat_9728. I'll get back to you soon.
### Answer Yes, in a multi-prompt agent in Retell AI, transitions between phases (states) are controlled by explicit transition logic. You can configure the transition conditions for each state, including moving to a previous phase, by specifying the appropriate logic in the prompt tree or within each state's configuration. The agent will only move to a previous phase if you define a transition condition that directs it to do so [(1) ]() [(2) ]() [(3) ]() [(4) ]() .
​ 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] Build a multi-prompt agent](https://docs.retellai.com/build/single-multi-prompt/write-multi-prompt) [[3] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[4] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.