Create an NLQ shortcut
-
- UpdatedJan 30, 2025
- 3 minutes to read
- Yokohama
- AI Experiences
Create a semantic shortcut to help improve the ability of NLQ to recognize the various ways your users request data. Semantic shortcuts operate similarly to NLQ synonyms by mapping common words to columns, but for a selected table when certain conditions are met.
Before you begin
Role required: admin, nlq_admin, or pa_analyst
About this task
Like NLQ synonyms, semantic shortcuts enable you to map common words in your users' requests to the columns in your instance tables. When these words are detected in natural-language queries, NLQ replaces them with actual column and table names, then submits the formal query.
Semantic shortcuts provide a condition builder so that you can filter which records are covered by the terms you provide.
Some semantic shortcuts are provided in the base system, and you can add more for your use cases and business requirements. Review NLQ logs of actual user utterances to find possible terms to add. For more information, see View NLQ logs.
You can create a new shortcut, or modify an existing shortcut, as follows.
- If any shortcut already exists for your target table and filter conditions, you must add your new shortcut to the current record. Separate multiple shortcuts with a comma.
- Shortcuts can point to reference fields, using dot-walking. For more information, see Dot-walking examples.
- Synonyms are case-insensitive in queries.
- Synonyms can contain apostrophes and periods, but not commas.
- Synonym and shortcut records are associated to one table. You can associate the same synonym term to more than one table, but you must create a record for each table.
Procedure
Result
The new shortcut is available to your users as soon as they refresh the browser window of the list.
Example: Semantic shortcut for Incident backlog
A user can enter show me incident backlog or unassigned incidents and the system displays incidents with an empty Assigned to field.
Related Content
- Create an NLQ synonym
Add synonyms to improve the ability of NLQ to recognize the various ways your users request data. With synonyms, you can map commonly used words or terms to table columns.
- View NLQ logs
Review NLQ logs to see how the system has handled your users' plain-language requests. Use log records from attempted requests to expand NLQ synonyms or shortcuts.
- View NLQ Table Guesser logs
Use the Table Guesser logs to review the CMDB tables that were picked by NLQ in response to plain-language queries.