Generate a data binding and formula
Automatically generate a data binding and formula using natural language with correct syntax.
Before you begin
- Install UI Generation application (28.1 – Zurich or later). For more information, see Install UI generation.
Make sure that you have the ui_builder_admin role. For more information, see Grant UI Builder admin role.
Navigate to All > Now Assist Admin > Creator and activate the Data Binding Generation skill.
- Select a large language model (LLM) provider.
Role required: ui_builder_admin
About this task
Learn to use Data Binding Generation in ServiceNow® UI Builder with Now Assist to automatically generate bindings and formulas. These bindings can be applied to any component property, such as labels, text, lists, or buttons, and can include logic, calculations, or data transformations.
Procedure
Open UI Builder.
Create an experience or open an existing one.
For more information, see Create an experience for UI Builder.
Create a page or open an existing one.
For more information, see Create a page in UI Builder.
Create a page variant or open an existing one.
For more information, see Create a page variant.
Open the Page Editor.
Add a data resource or open an existing one.
For more information, see Add and configure data resources to a page.
From the Data Binding popover, select Get started.
A data binding panel in ServiceNow UI Builder, allowing users to generate and preview formulas or data outputs for page components using natural language prompts.
You can enter your prompt using natural language or select one from the examples.
Note: For example:
- Instead of writing
IF(@context.propers.bare,"bare page","not bare page"), you can enterIf the page is bare, show 'bare page'; otherwise, show 'not bare page’. - Instead of
LEN([1,2,3]), "), you can enterHow many items are in this list?
- Instead of writing
A data binding panel in ServiceNow UI Builder, where users enter natural language prompts to generate formulas, preview results, and bind data to page components.
Select the arrow to generate a binding or formula.
Review the syntax and output.
Select Accept and Edit.
A data binding panel in UI Builder, where users create a formula for a welcome message, preview formula, and have options to accept, edit, or reject it.
Apply or reject the binding.
- If you’re happy with the output, select Apply.
- If you’re unhappy with the output, select Reject and start over by entering a new prompt.
- Preview and test the output.
Result
Data binding and formula are generated.
| Symptom | Cause | Resolution |
|---|---|---|
| Data binding generation returns incorrect syntax | The prompt is ambiguous or uses terms not recognized as synonyms. | Refine the prompt using more specific language. Refer to the Formula Operators table for supported synonyms. Try selecting an example from the Data Binding popover. |
Parent Topic:Using UI generation
Related topics