Data
Pull a customer list for a campaign
Ask Merlin in #data for the customers who fit a campaign. You get the list in a Google Sheet with the count and the SQL behind it.
@Merlin from now on, when someone in #data asks for a customer list, write the query against our curated tables and run it with read-only access. Put the list and the SQL in a Google Sheet shared only with the person who asked, and reply with the count and the filters you used. Leave out anyone who unsubscribed from marketing email, and say so if you can't tell who did. If the campaign needs job titles or roles we don't have, fill them in from Clay and say how many you filled.
- Starts whenA marketer asks
@Merlinin#datafor the customers who fit a campaign, such as admins on the Team plan Merlin worksClaude Code or Codex writes the query, runs it read-only in Databricks or Snowflake and checks the count and the filters, filling in missing job titles from Clay when the campaign needs them
- You getA Google Sheet with the list and the SQL, shared with the person who asked and linked in the thread
Tools
- Slack
- Databricks
- Snowflake
- Google Sheets
- Clay
Capabilities
- Integrations
- Your agent's MCP
How it works
From a campaign brief in #data to a customer list in a Google Sheet.
Mention
@Merlinin#datawith who the campaign is for, such as admins on the Team plan.Claude Code or Codex writes the query against your curated tables, runs it read-only in Databricks or Snowflake and checks the count and the filters. If the campaign needs job titles you don't have, it fills them in from Clay.
A Google Sheet with the list and the SQL, shared only with you, is linked in the thread with the count and the filters. Anyone who unsubscribed from marketing email is left out.
Mention @Merlin in #data with who the campaign is for, such as admins on the Team plan.
Claude Code or Codex writes the query against your curated tables, runs it read-only in Databricks or Snowflake and checks the count and the filters. If the campaign needs job titles you don't have, it fills them in from Clay.
A Google Sheet with the list and the SQL, shared only with you, is linked in the thread with the count and the filters. Anyone who unsubscribed from marketing email is left out.
Acme
Channels
general
eng
product
support-eng
data
finance
it-help
legal
Direct messages
Merlin
Zoe
Leo
data
24
Today
Zoe13:40
@Merlin can I get Team plan admins who haven't opened the new Reports page, with their job titles? It's for a launch email next Tuesday, and we'll split the copy by role.
Message #data
Before and after
Campaign lists come back the same day, with the filters written down.
Without Merlin
A marketer waits for an analyst and gets a CSV with no record of how it was built.
- 01Ask #data for a list
- 02Wait for an analyst
- 03Find the right tables
- 04Write the query
- 05Join the unsubscribe list
- 06Fill in missing job titles
- 07Export it to CSV
- 08Upload it to a sheet
- 09Share it with the marketer
- 10Explain the filters in the thread
With Merlin
One mention gets the list, the count and the SQL in a sheet only you can see.
@Merlinin#dataAsked by the marketerWrites and runs the queryCodex, read-only in the warehouse
- List and SQL in a Google SheetShared only with the person who asked
Setup
Give your agent the warehouse and Google Sheets, then ask in #data.
Set these up once and anyone in #data can ask for a campaign list. Clay is optional, for job titles you don't have.
- 01Connect a machineRuntimeInstall the Merlin desktop app or CLI on a computer running Claude Code or Codex. You can also use a machine a teammate shares with your workspace.
- 02Add Merlin to SlackIntegrationsInstall the Slack app and add Merlin to the channel you work in. A private channel needs
/invite @Merlin. - 03Add Databricks or Snowflake to your agentYour agent's MCPConnect the Databricks or Snowflake MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
- 04Add Google Sheets to your agentYour agent's MCPConnect the Google Sheets MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
- 05Keep Clay on your agentOptionalYour agent's MCPIf your machine's agent already uses the Clay MCP server, Merlin can use it here too. You don't need to set up anything in Merlin.
- 06Give the warehouse read-only accessYour agent's MCP
Sign the Databricks or Snowflake MCP server in with a role that can only read the curated schemas. Keep marketing unsubscribes in a table that role can read, or Merlin says it can't tell who unsubscribed.
- 07Mind Clay creditsOptionalYour agent's MCP
Filling in a title is a Clay enrichment, which spends Clay credits, so a big list with many gaps costs more. For Claude Code and Codex, Clay's quickstart recommends its agent plugin and
clayCLI. - 08Paste the setup promptGuidanceAn owner or admin sends the prompt below to @Merlin once, and it becomes workspace guidance for every future run.
Prompt
Tell Merlin how to pull a campaign list, once.
@Merlin from now on, when someone in #data asks for a customer list, write the query against our curated tables and run it with read-only access. Put the list and the SQL in a Google Sheet shared only with the person who asked, and reply with the count and the filters you used. Leave out anyone who unsubscribed from marketing email, and say so if you can't tell who did. If the campaign needs job titles or roles we don't have, fill them in from Clay and say how many you filled.
Once, when you paste it
- PromptYou paste the prompt to @Merlin
- GuidanceMerlin saves your rules as workspace guidance
Every time someone mentions Merlin in Slack
- IntegrationThe Slack app spots the mention
- RuntimeMerlin picks an available machine
- ContextThe run gathers context
- WorkClaude Code or Codex writes and runs the query
- SteeringYour team steers the work in the thread
- ResultMerlin links the sheet with the count
Related use cases
More data tasks you can hand to Merlin.
- IntegrationsSkillsMemoryYour agent's MCP
Data
Answer a data question on agreed definitions
Ask Merlin for a number in #data and get it from your agreed dbt models instead of raw tables. The reply shows the SQL, the models used and the caveats.
@Merlinin#dataThe number with its SQL and caveats - IntegrationsMemoryYour agent's MCP
Data
Explain why two dashboards disagree
Ask Merlin in #data why two dashboards show different numbers. You get the difference in how each one counts and the numbers on both sides, with the SQL.
@Merlinin#dataThe difference and both numbers in the thread - IntegrationsYour agent's MCP
Data
Document a table nobody understands
Ask Merlin in #data to explain a confusing table. It writes descriptions for the model and every column from the code and the data, and opens a pull request.
@Merlinin#dataA docs pull request linked in the thread
Bring your coding agents into the tools your team already uses.
Let your whole team hand work to Claude Code and Codex today. Connect one machine and add Merlin to Slack, Linear or GitHub. 14-day free trial, no API keys, no card.