All docs
/
Enrich
/
Twain integration

Twain integration

Get a personalized outreach sequence for every contact in your table, backed by Twain's deep research.

Overview

Twain researches each contact, writes their sequence from one of your Twain campaigns, and adds them to that campaign as a lead. There's no prompt to write: map your contact columns and add a signal, like a job change or company news, to tell Twain why you're reaching out right now.

Choose how much research Twain does on each contact: Base is the fastest, High adds a qualification thesis, and Ultra goes deepest and adds an outreach strategy.

Enriching data with Twain

  1. While in a Clay table, click Add enrichment and search for Twain.
  2. Under Integrations, select Deep research and outreach copy.
  3. In the modal, you will be asked to Select Twain V3 account.
    • To bill runs to your own Twain account, click + Add account and enter your Twain API key, which Clay lists as a Twain V3 API Key account. Otherwise, use the Clay-provided account, which uses your Clay credits instead.
Note: Every run generates copy for a campaign you set up in Twain, and campaigns can't be created from Clay. Create one in Twain before you add the enrichment.

Action Deep research and outreach copy

Research a contact and generate a personalized outreach sequence from one of your Twain campaigns.

Inputs

Required:

  • Generation mode: How much research and reasoning Twain spends on each contact.
    • Base: Minimal research, and the fastest option.
    • High: The standard research depth.
    • Ultra: The deepest research, with written reasoning that guides how each step is planned. It takes several minutes per contact.
  • Campaign: The Twain campaign to generate the sequence for. With your own Twain account connected, this is a dropdown of the campaigns in that account. With the Clay-provided account, it's a Campaign ID field instead: in Twain, open the ... menu next to the campaign and click Copy ID.
  • Contact professional profile URL: The contact's profile URL, which gives more granular results than an email. (Required if Contact email address is not provided.)
  • Contact email address: The contact's work email address. (Required if the professional profile URL is not provided.)

Optional:

  • Add lead to campaign: Adds the contact to the campaign as a lead in Twain. On by default. Turn it off to generate a sequence without adding the contact to the campaign.
  • Contact name: The contact's name.
  • Contact company domain: The contact's company domain.
  • Contact trigger / signal: Why you're reaching out to this contact right now (e.g., "Posted a job ad to hire GTM engineers for their team.").
  • Custom variable 1–10: Up to 10 extra details to pass to Twain for the contact. Each one has three fields:
    • Name: The variable's name.
    • Value: The variable's value. This can come from a column, so each row sends its own value.
    • Description: What the variable holds.

Outputs

Twain generates in the background, so the cell first shows that generation has started, then fills in with the results when Twain finishes. What comes back depends on the generation mode:

  • Base: A personalized sequence, with one message for each step in your campaign.
  • High: The sequence, plus a qualification thesis for the contact.
  • Ultra: The sequence, plus a thesis and an outreach strategy.

Run settings

  • Auto-update: Useful when contacts keep arriving, so each new row gets a sequence without re-running the column. With Add lead to campaign on, those contacts are also added to your Twain campaign as they land.
  • Only run if: The enrichment will only run if conditions are met. (Learn more about conditional formulas here!)

FAQs

Does Clay charge credits if I use my own Twain API key?

With your own Twain API key, Clay doesn't charge credits for this action, and Twain bills your Twain account instead.

Can I use a different generation mode for each row?

Yes. Click the gear button beside Generation mode, switch the input to Text with tokens, and map a column holding Base, High, or Ultra for each row. Rows with an empty or unrecognized value fail and ask you to select a generation mode.

What happens to Twain columns set up before Base, High, and Ultra?

They keep running the way they were set up.

To move a column onto the new modes, pick one under Generation mode. If the column runs (DEPRECATED) Generate outreach with deep research, it has no generation modes, so add a new Deep research and outreach copy enrichment instead.

Explore other docs

Gen AI

Clay MCP in ChatGPT

Connect the Clay MCP to ChatGPT, sign in to your workspace, and see what you can build and run from a chat on your plan.

View article
Settings & admin

Best practices before a member leaves your workspace

Audit admin access, billing, connections, automated work, and sequencer senders before you remove a member from your workspace.

View article
Getting started

Enhanced matching

Enhanced matching is Clay's hashed email enrichment: it finds the personal email identifiers ad platforms recognize, so more of your audience matches when you sync it.

View article
Signals & triggers

Ad lead form triggers

Send LinkedIn and Meta lead generation submissions into a Clay workflow, so each new lead is qualified, routed, or written to Audiences automatically.

View article
Export

Credit refunds

Learn when Clay refunds Actions and Data Credits, and which actions refund when a provider returns no data.

View article
Enrich

Definitive Healthcare integration

Find US hospitals in Clay and enrich them with executives, physicians, networks, payor mix, technology, and financial metrics.

View article
Enrich

Reusing saved enrichment data

Keep the data your enrichments return so later runs can reuse it instead of paying for the same answer twice.

View article

Other popular resources

Experts

Find a Clay Expert

Explore our network of Clay experts and agencies.

View experts
Community

Join our slack community

Find help in our slack community, and support channels.

Go to slack
Cohorts

Join a cohort, learn Clay fast!

The faster way to master Clay. Sign in if you're enrolled in a cohort (current or past) or apply!

Learn more about cohorts
Talents

Hire GTME Talent

Find and connect with GTM talent who've demonstrated expertise in building advanced workflows

Explore GTME talents