Skip to main content

Getting Started with AI Query Builder

The AI Query Builder is an AI-powered tool designed to bridge the gap between business questions and technical data structures.

M
Written by Mario Aparicio
Updated this week

When creating Reports, instead of manually building complex logical rules, you can simply describe what you are looking for in plain English, and the AI Query Builder will generate a precise search query for you.

Availability: Open Beta. Functionality and UI may change. To get access to this feature it can be toggled on from the organization settings, provided you have Ardoq AI features enabled.


How to Use Query Assistant

1. Access the Assistant

The AI Query Builder is currently available in the Ardoq Report Builder, under the “Custom data query section

Ensure the data source is set to Advanced search. Click on the "AI Query Builder" button located under the "Search for the specific data that you want to show" header.

2. Describe Your Search

In the text box provided, type a clear description of the data you want to find.

Example: "show all applications that have some reference to or from business capabilities".

As you begin typing, an auto-completion feature will suggest available Component Types and Field Types based on your input.

Note: Make sure to have selected Workspaces that correspond to what you’re searching for.

3. Generate and Review

Click Generate query. The Assistant will populate the search parameters, including:

  • Component Types: Automatically identifying the primary search object (e.g., Applications).

  • Logical Rules: Building the "And/Or" predicates and reference directions (To/From).

We currently only support Component search, so the AI Query Builder will not work if you want to construct a search query for references.

4. Refine Manually

The Query Assistant does the heavy lifting, but you remain in control. You can manually adjust any of the generated rules—such as changing reference types or adding subqueries—using the manual editor below the prompt.


Tips for Best Results

  • Be Specific: Use the exact names of component types as they appear in your selected workspaces. As mentioned above the feature will give you auto-completions as you write your query. Use those to make the query as specific as possible.

  • Confirm Scope: If the Assistant fails to find a specific component type, double-check your Data selection to ensure that workspace is included.

  • Verify Directions: Review the generated "To" and "From" logic to ensure it matches the actual flow of your data model.

  • Refine manually: Sometimes the AI manages to get some of the query correct but might miss a detail that you can just add manually.


Frequently Asked Questions

  • Does it support Gremlin? Currently, the feature supports Advanced search for components only. Gremlin graph search is not yet supported, but we plan to extend the AI Query Builder to support Gremlin.

  • Why are no results showing? Even if the query logic is correct, results will not appear if the relevant data is outside your current Data selection. Always verify your workspace sources first.

  • What if the query is incorrect? AI-generated queries can occasionally misinterpret complex phrasing. You can provide feedback using the "thumbs up/down" icons or refine the rules manually to correct the intent.


Limitations

The Query Assistant, while powerful, has certain constraints:

  • Scope Dependency: The Assistant is strictly limited to the workspaces selected in the Data selection panel. It cannot generate queries for data residing in unselected areas of your Ardoq environment.

  • Component Search Only: The Assistant currently supports generating queries for searching Components but does not support generating queries for searching References.

  • No Gremlin Support: As noted above, the AI generation feature is currently restricted to the Advanced search syntax and does not support generating Gremlin graph search queries.

  • Interpretation of Ambiguity: The AI relies on clear, unambiguous phrasing. Highly complex or vague natural language instructions may result in incorrect or incomplete generated query logic, requiring manual refinement.

  • No Data Structure Modification: The Assistant is a search tool only; it cannot create, modify, or delete components, references, or data structures within Ardoq.

  • No Parent-Child Filter Support: The Assistant does not support Hierarchical navigation as of now.

  • User Resolution: The Assistant does not automatically resolve user names to specific accounts. Queries involving user names (e.g., "Created by...") will default to an "Unknown name" state and require manual verification in the rule builder.

Did this answer your question?