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

# AI Fields

> Automatically fill in database fields using AI. Categorize, score, summarize, extract information, and more — every row gets filled for you.

AI Fields let you add a prompt to any field so the AI fills in values automatically. Write a prompt like *"Based on @Message, classify this as Bug, Feature Request, Billing, or Question"* and every row gets filled instantly.

You can use AI autofill on **16 different field types** including text, numbers, ratings, dates, select options, checkboxes, and more.

## Set up an AI field

<Frame>
  <img src="https://mintcdn.com/zite/gF_N3ByhVWhGiZlx/help/images/ai-fields-add-field.png?fit=max&auto=format&n=gF_N3ByhVWhGiZlx&q=85&s=2a4df659e4e1f6af2ca129941698d2b0" alt="Add field dropdown showing AI field as the first option" width="661" height="513" data-path="help/images/ai-fields-add-field.png" />
</Frame>

<Steps>
  <Step title="Create or select a field">
    Open your database and click **+ Add field**. Select **AI field** from the field type picker, or click the header of an existing field to add AI to it.
  </Step>

  <Step title="Enable AI autofill">
    Toggle on **AI autofill** at the top of the field settings panel.
  </Step>

  <Step title="Write your prompt">
    Write a plain-language instruction that tells the AI what to generate. Use **@references** to point the AI at the fields it should read. For example:

    * *"Rate the urgency of @Message from 1 to 5, where 5 is extremely time-sensitive"*
    * *"Draft a polite response to @Message based on its @Category. If @Urgency is 4 or 5, apologize for the frustration."*
  </Step>

  <Step title="Choose your AI model">
    Select which AI model to use from the dropdown.
  </Step>

  <Step title="Save">
    Click **Create** (or **Save** if editing an existing field).
  </Step>
</Steps>

<Frame caption="The AI autofill config panel with a prompt referencing @Message">
  <img src="https://mintcdn.com/zite/gF_N3ByhVWhGiZlx/help/images/ai-fields-config-panel.png?fit=max&auto=format&n=gF_N3ByhVWhGiZlx&q=85&s=c30fc1a6d7e0d4fd0cfb3afbd977d0ff" alt="AI autofill config panel showing the toggle enabled, a prompt referencing the Message field, the Insert field button, and Advanced settings" width="861" height="542" data-path="help/images/ai-fields-config-panel.png" />
</Frame>

## Reference other fields

Use **@** to reference other fields in the same row. Click **@ Insert field** below the prompt box or type `@` to open the field picker.

The AI reads the actual data from each row and generates a tailored result. You can reference as many fields as you need.

<Note>
  If a referenced field is empty for a given row, the AI skips that row until the data is filled in.
</Note>

## Run automatically

Open **Advanced settings** and toggle on **Run automatically** to have the AI fill in values the moment a new record is added or a referenced field changes. Your database stays up to date on its own — no manual triggers needed.

Leave it off if you prefer to generate values on demand.

## Protect existing values

Two settings under **Advanced settings** help you avoid overwriting data:

* **Skip if cell already has a value** — the AI won't overwrite cells that already contain something
* **Skip if manually edited** — the AI won't overwrite values you've typed in yourself

## Generate values manually

You don't have to wait for automatic triggers:

* **Single cell** — click the **Auto-fill** button on any empty cell
* **Regenerate** — hover over a filled cell to reveal a regenerate button
* **From the field header** — click the field header and choose:
  * **Generate empty cells** — fills all rows that haven't been generated yet
  * **Regenerate errors** — retries rows that previously failed
  * **Regenerate edited** — regenerates rows you've manually overwritten
* **Generate all in view** — fills all visible cells in the current view (respects your active filters)

<Info>
  Bulk operations are capped at **500 cells** per run.
</Info>

## Enable web search

Need live data? Open **Advanced settings** and toggle on **Enable web search**. The AI pulls in current information when generating values — for example, company details, pricing, recent news, or websites.

This is useful for prompts like *"Find the company website for @Company Name"* or *"What industry is @Company Name in?"*

<Warning>
  Web search uses additional credits per generation.
</Warning>

## Chain AI fields together

AI fields can reference other AI fields. When one field generates a value, any downstream AI field that references it fills in next — like dominoes.

For example, in a support tickets table:

1. **Category** — *"Based on @Message, classify as: Bug, Feature Request, Billing, or Question"*
2. **Urgency** — *"Rate the urgency of @Message from 1 to 5"*
3. **Assigned Owner** — *"Based on @Category, assign to the right person: Bugs = @Alice, Features = @Bob, Billing = @Carol"*
4. **Draft Reply** — *"Draft a response to @Message based on @Category. If @Urgency is 4 or 5, apologize for the frustration. Mention that @AssignedOwner is looking into it."*

A new message comes in and the entire row fills itself — category, urgency, owner, and a drafted reply — in seconds.

<Note>
  Chains work up to **5 levels** deep.
</Note>

<Frame caption="Multiple AI fields filling in automatically — purple cells are currently being generated">
  <img src="https://mintcdn.com/zite/gF_N3ByhVWhGiZlx/help/images/ai-fields-table.png?fit=max&auto=format&n=gF_N3ByhVWhGiZlx&q=85&s=8589f9c7d3e21ac3ca283ffef37fea3f" alt="Database table with Message, Urgency, and Category fields. Some rows are fully generated while others are still in progress." width="932" height="454" data-path="help/images/ai-fields-table.png" />
</Frame>

## When something goes wrong

If the AI can't generate a value, the cell turns amber and shows what happened. Hover over it to see the reason, then click regenerate to retry. You can also use **Regenerate errors** from the field header to retry all failures at once.

## Credits

AI autofill uses credits from your account balance. Before a bulk generation starts, the system checks that you have enough credits. If credits run out mid-batch, cells that already finished keep their values.

Web search-enabled generations use additional credits.

## Works everywhere in Zite

AI fields aren't limited to the database view. When a Zite app or workflow creates or updates a row in a table with AI autofill enabled, the automatic triggers fire the same way — no extra setup needed.

Configure your AI fields once in the database and they work automatically whenever records are created or updated.

<div className="zite-related-topics">
  <a href="/help/database/api/field-types">Field types</a>
  <a href="/help/database/getting-started/formulas">Formulas</a>
  <a href="/help/database/automations/overview">Automations</a>
</div>

<div className="zite-related-topics">
  <a href="/help/database/api/field-types">Field types</a>
  <a href="/help/database/getting-started/formulas">Formulas</a>
  <a href="/help/database/automations/overview">Automations</a>
</div>

<div className="zite-related-topics">
  <a href="/help/database/api/field-types">Field types</a>
  <a href="/help/database/configure-database/formulas">Formulas</a>
  <a href="/help/database/automations/overview">Automations</a>
</div>

<div className="zite-related-topics">
  <a href="/help/database/api/field-types">Field types</a>
  <a href="/help/database/configure-database/formulas">Formulas</a>
  <a href="/help/database/automations/overview">Automations</a>
</div>
