{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":2909,"path":"application-development/ui-builder/use-case-data-binding-generation.md","title":null,"bundle":null,"doc_type":null,"release":null,"body":"---\ntitle: Use case: Generate a data binding and formula\ndescription: Automate data binding configuration without memorizing formula syntax.\nlocale: en-US\ncanonical_url: https://www.servicenow.com/docs/r/australia/application-development/ui-builder/use-case-data-binding-generation.html\nrelease: australia\nproduct: UI Builder\nclassification: ui-builder\ntopic_type: concept\nlast_updated: \"2026-10-09\"\nreading_time_minutes: 2\nbreadcrumb: [Use case, Use, UI generation, UI Builder, Builder library, Developing your application, Building applications]\n---\n\n# Use case: Generate a data binding and formula\n\nAutomate data binding configuration without memorizing formula syntax.\n\n## Scenario\n\nA developer at a healthcare organization is creating a self-service patient intake portal using UI Builder. The portal features a form that shows dynamic labels based on whether the user is viewing a standard page or a simplified \"bare\" page layout. The developer needs to configure a label component that changes its text accordingly. Additionally, the developer wants to display the total number of active intake requests submitted that day.\n\n## Problem\n\nThe developer is not familiar with UI Builder’s formula syntax. Writing expressions like IF\\(@context.props.bare,\"bare page\",\"not bare page\"\\) or LEN\\(\\[list\\]\\) requires memorizing the exact syntax, which slows down development and increases the risk of errors. Every time the developer encounters a new binding requirement, they have to look up documentation or ask a colleague.\n\n## Solution\n\nWith Data binding generation, the developer describes what they need in plain language directly in the Formula Builder. ServiceNow Otto converts the natural language input into the correct formula or data binding syntax automatically. The developer reviews the generated syntax, accepts it, and applies it to the component property in one streamlined flow — without writing a single line of formula code manually.\n\n## Before you begin\n\nMake sure that you install UI generation and that you have the ui\\_builder\\_admin role. For more information, see [Install UI generation](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/ui-builder/install-ui-generation.md) and [Grant UI Builder admin role](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/ui-builder/grant-ui-builder-admin-role.md).\n\n## Configuration steps\n\nPerform the following steps to use Data binding generation:\n\n1.  Navigate to **All** &gt; **Now Experience Framework** &gt; **UI Builder**.\n2.  Navigate to the patient intake experience.\n3.  Open the page variant in the Page Editor.\n4.  Select the label component and open the Data binding popover.\n5.  Select **Get started**.\n6.  Enter the prompt: `If the page is bare, show ‘Simplified View’; otherwise, show ‘Standard View’.`\n\n    **Tip:** Refer to the examples in the Data Binding popover to understand which types of natural language prompts are most effective. Prompts that clearly describe the condition and possible outcomes typically yield the most accurate results.\n\n7.  Select the arrow to generate the binding.\n\n    ServiceNow Otto generates: `IF(@context.props.bare,\"Simplified View\",\"Standard View\")`.\n\n8.  Review the syntax, select **Accept and Edit**, then select **Apply**.\n9.  Enter a prompt to request count label: `Enter how many active intake requests are there today?`\n\n    ServiceNow Otto generates: `LEN([@data.activeIntakeRequests])`.\n\n10. Preview and test the page to confirm both bindings render correctly.\n\n## Outcome\n\nThe developer sets up a dynamic binding quickly, without referring to the documentation. This eliminates syntax errors, enabling the developer to focus on experience design rather than writing formulas.\n\n**Parent Topic:**[UI Generation use cases](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/ui-builder/ui-generation-use-cases.md)\n\n**Related topics**  \n\n\n[Data binding generation](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/ui-builder/concept-data-binding-generation.md)\n\n[Generate a data binding and formula](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/ui-builder/generate-data-bindings-and-formulas.md)\n\n[Natural language synonyms for formula operators](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/ui-builder/natural-language-synonyms-for-formula-operators.md)\n\n"}}