SQL Templates
SQL Templates are reusable, pre-defined SQL queries that your AI agents can use during analysis. They help ensure consistency and accuracy when querying your data—so you don’t have to write SQL from scratch every time.
Each SQL Template can include:
SQL query code
Parameters: Placeholders for dynamic values (like dates, customer segments, or regions) that your AI agents can fill in based on user questions.
Linked Tables: Reference specific tables from your data warehouse so the AI agent knows where to query.
Linked Definitions: Link the template to relevant Definitions in Knowledge to make the query easier to understand in a business context.
✅ Agents can use SQL Templates directly during analysis when answering user questions. ✅ SQL Templates include verification—by default, templates are verified, but the data team can control this to ensure only trusted queries are used.
Last updated
Was this helpful?