Five9 LabA student's open lab: learning and sharing, free for everyone.

IVR

Variables, lookup, and query

The module vocabulary, branches, Skill Transfer, queries, and visual framing.

Learn it in 5 minutes

IVR scripts ยท advanced ยท 12 min full read

Set Variable writes a value. Lookup Contact Record reads the contact. Query calls out, and the published example is an XML web service POST whose response groups are mapped with regular expressions into variables. That example uses script variables, not call variables, because the caller is not connected to an agent.

Call variables are a different object, used when you need reporting later. Enabling them does not backfill history. A Query result you never store in a reporting call variable will not appear in a historical call log.

ZIP in, weather outDigitsInput stores ZIP.CallerPOSTThe module posts to theservice.QueryMapA grouped regex fillsvariables.QueryTTSThe answer is spoken.PlayKeepScript variables diewith the script's needs.ScriptMissNothing was marked as areporting call variable.Report

The example is careful about this.

Worked example

Trace a ZIP

In the builder, place Input then Query then Play and name the variable.

  1. Name ZIP
  2. Say the variable is a script variable
  3. Say what you would enable if reports must show it

You did not assume history backfills.

The example's HTTP style is
Why script variables in that example?
Regex groups in the response
Reporting call variables apply to
Lookup Contact Record is

Sources and go deeper

Ecosystem

Glossary. User profile: The permission template for a person. Not a campaign profile. Planning your implementation

Sister technologies. CRM SDK. Bring-your-own CRM when no named adapter exists. APIs and SDKs

Config. In the builder, place Input then Query then Play and name the variable.

Troubleshooting. The variable was enabled today. Report from the enable date forward.

Cross-platform bridge. A mapping to another PBX or contact center is a teaching bridge. It is not an import button.

Future hook. The guide's cloud endpoint stays unset. Confirm before relying on a dated catalog or a case-study number.

Back to IVR scripts