### Answer
Based on the available sources, the Extract Dynamic Variables tool works in both single and multi-prompt agents. [(1) ](
) The documentation states that this tool "lets you extract values from a user's response and save them as dynamic variables" and explicitly notes it works "in both single, multi and conversation flow agent." [(2) ](
)
If you're experiencing issues with variable extraction in a single-prompt chat agent specifically, this may be a technical issue rather than a limitation of the agent type. One known issue from community discussions shows that dynamic variables may not populate correctly during chat-only test mode in multi-prompt agents, [(3) ](
) though they work properly during voice testing.
To use the Extract Dynamic Variables tool: [(1) ](
)
1. Add an Extract Dynamic Variable Tool to your agent
2. Add variables with a name, description, and type (Text, Number, Enum, or Boolean)
3. Update your prompt to explicitly instruct when to invoke the extraction function
For example, you can include in your prompt: "When user states his name and phone number, please extract the information by calling the
extract_user_details
function."
If you're still experiencing issues with variable extraction in your single-prompt chat agent, I'd recommend reaching out through [Contact Sales](
) or [
) for specific troubleshooting assistance.