Clay AI Employee

Leina connects to Clay to help you run existing enrichment routines and separate useful results from failures. Ask in your team chat. Leina does the work and brings back the result.

Connect Clay, choose what to share, and hand off your first task.

Leina + Clay Example Result

You

Run our existing company-profile routine [routine ID] on these two supplied records [items with IDs harbor and pine]. It only enriches company details. Wait for completion, show the returned company fields, and list item errors separately.

Leina

The run finished with one successful item and one failure. Harbor’s profile is below; Pine returned a domain-not-found error.

Example · Completed routine results

Company enrichment review

Two items processed; one profile returned and one item needs follow-up.

harbor · Complete
Harbor Works · business software · London · 51–200 employees.
pine · Failed
Domain not found. No company fields returned for this item.
Review which records gained useful data and which still need another look.

What Is a Clay AI Agent?

AI submits your records to a configured Clay routine, follows its progress, and assembles completed outputs by input ID. Failed items remain visible even when the overall run has finished.

You specify the source and the destination. Leina uses the content available to your connection and returns the result for you to review.

Clay

Clay combines company and people data with configurable enrichment workflows for go-to-market teams.

  1. Submit the supplied records

    Use the existing routine and preserve each input ID.

  2. Read results after processing

    Check progress, follow result pages, and distinguish each item’s outcome.

What to Ask Leina to Do with Clay

Copy a prompt, add your details, and send it to Leina in your connected team chat.

Build a company research table

clay

Run an existing enrichment routine

Run Clay routine [routine ID] on these items [items with stable IDs and required fields]. Keep the routine run ID, check progress and read result pages using their cursor. Return successful output fields in a table keyed by item ID and list item errors separately, even if the overall run is complete.

clay

Your next Clay task can start with a message.

Connect. Ask. Get the Result.

Tell Leina what you need in your team chat. Include the source, destination, and expected result.

  1. Connect Your Account

    Connect the tools involved and give Leina access to the content it needs.

  2. Try a Task

    Share the source material, say where the result belongs, and describe what you need.

  3. Check the Result

    Review the result and any changes in the connected app.

Put Leina to Work in Clay

Hand off these everyday tasks to your AI employee.

Run Routine Batch

Download a JSONL file, upload it to Clay, and start an asynchronous batch routine. Each line must contain id and inputs. The routine may perform arbitrary downstream mutations. Connector transfer limit: 2 GiB, five minutes each for download and upload; JSONL validation is performed by Clay.

Get Routine Batch Results

Get batch progress, a result download URL, or validation/processing failure details. Download result_url separately after completion and inspect individual item outcomes; results are not loaded into the action response.

Get Me

Get the Clay user and workspace associated with the API key.

Get Credit Balance

Get workspace credit balances without consuming credits.

Get Search Query Reference

Get the current Clay search query grammar and fields before creating a search.

Create Search

Create a stateful company or people search from a Clay query. Count-mode and jobs queries are unsupported.

Get Search Results

Fetch the next page and advance a Clay search iterator. Do not retry blindly: each call advances the iterator.

Run Routine

Run a configured Clay routine on 1–100 items asynchronously. The routine may perform arbitrary downstream mutations; inspect its definition before running.

Get Routine Results

Get routine progress or one page of completed results. Follow cursor until absent and check each item's status.

Query Tables

Query known Clay tables on Enterprise plans. Concurrent updates can repeat rows; deduplicate by ID. Custom ordering and aggregation do not support cursor pagination.

Get Workflow Run Query Reference

Get the workflow-run query grammar and supported fields (beta).

Query Workflow Runs

Search or count workflow runs (beta). Results are eventually consistent; recently changed runs may be stale or absent.

More Tools for Your AI Employee

Connect the Apps your work depends on, and give Leina the context to carry the task forward.

Keep the Conversation Moving. Let Leina Pick Up the Work.

Hand off a task while your team is discussing it. Leina uses your connected tools and brings the result back to the conversation.

See How Leina Works in Slack
LeinaExample Result

The run finished with one successful item and one failure. Harbor’s profile is below; Pine returned a domain-not-found error.

Company enrichment review

Clay + Leina: Your Questions, Answered

How do I process a larger input file?

Provide an accessible JSONL file URL and existing routine ID. Batch execution returns a run ID; check that run for progress, errors and a result file URL when complete.

What if a routine finishes with failed items?

Keep successful results and list failed item IDs with their errors. Overall completion means processing ended, not that every item succeeded.

Can I invent a search query from plain criteria?

The assistant can read the current query reference first and translate your criteria into that syntax. Supply clear criteria and a result limit.

Make Leina Your Clay AI Employee

Start with one task you already need to do. Tell Leina what a finished result should look like.

Connect Clay, choose what to share, and hand off your first task.