Edit an existing agent
Open Edit prompt tree on the agent detail page to edit its states. You can also configure states through the Retell LLM API.Configure LLM states
State name
Give each state a unique name, such asinformation_collection. Names can contain letters, digits, underscores, and dashes, with a maximum length of 64 characters and no spaces.
State prompt
The model receives the general prompt followed by the current state’s prompt. Put instructions that apply throughout the call in the general prompt and the current task’s instructions in the state prompt. Apply the general prompting principles to both.Tools
The model has access to both general tools and the current state’s tools. Keep tools used throughout the call, such asend_call, in general tools. Put tools needed only for a particular task, such as book_appointment, in that state’s tools.
Describe when to call a tool in the prompt. For example:
State transitions
Define edges for the states the agent can transition to. Because each edge is implemented as a tool call, describe when to take it in the state prompt. For example:parameters can carry information into later states as dynamic variables. For example, this parameter schema carries the caller’s name:
{{user_name}}.

