> This page is for version 2022-09-01.
> For other versions, use one of these documentation indexes:
> - 2026-09-29 (default): https://docs.withpersona.com/2026-09-29/llms.txt
> - 2025-12-08: https://docs.withpersona.com/2025-12-08/llms.txt
> - 2025-10-27: https://docs.withpersona.com/2025-10-27/llms.txt
> - 2023-01-05: https://docs.withpersona.com/2023-01-05/llms.txt
> - 2022-09-01: https://docs.withpersona.com/2022-09-01/llms.txt
> - 2021-07-05: https://docs.withpersona.com/2021-07-05/llms.txt
> - 2021-05-14: https://docs.withpersona.com/2021-05-14/llms.txt
> - 2020-05-18: https://docs.withpersona.com/2020-05-18/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.withpersona.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.withpersona.com/_mcp/server.

# Graph Query Templates

> Define reusable graph query templates that can run automatically or with different parameters.

A graph query template is, conceptually, a "saved" version of a graph query that you can easily reuse and run again.

A query template can be run automatically (for example, with a [workflow](/workflows)) or ad-hoc, and with different parameters.

## Getting started

In the Graph Explorer UI, the query editor lets you "Save" a graph query as a query template, or "Load" an existing query template to use.

You can also find query templates on [the graph templates page](https://withpersona.com/dashboard/graph-query-templates) in the dashboard.

## Using query templates across Persona

You can use graph query templates across many Persona products:

* [Accounts](/accounts) page: Graph card

  * Analyze the entities the given Account has relationships with to determine its risk
  * Compare against historical snapshots to see how the relationships have changed

* [Cases](/cases) page: Graph module

  * Analyze the entities the given Case object has relationships with to determine its risk
  * Compare against historical snapshots to see how the relationships have changed

* [API calls](/running-graph-queries)
  * Run a graph query via an API call. Just provide a query template ID.

* [Workflows conditionals](/workflows)
  * Create automated rules and decisioning based on graph data within any branch of your workflows