https://retellai.com/?utm_source=discord&utm_medium=seo logo
in a multi prompt agent, do all states require edg...
# ❓・ai-evy-support
j
@AI Evy in a multi prompt agent, do all states require edges? For example, could I have a state called "rating" that does not have any edges but I clearly state in the global prompt and in the state prompts to call the "rating" function before ending the call?
a
Thanks for tagging me @joemiller88. I'll look through relevant sources and get back to you shortly.
### Answer No, not all states require edges in a multi-prompt agent [(1) ]() . States can exist without edges, which would make them terminal states that don't transition to other states [(2) ]() . In your "rating" state example, you could have a state with no edges that calls the rating function and then uses an end_call function to terminate the conversation . The multi-prompt structure allows each state to have its own focused prompt and state-specific functions [(1) ]() . According to the API documentation, each state can include tools (functions) that are specific to that state [(2) ]() . You can define functions both at the agent level and at individual state levels, with state functions being limited to that specific state [(3) ]() . For better reliability with function calling, you might want to use clear, directive language in your prompts and give functions descriptive names with identifiers [(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] Create Retell LLM](https://docs.retellai.com/api-references/create-retell-llm) [[3] Discord message from @_superwhale on 2025-01-24](https://discord.com/channels/1186424376300679209/1294891368505937952/1332171997744205925) [[4] Multi prompt agent not always transitioning to the next state](https://discord.com/channels/1186424376300679209/1303504848196472893) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.