All versions of this manual
X
 

Plugins: Query AI

What is Query AI?

Query AI is a Linkurious Enterprise plugin that allows analysts to query the graph using natural language.

Example:

User: Show me bank accounts owned by more than one person

Query AI: MATCH (p:PERSON)-[r:HAS_BANK_ACCOUNT]->(b:BANK_ACCOUNT) WITH b, COUNT(p) AS personCount WHERE personCount > 1 RETURN b

The feature is currently available for Neo4j and Memgraph.

Installing Query AI

The Query AI plugin is installed and enabled by default.

To set up the plugin:

  • Open your Linkurious Enterprise instance and access this URL /plugins/query-ai/
  • Click "Edit Query AI Configuration"
  • Select a vendor (e.g., "OpenAI")
  • Select a model (e.g., "gpt-o4")
  • Set your API key (if you don't have one yet, we recommend getting one from OpenAI)
  • Save the changes

screenshot of the settings page

Allow users to open the plugin in one click:

  • Open a visualization
  • Open the main menu and select "Manage custom actions"
  • Click "New custom action" and use the following input:
    • Name: "Open Query AI"
    • URL template: {{baseUrl}}plugins/query-ai/?sourceKey={{sourceKey}}#linkurious-modal
    • Sharing: "Share with all users"

screenshot of the custom action creation

Using Query AI

Get started:

  • Open a visualization
  • Right-click on the workspace, select "Custom actions", then "Open Query AI"
  • Type a request

After a short wait, a graph query is generated and displayed. Once a graph query is generated, several options are available:

  • Run the query to preview the result
  • Edit the query manually to tweak it
  • Continue the conversation with the AI to improve the graph query incrementally

screenshot of the query preview

Once a query has been run, you can add the results to your workspace.