---
title: "AI fields: let AI fill any field in Softr Databases"
description: "Let AI fill a field in Softr Databases: summarize, categorize, extract details from files or search the web. Choose the model, the prompt and when it runs."
canonical: "https://docs.softr.io/databases/ai-fields"
updated: "2026-12-04"
---

# AI fields: let AI fill any field in Softr Databases

An AI field is a field that AI fills for you. You write a prompt that uses the other fields of the record, and the AI writes the value: a summary, a category, a score, details from a PDF, or facts from the web. AI fields are also called database AI agents.

You choose when the field runs, and you can still edit its value by hand.

## Add an AI field

1. **Turn on AI for a field**

   Open your table in Softr Databases. Add a field and choose the **AI agent** type. Or edit an existing field, open its **AI agent** tab and turn on **Let AI auto-fill this field**.

   ![The AI agent tab of the Brief field, a long text field. The Let AI auto-fill this field switch is outlined and off. Below it are the templates Summarize text, Categorize text, Write, Extract, Translate and All templates](/databases/ai-fields/ai-agent-tab-off.2x.webp)
2. **Pick a model and write your prompt**

   Write your prompt, such as "Summarize the resume into key skills". Type **@**, or select the **@** button, to use another field of the record in the prompt. Select **Improve** to let AI rewrite your prompt. Then, under **Model**, pick a model from Anthropic, OpenAI, Google or Mistral.

   ![The AI agent tab of the Summary field, with the prompt outlined: Summarize the project brief Brief in one sentence for the client Client. The model is Claude Sonnet 5.5](/databases/ai-fields/ai-prompt.2x.webp)
3. **Choose when it runs**

   Under **Run when**, choose the events that fill the field. See [Run when options](#run-when-options). Add an **Only run if...** condition to fill only matching records, such as **Status** is **Approved**.

   ![The Run when section, outlined: Triggered manually, New record is created and Existing record is updated (when Brief changes) are on. Below are Skip when value already exists and Only run if... (Optional) with a Filter button](/databases/ai-fields/ai-run-when.2x.webp)
4. **Preview and save**

   Under **Preview**, select a record, then select **Run**. The result shows the generated value and the AI credits the run used. Select **Save** to activate the field.

   ![The Preview section of the AI agent tab, outlined: the record Website redesign is selected, and the result reads A new website with pricing, blog and client login for Northwind Traders, for 2 credits](/databases/ai-fields/ai-preview.2x.webp)

## Start from a template

If the prompt is empty, the AI agent tab offers ready-made templates: **Summarize text**, **Categorize text**, **Write**, **Extract** and **Translate**. Select **All templates**, or **Template** above the prompt, to open the **AI prompt templates** library. It groups templates in **Generate**, **Summarize & Extract**, **Categorize**, **Research** and **Format & Convert**. Pick one to get a prompt you can change.

![The AI prompt templates library on its Generate category: Suggest knowledge base article, Draft job description, Write, Proofread, Translate, Create product description and more](/databases/ai-fields/ai-prompt-templates.2x.webp)

## Settings

| Setting                        | What it does                                                                                                  |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------- |
| **Allow manual edits**         | Lets people and automations edit the value, in addition to the AI. Turn it off to make the AI the only writer |
| **Model**                      | The AI model that writes the value. The list shows what each model is best for and its credit cost            |
| **Allow web search**           | Lets the AI browse the internet when it needs current information                                             |
| **Allow creating new options** | On **Select** and linked record fields only. Lets the AI add options that do not exist yet                    |

![The open model list, outlined: Claude Fable 5.1, Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5 and Claude Sonnet 5, each with what it is best for and a credit cost icon](/databases/ai-fields/ai-model-list.2x.webp)

## Run when options

| Option                             | What it does                                                              |
| ---------------------------------- | ------------------------------------------------------------------------- |
| **Triggered manually**             | Runs only when you start it. Use it to test, or for expensive prompts     |
| **New record is created**          | Runs when a record is added                                               |
| **Existing record is updated**     | Runs when a record changes. Choose the fields whose change starts the run |
| **Skip when value already exists** | Keeps values that are already filled, so the AI never overwrites them     |
| **Only run if...**                 | Runs only for records that match your conditions                          |

## Search the web

Turn on **Allow web search**, then tell the AI in your prompt what to look up and how to format the answer. For example:

**Web search prompt**

Find the latest average delivery rates in Ontario. Extract the number and cite the domain in brackets.

Preview the result before you turn on automatic runs. Add a condition such as "Market data is empty" to search only when needed.

## Extract details from files

Store the file in a **File** field, or its link in a **URL** field. Reference that field in your prompt with **@**, for example "Summarize this contract: @Contract". The Extract templates are a good start. See [Limits and specs](/databases/limits) for the image and PDF sizes the AI can read.

## Fields that can use AI

Most text-like fields can use AI. The AI cannot write to system fields (ID, created and updated dates) or to calculated fields (**Formula**, **Rollup**).

## AI credits

Every plan, including Free, includes AI credits each month. Each run uses credits. The cost depends on the model, the input size, web search and the length of the output.

- Use **Preview** to estimate the cost of a run before you save. Real runs vary.
- If you run out of credits, AI features pause until your credits reset or you add more.
- See your usage on the **Plan & billing** page, in the workspace menu.

See [AI credits](/admin/ai-credits).
