Variables let your Orbit AI agent remember something the caller said, such as their name or a callback number, and use it later in the call or in a text message. New to Orbit AI? Start with Orbit AI: Getting Started with AI Voice Agents.

How variables work

  • A variable is a named box that holds one piece of information, such as customer_name.
  • Variables don't fill themselves. An Ask step (or an Action such as Book Appointment) has to save a value into them first.
  • You use a variable by putting its name in curly braces, for example {customer_name}.
  • Variables can be used in Say, Ask, Confirm and Send SMS steps.

Example: thank the caller by name in a text

  1. Add an Ask step and enter the question "What is your name?"
  2. Under Save answer to variable, type customer_name and choose Text. Click Apply Changes.
  3. Connect the Ask step's success path to a Send SMS action and set who it goes to.
  4. In the SMS message, enter: Thank you, {customer_name}. We have received your request.
  5. Test the path with a sample call and check the text you receive.

Variable types

TypeUse it forExample names
TextNames, email addresses, account numbers, free-form answerscaller_email, account_number, reason
NumberQuantitiesparty_size
Phone numberA contact numbercallback_number
DateA requested dateapproximate_date
TimeA requested timepreferred_time
Yes / NoA yes or no answercallback_requested

Tip: keep values such as account numbers or ZIP codes as Text so leading zeros and dashes aren't lost.

Built-in and common variables

VariableWhere it comes fromExample
{agent_name}Agent Settings"Hello, I'm {agent_name}."
{company_name}Agent Settings"Thank you for calling {company_name}."
{name}Ask step, or the booking steps"Thank you, {name}."
{callback_number}Ask step (phone number)"Callback: {callback_number}."
{message}Ask step when taking a message"Message: {message}."
{booking_reference}Book Appointment (after success)"Confirmation code: {booking_reference}."
{appointment_date}Book or Cancel Appointment (after success)"Appointment date: {appointment_date}."
{appointment_time}Book or Cancel Appointment (after success)"Appointment time: {appointment_time}."

Some messages have their own special placeholders that only work in that one place, for example {answer} in an FAQ Answer response and {inventory_summary} in a Search Vehicle Inventory response.

Rules and tips

  • Names: use letters, numbers and underscores, start with a letter, and spell a name the same way every time.
  • One name per piece of information. If you reuse a name, the newest answer replaces the old one.
  • Don't use agent_name or company_name to store caller answers. They're reserved for Agent Settings.
  • A variable only exists on the path where it was collected. If the caller took a different branch (or an error path), the value may be empty.
  • Text messages can include text and number variables only. Yes / No answers aren't inserted, so use separate messages for each outcome instead.
  • An empty or misspelled variable can stop a text from sending. Always connect the Send SMS error path and test every route.
  • After changing a flow or template, check that every variable you use is still collected before it's needed.

Need help?

Cloud Service Networks can build or adjust your agent for you. Call Support at 919-763-1205 or submit a ticket.