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.

#data
Get started for free
  1. Starts whenA marketer asks @Merlin in #data for the customers who fit a campaign, such as admins on the Team plan
  2. 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
  3. 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 @Merlin in #data with who the campaign is for, such as admins on the Team plan.

Acme

Channels

general

eng

product

support-eng

data

finance

it-help

legal

Direct messages

Merlin

Zoe

Leo

data

24

MessagesAdd canvasFiles

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.

  1. 01Ask #data for a list
  2. 02Wait for an analyst
  3. 03Find the right tables
  4. 04Write the query
  5. 05Join the unsubscribe list
  6. 06Fill in missing job titles
  7. 07Export it to CSV
  8. 08Upload it to a sheet
  9. 09Share it with the marketer
  10. 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.

  1. @Merlin in #dataAsked by the marketer
  2. Writes and runs the queryCodex, read-only in the warehouse
  3. 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.

  1. 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.
  2. 02Add Merlin to SlackIntegrationsInstall the Slack app and add Merlin to the channel you work in. A private channel needs /invite @Merlin.
  3. 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.
  4. 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.
  5. 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.
  6. 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.

  7. 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 clay CLI.

  8. 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.

#data

Once, when you paste it

  1. PromptYou paste the prompt to @Merlin
  2. GuidanceMerlin saves your rules as workspace guidance

Every time someone mentions Merlin in Slack

  1. IntegrationThe Slack app spots the mention
  2. RuntimeMerlin picks an available machine
  3. ContextThe run gathers context
  4. WorkClaude Code or Codex writes and runs the query
  5. SteeringYour team steers the work in the thread
  6. ResultMerlin links the sheet with the count

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.