Skip to main content

Documentation Index

Fetch the complete documentation index at: https://documentation.uponai.com/llms.txt

Use this file to discover all available pages before exploring further.

Overview

The Extract Dynamic Variables tool lets your agent capture specific pieces of information a caller provides — like their name, phone number, or appointment preference — and store them as variables that can be referenced throughout the rest of the call.

Setup

1

Add the tool

In your agent’s Functions section, select Extract Dynamic Variable from the dropdown.
2

Define each variable

For each variable you want to capture, provide:
FieldDescription
Reference nameThe variable name used to reference it later (e.g. user_name)
DescriptionWhat this value represents
Data typeOne of: Text, Number, Enum, Boolean
Enum optionsRequired if type is Enum (e.g. "Yes", "No", "Maybe")
3

Update your prompt

Tell the agent when to extract the information:
When the user states their name and phone number, extract the information by calling the extract_user_details function.

Supported Data Types

TypeExample values
Text"John Smith", "headache"
Number42, 98.6
Enum"Yes", "No", "Maybe"
Booleantrue, false

Using Extracted Variables

Once captured, reference variables anywhere in your conversation using {{variable_name}} syntax — in prompts, function parameters, SMS messages, and more.