# Variables, lookup, and query · Worked example

- In the builder, place Input then Query then Play and name the variable.
- Name ZIP
- Say the variable is a script variable
- Say what you would enable if reports must show it
- You did not assume history backfills.

## Sources and go deeper

- [XML web service IVR example](https://documentation.five9.com/bundle/ivr-admin/page/ivr-admin/examples/creating-ivr-script-xml-web-service-query.htm). vendor. last checked 2026-10.
- [IVR modules](https://documentation.five9.com/bundle/ivr-admin/page/ivr-admin/modules/_ch-modules.htm). vendor. last checked 2026-10.
- [Call variables for reporting](https://community.five9.com/s/article/Administrator-Enabling-Call-Variables-for-Reporting?language=en_US). community. last checked 2026-10.
- [Interactive voice response](https://en.wikipedia.org/wiki/Interactive_voice_response). wikipedia. last checked 2026-10.
