Skip to main content
Routines are the umbrella for programmable Clay logic: enrichment, research, scoring, routing, cleanup, and other repeatable GTM work.
Routine typeUse it whenStatus
Clay-managed functionsYou want Clay-provided enrichment or research for common jobsAvailable
Custom functionsYou already have Clay logic you want to call from agents, the CLI, MCP, or the APIAvailable
Workflows (Alpha)You want to create, edit, run, inspect, or batch-run Clay logic from the plugin or CLIAlpha
Workflows are in Alpha. They overlap with functions in what they can execute, but differ in how you build and manage them.

How routines are called

Routines can be called from the Clay plugin, CLI, MCP, or direct API integrations.
SurfaceWhat it is good for
Clay pluginAgent workflows in Claude Code, Codex, and Cursor
CLIJSON-first runs, batch runs, workflow testing, and debugging
MCPAgent access to Clay objects and routines
APIBackend services, internal tools, queue workers, custom UIs, and product workflows

First pattern

  1. Use Searches to find a list of companies or people.
  2. Use a Clay-managed function to enrich the results.
  3. Send the structured output to your CRM, warehouse, app, or agent.

Run a search, then enrich with a function

See the basic search-plus-function flow.