After connecting your data
Add context so answers are right the first time, then invite your team.
Last updated: Nov 28, 2026
You connected a few tables and were able to run a query. However, there are a few more steps you need to start getting consistent answers and rolling it out to the team.
Your agent sees table and column names, but not what they mean, so two people can get two different numbers for the same question. There are four kinds of context:
- Organization context: high-level context about your organization, and guardrails you want applied to every query.
- Table context: what each table and column means. Start with the 5 to 10 tables people ask about most.
- Metrics: one agreed definition for each key number. Start with the 2 or 3 numbers leadership asks about every week.
- Reference queries: SQL you know is right for questions your team asks often. Save them as good answers come up.
Once the context is in, invite your team so everyone works from it.
Setting organization context
Org context is the short set of notes every agent reads at the start of a session. Open Org Context in the left sidebar of the app. It has two fields:
- Organization Context: high-level context about your organization, such as what the business sells and when the fiscal year starts.
- Data Analysis Guidance: guardrails applied to every query, such as "Exclude test accounts (emails ending in @example.com) from all counts."
Keep it to facts that hold across the whole workspace. What a table means goes in table context, and how a number is calculated goes in a metric.
Adding table context
Table context says what each table and column means, so the agent picks the right table and reads columns correctly. There are three ways to add it.
Generate it from a context source (recommended)
Contextflo reads material you already have and writes descriptions for your connected tables and their columns. The source can be a GitHub repo (like your dbt project), text you paste (like a data dictionary), or just your table and column names. Most teams already have this written down, so start here.
Label tables in the app
You can also write or edit a table's description and its column descriptions yourself in Contextflo.
Ask your agent
Your agent can go through your tables with you and save descriptions with set-table-context. You need to be an admin, and the table must already be connected.
Example prompts:
- "Go through the
orderstable with me and save a description for each column." - "
statusinsubscriptionsis 1 for active, 2 for paused and 3 for cancelled. Save that as the column description."
Creating metrics
Save the definition of a number once, with the SQL that calculates it. Every agent then uses it.
For example, a metric named "Monthly recurring revenue", described as "Sum of active subscription prices, normalized to a month. Excludes test accounts.", with this SQL:
Loading code sample...
To add one, ask your agent to save it with create-metric, for example: "Define MRR from the subscriptions table and save it as a metric."
Adding reference queries
When your agent gets a hard question right, like churn or revenue by channel, save the query. Similar questions start from it.
Ask your agent to save it, and it uses save-query-pattern. A reference query never widens anyone's access.
If your team already keeps SQL in Metabase, an admin can connect Metabase and import its native SQL questions as reference queries. Imported questions are approved automatically. Questions built with Metabase's visual builder aren't imported.
Invite your team
- In Contextflo, go to Settings > Members and click Invite members.
- Choose which tables each group of people can query: Access control.
- Each person connects Contextflo to their own agent (Claude, ChatGPT, Claude Code, Codex, Cursor or another MCP client) by following https://contextflo.com/INSTALL.md. Everyone then works from the same context, metrics and reference queries.