CHATBOTS
Slack metric lineage tracer for BigQuery dashboards
Ask the bot how a metric is calculated and it traces the BigQuery lineage back to source tables, returning the SQL definition and every upstream dependency in the thread.
How it runs
The automated pipeline, trigger to output.
- TriggerSlack mention asking how a metric is calculatedSlack
- ActionMatch metric name against BigQuery views and routinesBigQuery
- ActionFetch view SQL and read INFORMATION_SCHEMA lineageBigQuery
- LogicRank upstream dependencies by depth to source tables
- ActionNarrate the calculation in business termsOpenAI
- OutputPost lineage chain, SQL, and source tables in SlackSlack
What it does
Answers 'where does this metric come from?' by walking BigQuery lineage. When someone asks about a dashboard number, the bot returns the view's SQL, the columns it reads, and the chain of upstream tables that feed it.
When to use it
When stakeholders distrust a KPI and the data team burns hours screen-sharing query editors to prove the math. Use it when your metrics are defined as BigQuery views or scheduled queries and lineage is the real question, not just a one-line description.
How it works
- 1A Slack mention asks about a named metric or view.
- 2The metric name is matched against the BigQuery information schema and routines.
- 3The bot fetches the view definition and reads INFORMATION_SCHEMA lineage and column references to assemble the upstream dependency tree.
- 4A logic step ranks dependencies by depth so the source-of-truth tables surface first.
- 5An OpenAI step narrates the calculation in business terms alongside the raw SQL.
- 6The reply posts the lineage chain, the SQL, and the source tables back in Slack.
Set it up
What you configure once, before turning it on.
- 1Connect SlackChannels, DMs, threads, mentions.
- 2Connect BigQueryDatasets, queries, schemas.
- 3Connect OpenAIModels, embeddings, files.
- 4Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
- 5Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
- 6Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.
More Chatbots workflows
Discord Onboarding Completion to CRM Sync
The moment a member finishes Discord onboarding, captures their submitted profile answers, creates or updates a contact in HubSpot.
Discord FAQ-Gated Role Concierge
Greets each new Discord member in a private onboarding thread, walks them through required FAQ steps one at a time.
Discord FAQ Free-Text Answer Grader
When a member submits a free-text answer in their onboarding thread, an agent grades it against the canonical FAQ knowledge base, replies with targeted feedback.
Discord verify-button onboarding via web form webhook
Receives a completed external verification form by webhook, matches it to the Discord account, grants the verified role, and confirms back to the member in Discord.
Discord intro-gated role granting concierge
Watches your #introductions channel, uses AI to confirm a new member's intro is genuine and complete, then auto-assigns the verified Member role and welcomes them.
Daily Discord Digest of Repeated WAF False-Positive Reports
Each morning, scans logged Discord WAF reports in Postgres, groups them by the Cloudflare rule that keeps firing.
Run it inside a business
This workflow drops into a full company template. Import the org, and this is one of the playbooks its agents run.

Run this workflow in your colony.
14-day trial. No DevOps. No Sales call. Provisioned in under a minute.
