Create and run XQL queries with Agentic Assistant chat
Use natural language in Cortex Agentic Assistant Chat to generate and run Cortex Query Language (XQL) queries in Cortex XDR.
With the Agentic Assistant Chat, security analysts can query system datasets without writing manual XQL code. By typing plain English prompts, the assistant translates your intent into valid XQL, executes the search, and previews the results directly in your chat interface.
Core capabilities and actions
TextToXQL
Translates natural-language prompts into valid XQL syntax. This hidden system action cannot be removed or displayed in Agentic Assistant Hub.
Cortex - Run XQL Query
Runs an XQL query against your datasets and returns results.
Data access and permission requirements
System datasets only: The
TextToXQLaction supports system datasets, but cannot create XQL queries for custom datasets. You can manually write a query for custom datasets and ask the agent to run the query.Role-Based Access Control (RBAC): The
TextToXQLaction can generate XQL queries for datasets that you do not have permission to access, but the Cortex - Run XQL Query action can only execute if you have the necessary permissions for the dataset.
How to create and run XQL queries
Prompt the assistant
Prompt the assistant using clear, intent-driven natural language.
Recommended prompts:
“Create an XQL query to…”
“Build an XQL query for…”
“Generate an XQL query that…”
For example:
“Build an XQL query to find failed login attempts from the past 24 hours.”
“Generate an XQL query for high-severity process executions on
Workstation-01.”
Review and run
Automatic or Manual Execution: The agent displays the generated XQL query. Depending on your instructions, it will execute automatically or wait for manual confirmation.
Inspect Results: View result previews directly inside the chat window.
Pivot to Detailed Search: Click the query link to pivot directly to the dedicated XQL Query Builder page to analyze full dataset outputs, modify stages, or save the query.
Last updated
Was this helpful?
