AI AGENTS

On-Demand Cost Investigation from Slack

An engineer mentions a service and date in Slack and an agent investigates that exact spend window — correlating deploys and metrics.

CategoryAI Agents
Enginepaperclip
Difficultyintermediate
Triggerchat
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerSlack request with service and date rangeSlack
  • ActionParse and validate investigation window
  • ActionQuery spend for service and windowSnowflakeSnowflake
  • ActionPull deploys and infra metricsGitLabGitLab
  • ActionAgent correlates and drafts summaryDatadogDatadog
  • OutputReply in Slack thread with root causeSlack

What it does

Lets anyone investigate a cost question on demand without leaving Slack. An engineer triggers the workflow with a service name and a date range; the agent scopes its investigation to exactly that window, pulls the matching spend, deploys, and infra metrics, reasons over the timeline, and replies in the same thread with a concise root-cause summary and evidence links.

When to use it

Use this for the ad-hoc question that doesn't come from an alert — "why did the payments service cost double last Thursday?" It gives every engineer self-serve cost forensics instead of pinging the one person who knows the dashboards.

How it works

  1. 1A Slack trigger captures the request with the service name and date range.
  2. 2The agent parses the parameters and validates the window.
  3. 3It queries Snowflake for that service's spend across the window.
  4. 4It pulls GitLab deploys and Datadog metrics for the same range.
  5. 5It correlates the signals and drafts a root-cause summary.
  6. 6It replies in the original Slack thread with the findings and links.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect SlackChannels, DMs, threads, mentions.
  2. 2
    Connect SnowflakeWarehouses, queries, shares.
  3. 3
    Connect GitLabRepos, MRs, pipelines, registry.
  4. 4
    Connect DatadogMetrics, traces, log search.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.