---
sourceDocument: Brazil Enable AI
sourceDocumentLink: https://www.servicenow.com/docs/r/intelligent-experiences

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Enable AI

ft:clusterId :

    - platai

bundleId :

    - platai

workflow :

    - Platform


---

# Graph Query Builder

# Graph Query Builder {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Graph Query Builder

Graph Query Builder in ServiceNow provides a visual, no-code interface for creating and executing Knowledge Graph queries.
It supports both manual query construction through an intuitive UI and natural language input that is translated into queries by a large language model (LLM).
This flexibility enables users to interact with complex graph data without needing to write query syntax.
Show full answer Show less  

## Key Features

* **Dual Query Input Options:** Users can either build queries step-by-step by selecting graphs, entities, relationships, and filters, or simply ask questions in natural language to generate queries automatically.
* **Graph Selection:** Choose from predefined graphs like Enterprise Graph, Enterprise Graph Small, or user-created graphs to tailor query scope.
* **Visual Query Construction:** As users add entities and relationships with AND/OR filters, a live graph visualization updates in real time, helping confirm the query intent before execution.
* **Output Customization:** Define which fields appear in results and choose between returning individual records or aggregated data such as counts.
* **Natural Language Integration:** Input natural language questions that are converted to queries by the LLM, with options to review, edit, and rerun the generated query to refine accuracy.
* **Query Saving and Sharing:** Save successful queries privately or share them with others who have access, facilitating reuse and reducing repetitive query building.

## Key Benefits for ServiceNow Customers

* **Explore and Understand Data Models:** Discover the available entities, relationships, and properties in your graphs without guessing, improving query effectiveness.
* **Build Complex Queries Easily:** The guided UI simplifies multi-hop traversals and filter application, making complex graph queries accessible even without coding skills.
* **Validate Queries Visually:** The live graph view ensures users can verify and adjust their queries before running them, reducing errors and improving result relevance.
* **Flexible Results Formatting:** Tailor outputs to your analytical needs by selecting record lists or aggregated summaries.
* **Increase Efficiency:** Save and share queries to avoid redundant work, enabling faster insights and collaboration across teams.
* **Enhance Trust in AI Results:** Reviewing generated queries from natural language inputs helps refine questions and build confidence in AI-assisted query generation.  
Graph Query Builder provides a visual interface for building and running Knowledge Graph queries without writing code. You can also use natural language to generate queries.

You have two options on the Graph Query Builder page. You can either to ask query in Natural language or build your own query using the Query Builder.

If you prefer to build a query, you can select a graph between Enterprise Graph, Enterprise Graph Small, or a user-created graph. Choose a starting entity and add relationships to the connected entities by applying
AND or OR filters on the properties. You can define which output fields appear in the results and whether to return individual records or aggregated results.

As you build, a live graph in the right panel shows the query taking shape. You can confirm it matches your intent before running it.

You can also skip this manual query construction and ask a natural language question instead. Graph Query Builder converts your natural language input into a query using the LLM of your choice and lets you review, edit, and rerun
it.

Example natural language query: <kbd class="ph userinput">Show me all incidents assigned to the Finance team.</kbd>

You can save the successful queries as private or for everyone who has access. This prevents rebuilding common or complex queries.

## Graph Query Builder benefits {#using-graph-query-builder__section_detailed_benefits}

Discover what you can actually query: Explore the entities, relationships, and properties available in a graph, instead of guessing at the underlying data model.

Build complex queries without writing syntax: The UI guides you through multi-hop traversal, relationship selection, and filters, step by step.

See your query before you run it: A live graph view builds alongside you as you add entities and relationships, so you can confirm the query matches your intent before executing it.

Get results in the shape you need: Choose a list of records or an aggregated result, such as a count, so the output matches what you want to answer.

Reuse and share your work: Save a successful query for yourself, or share it with everyone who has access, so complex or recurring queries aren't required to be built from scratch.

Review and refine your query: Ask a natural language question and Query Builder shows you the exact query it generates, revealing how the question would be interpreted by ServiceNow® Otto for Virtual Agent or an AI agent. It is useful to refine phrasing and building trust in AI-assisted results.

