> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enginy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# AI & formula steps

> Blocks that use AI or your own formulas to compute fields, and steps that run an autonomous AI agent

Use these steps when a value can't be pulled from a data provider and instead needs to be computed — by AI from a prompt, by your own formula, or by an autonomous agent acting across a set of records.

<h2 id="fill-company-with-smart-fields">
  Enrich companies with AI
</h2>

<img src="https://mintcdn.com/genesyai/spdphGKAygQftEq3/images/workflows/blocks/fill-company-with-smart-fields.svg?fit=max&auto=format&n=spdphGKAygQftEq3&q=85&s=4154a945798ac5c815f545591a79a73a" alt="" width="260" height="96" noZoom data-path="images/workflows/blocks/fill-company-with-smart-fields.svg" />

Lets AI complete any field on the company from a prompt you provide.

Use it for judgment calls a data provider can't answer directly, e.g. summarizing a company's likely pain points from its available data.

**Settings**

| Setting   | Required | What it controls                                  |
| --------- | -------- | ------------------------------------------------- |
| AI fields | Yes      | Which AI-computed fields to fill for the company. |

**Output**: the company, with the selected AI fields filled in.

**Requirements**: AI-powered step, consumes Enginy credits.

<h2 id="fill-lead-with-smart-fields">
  Enrich contacts with AI
</h2>

<img src="https://mintcdn.com/genesyai/spdphGKAygQftEq3/images/workflows/blocks/fill-lead-with-smart-fields.svg?fit=max&auto=format&n=spdphGKAygQftEq3&q=85&s=b570fcc52b069cce9f9d7c56cd2a8a52" alt="" width="260" height="96" noZoom data-path="images/workflows/blocks/fill-lead-with-smart-fields.svg" />

Lets AI complete any field on the contact from a prompt you provide.

Use it for judgment calls a data provider can't answer directly, e.g. drafting a one-line summary of a contact's likely priorities.

**Settings**

| Setting   | Required | What it controls                                  |
| --------- | -------- | ------------------------------------------------- |
| AI fields | Yes      | Which AI-computed fields to fill for the contact. |

**Output**: the contact, with the selected AI fields filled in.

**Requirements**: AI-powered step, consumes Enginy credits.

<h2 id="fill-company-with-function-fields">
  Evaluate company with formula field
</h2>

<img src="https://mintcdn.com/genesyai/spdphGKAygQftEq3/images/workflows/blocks/fill-company-with-function-fields.svg?fit=max&auto=format&n=spdphGKAygQftEq3&q=85&s=ea775a81390eb973b81b94bb80ff1d48" alt="" width="260" height="96" noZoom data-path="images/workflows/blocks/fill-company-with-function-fields.svg" />

Runs your own code snippet or formula to fill a variable on the company.

Use it for deterministic derived values you want computed exactly the same way every time, rather than left to AI judgment.

**Settings**

| Setting        | Required | What it controls                                  |
| -------------- | -------- | ------------------------------------------------- |
| Formula fields | Yes      | Which formula fields to evaluate for the company. |

**Output**: the company, with the selected formula fields filled in.

<h2 id="fill-lead-with-function-fields">
  Evaluate contact with formula field
</h2>

<img src="https://mintcdn.com/genesyai/spdphGKAygQftEq3/images/workflows/blocks/fill-lead-with-function-fields.svg?fit=max&auto=format&n=spdphGKAygQftEq3&q=85&s=e4e478f570b68146ec8e71d776d9d8e5" alt="" width="260" height="96" noZoom data-path="images/workflows/blocks/fill-lead-with-function-fields.svg" />

Runs your own code snippet or formula to fill a variable on the contact.

Use it for deterministic derived values you want computed exactly the same way every time, rather than left to AI judgment.

**Settings**

| Setting        | Required | What it controls                                  |
| -------------- | -------- | ------------------------------------------------- |
| Formula fields | Yes      | Which formula fields to evaluate for the contact. |

**Output**: the contact, with the selected formula fields filled in.

<h2 id="run-ai-agent-on-leads">
  AI Agent on contacts
</h2>

<img src="https://mintcdn.com/genesyai/spdphGKAygQftEq3/images/workflows/blocks/run-ai-agent-on-leads.svg?fit=max&auto=format&n=spdphGKAygQftEq3&q=85&s=29ce4c9eb903f7a43b52d99b70ef0430" alt="" width="260" height="96" noZoom data-path="images/workflows/blocks/run-ai-agent-on-leads.svg" />

Runs an autonomous AI agent with your prompt and the selected Enginy tools over these contacts. The contacts the agent returns continue in the workflow.

Use it for multi-step tasks that need the agent to reason and take actions across a set of contacts, rather than fill in a single field.

**Settings**

| Setting | Required | What it controls                                |
| ------- | -------- | ----------------------------------------------- |
| Prompt  | Yes      | The instructions the agent follows.             |
| Tools   | No       | Which Enginy tools the agent is allowed to use. |
| Model   | No       | Which AI model powers the agent.                |

**Output**: the subset of contacts the agent returns, continuing on to the next step.

**Requirements**: AI-powered step, consumes Enginy credits.

<h2 id="run-ai-agent-on-companies">
  AI Agent on companies
</h2>

<img src="https://mintcdn.com/genesyai/spdphGKAygQftEq3/images/workflows/blocks/run-ai-agent-on-companies.svg?fit=max&auto=format&n=spdphGKAygQftEq3&q=85&s=37ae1b291ccfa083184a74b66c0ce8f0" alt="" width="260" height="96" noZoom data-path="images/workflows/blocks/run-ai-agent-on-companies.svg" />

Runs an autonomous AI agent with your prompt and the selected Enginy tools over these companies. The companies the agent returns continue in the workflow.

Use it for multi-step tasks that need the agent to reason and take actions across a set of companies, rather than fill in a single field.

**Settings**

| Setting | Required | What it controls                                |
| ------- | -------- | ----------------------------------------------- |
| Prompt  | Yes      | The instructions the agent follows.             |
| Tools   | No       | Which Enginy tools the agent is allowed to use. |
| Model   | No       | Which AI model powers the agent.                |

**Output**: the subset of companies the agent returns, continuing on to the next step.

**Requirements**: AI-powered step, consumes Enginy credits.
