Skip to content
Greenware
Esc
↑↓navigate↵open⌘Jpreview
On this page

Workspaces without Audiences

Onboard and run plays on a Clay plan that can't query Audiences from the CLI: results from a run export, suppression lists from the factory, holdouts from a CRM CSV.

Some Clay plans don’t include querying Audiences from the CLI, MCP or API. Clay answers every Audiences call with plan_upgrade_required. Greenware treats that as a fact about the workspace, not an error, and builds plays that don’t need Audiences.

Greenware builds on Clay’s current primitives: Audiences, Workflows and Functions. Clay tables are inventory at most, on every plan: Decompose rejects a table as a play’s destination, because the CLI can’t create one and a workflow can’t write its rows.

Onboarding

gw client refresh and gw client research record the fact in workspace.json and exit 0:

gw client refresh initech
initech: Audiences unavailable on this Clay plan, so audience lists, record counts and field ids were skipped (This workspace's plan does not include querying Audiences from the CLI, MCP or API.) → clients/initech/workspace.json

workspace.json gets audiencesAvailable: false and Clay’s reason. gw client status keeps the workspace item ✓ with a note:

✓ Workspace facts (audiences, record counts, field ids): 0 days old; Audiences unavailable on this Clay plan

This applies only when every Audiences read fails and every failure is plan_upgrade_required. Auth errors, network errors and mixed failures still fail the refresh and write nothing.

How plays change

Part of a play With Audiences Without Audiences
Where runs start a saved audience, a schedule over one a CSV, a webhook, a schedule or Find leads
Where results go Write to Audiences, a CRM a [GREENWARE] result code node, exported to deliverables/results.csv with gw export
Suppression a saved segment, or a function that reads one a factory list, compiled by Build into a [GREENWARE] suppress: <name> code node
Holdouts gw client gold --audience gw client gold --csv from your CRM
Gate A prerequisites fields and audiences the engine creates none (Plan may list no fields or audiences)

Validation enforces this. Without Audiences, Decompose must name the run export and may not leave a destination “unresolved”; Plan’s audience table takes the roles source, suppression and output with origins csv, webhook, schedule, search, list or export; and Build’s build.json must contain a [GREENWARE] result node.

Suppression lists

A suppression list is a set of domains or emails every play for the client must never reach. Without Audiences, it lives in the factory:

gw client suppression initech customers --csv customers.csv
2 domains from customers.csv, e.g. acme.com, northbeam.io
Save it as initech's "customers" suppression list? Plays will never reach these domains. [y/N] › y
✓ clients/initech/suppression/customers.csv
  Build turns it into a [GREENWARE] suppress: customers code node (clients/initech/suppression/customers.py).
  • A person confirms every list, at the terminal or with --yes. Without either, nothing is saved.
  • Without --column, the first column whose header looks like a domain (for example domain, website) is used, else one that looks like an email. --column <c> names it; it’s read as emails if any value has an @, else as domains. Values are normalized and deduplicated; rows with no usable value are skipped and counted.
  • List names are lowercase letters, digits and dashes.
  • A list holds at most 10,000 entries (one code node). Split a bigger list.
  • The engine generates the code node’s handler, so no agent rewrites the list.
  • gw client suppression initech lists the saved lists.

Lists live in clients/<id>/suppression/ (.csv, .py, .json), which the factory .gitignore keeps out of git, like holdouts.

A plan that names a list you haven’t saved

The planner names the suppression lists the play needs. If one isn’t saved yet, the play waits once instead of failing:

initech/lookalikes-csv  Plan · waiting_human · The plan needs 1 suppression list initech hasn't saved: gw client suppression initech customers --csv <file>

Save it, and every play waiting on that client’s lists is re-checked. Plays with everything they need move to Gate A without re-planning:

  initech/lookalikes-csv had every list it needs: Gate A: review spec, contract and plan, then approve or reject

Results

gw export initech/lookalikes-csv

reads the play’s [GREENWARE] result node through clay workflows runs export and writes deliverables/results.csv. --status picks which runs (default completed). It’s a read, so it needs no gate. The twin has no recording for run exports, so gw export works against a live workspace only.

Holdouts from a CRM

gw client gold initech closed_won_12m --csv closed-won.csv
Exported 1 of 1 rows from "closed-won.csv" → clients/initech/gold/closed_won_12m.jsonl
Only the Verify stage reads gold/. Plays name the holdout they need in their spec.

Email and phone fields are dropped unless you pass --keep-contact.

Try it on the twin

The no-audiences twin scenario answers every Audiences call with plan_upgrade_required, so you can run a whole play this way with no account:

export GW_SCENARIO=no-audiences
gw init ~/noaud-factory --runner scripted --clay twin && cd ~/noaud-factory
gw client add initech --domain initech.com --workspace-id ws_demo
gw client refresh initech
gw idea initech "lookalikes off last 45 days of closed-won" --id lookalikes-csv
gw answer initech/lookalikes-csv --defaults       # waits at Plan for the "customers" list
printf 'domain\nacme.com\nnorthbeam.io\n' > customers.csv
gw client suppression initech customers --csv customers.csv --yes    # → Gate A
gw approve initech/lookalikes-csv --gate A
gw approve initech/lookalikes-csv --gate B

The built workflow has a CSV trigger, a [GREENWARE] suppress: customers node and a [GREENWARE] result node.

Was this page helpful?