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

# Custom fields

> Tell your agent which details to pick up from each conversation and save to the lead.

Custom fields are the details your agent looks for in its conversations, such as the area a buyer wants or how many bedrooms they need, and saves to the lead. Each agent has its own list, and it works the same for text and voice agents.

## How it works

* There are two kinds:
  * **Data**: saved to the lead and shown on the lead card.
  * **Tags**: also shown next to the lead's name in **Conversations** and usable as filters. See [Tags](https://docs.newlead.ai/guide/conversations/tags.md).
* Each field has a **Name**, the name it gets on the lead, and **What it is**, which the agent reads to recognise the value. The more specific the better: "how many bedrooms they are looking for" beats "bedrooms".
* **In chat** (WhatsApp, Instagram and web chat), the agent reads the new messages about 5 minutes after the lead's last one and fills in what it found. It also reads voice note transcriptions and what the lead's photos show. It does this even when the AI is paused for that lead.
* **In a call**, the voice agent fills in the fields once the call ends.
* **Voice agents only:** write the field's name between double braces in the instructions or the greeting, and the agent uses the value saved on the lead. For example, `Hi {{first_name}}` becomes "Hi Marta". **When it isn't known** sets what the agent uses while the lead has no value. It's never saved to the lead.
* Text agents don't replace those double braces in their instructions: they would read them literally. They still see every value saved on the lead during the conversation.

## Set it up

**1. Open the agent**

Go to **AI Agents**, open your agent and select **Custom fields** under **Skills and tools**.

**2. Add a field**

Under **Data**, select **Add field**. For a tag, select **Add tag** under **Tags**.

**3. Name it**

In **Name**, pick a name your contacts already have or type a new one: lowercase letters, digits and underscores, starting with a letter.

**4. Say what it is**

In **What it is**, describe the value. It's required for data. A tag without it is never filled in by the agent.

**5. Save**

Select **Save** in the bar at the bottom.

**6. Ask for it in the instructions**

The agent won't ask for any of this on its own. If you want it to find something out, ask for it in the agent's instructions. In a voice agent, use the same name you gave the field.

To change a field's kind or remove it, open its menu and choose **Move to tags**, **Move to data** or **Delete field**.

## Good to know

* An agent can have up to 20 custom fields.
* Reading conversations to fill in fields uses your [wallet](https://docs.newlead.ai/guide/billing/wallet.md) balance. If the balance runs out, the agent stops filling them in and catches up once you top up.
* The agent doesn't fill in fields from leads that arrive by email, from the answers to a Meta Lead Ads form (those are saved as they come) or from messages your team writes.
* Test conversations aren't read.

> [!TIP]
>
> A tag holds one value. Write **What it is** so it asks for one, such as "the main area they are looking in". Otherwise the agent may join several values into one.

## Related

* [Tags](https://docs.newlead.ai/guide/conversations/tags.md)
* [Lead variables](https://docs.newlead.ai/guide/conversations/lead-variables.md)
* [Agent instructions](https://docs.newlead.ai/guide/agents/instructions.md)
* [Custom fields in the API](https://docs.newlead.ai/agent-skills.md#custom-fields)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.