Use cases
Data
Analyze exports in the thread, trace metric definitions, review model changes and schedule digests.
Merlin recipes for data teams. Analyze an approved export in the thread where the question was asked, check a metric definition against the code that emits the event, review a dbt or SQL change in a pull request, keep definitions in a skill, save cohort rules to memory and schedule the weekly metrics digest.
How data prompts work
Data questions arrive in Slack and get answered somewhere else. The recipes below keep the analysis in the thread: attach the export, state the population and the metric, and Merlin runs the analysis on a runtime that has the tools, then returns the findings, the chart and the working file to the same place. Questions about where a number comes from are answered from the code that produces it.
What you need
| Requirement | Why it matters here |
|---|---|
| A runtime with the analysis libraries or MCP tools | The export is processed on that machine with what it has installed. |
| A channel whose members may access the data | Findings and attachments stay with the audience allowed to see them. |
| A runtime with the product or analytics repository | Metric and event definitions are read from the code that emits them. |
| GitHub App installed (optional) | SQL and model changes can be reviewed in the pull request. |
Remove secrets and fields that are not required for the question before attaching an export. A data source Merlin cannot reach is unknown, not zero.
Prompts to paste
Analyze an export in the thread
Attach the export, then define the population, the period, the metric and the output.
@Merlin calculate the conversion funnel by plan for the last complete month. Exclude internal accounts, return a chart and attach the notebook or script used to produce it.
Asking for the script makes the result reproducible by another analyst. Correct the definition in the same thread:
Treat invited users as entering the funnel only after they accept, then rerun the chart and explain the difference.
Check where a metric comes from
The dashboard and the export disagree. Ask for the definition in the code.
@Merlin where is the
workspace_activatedevent emitted, what conditions fire it, and has the condition changed in the last three months? Cite the code and the commits.
When an alert fires on a metric, see Merlin investigate it step by step.
Review a model or query change
Mention Merlin in the pull request that changes a dbt model or a reporting query.
@Merlin review this dbt model change for grain changes, fan-out joins and any column that downstream models reference. List each risk with the line that causes it.
When the team has a written review checklist, put it in a skill and ask for it by name.
When an overnight run fails, see Merlin fix it step by step.
Explain a number for a non-technical reader
The finance or leadership channel needs the number and its caveats, not the query.
@Merlin from the attached weekly report, explain the drop in activation in three sentences for the leadership channel, and list the two caveats they must know.
Keep definitions in a skill
Metric definitions, standard exclusions and the house chart style belong in a shared skill so every analysis applies them the same way.
@Merlin compute weekly active workspaces from the attached export with the metrics-definitions skill and state which exclusions you applied.
Publishing a skill puts it in the catalog. Then install it on the runtime that runs the analysis.
To answer number questions from your agreed models, see it step by step.
Schedule the weekly metrics digest
When the team looks at the same numbers every Monday, schedule the post.
@Merlin every Monday at 9am, post last week's signups by plan with the week-over-week change and a two-line note on anything unusual.
Scheduled automations deliver to Slack and run on behalf of their creator. The runtime needs access to the data source when the run is due. Fixed times run in the workspace timezone for a channel automation and in your personal timezone for a direct-message automation.
Save cohort rules to channel memory
Save the rules that every analysis in the channel should follow.
@Merlin remember for this channel: internal accounts are any email on our domain, a trial counts as converted on the first paid invoice, and weeks start on Monday.
Keep entries short. The full definitions catalog belongs in the skill.
Limits
Merlin only sees the files and services made available to the selected runtime. Reconcile important totals against the source system before using a result in a decision.
Sharing a runtime also delegates its enabled analysis tools and local credentials. Use a private runtime or a separate environment when the capability set should not be shared.