# Collect custom ticket fields with your AI agent > Define the details your AI agent collects when it creates a ticket, then read and edit them on every ticket Custom fields are the details your AI agent collects from customers when it creates a ticket, such as an order number, a delivery date or a photo of the damage. You define a field once under **Settings › Custom fields**, add it to a create-ticket action, and the AI agent asks for it during the conversation. The answer lands on the ticket, typed and labelled, where your team can read and edit it. Fields are shared across an AI agent's actions. Two create-ticket actions that both collect *Order number* write to the same field, so tickets look the same whichever conversation created them. > [!NOTE] > > Fields are collected by a create-ticket action on the QwryAI Helpdesk. Tickets a teammate creates with **New ticket**, and tickets from a takeover, don't collect fields. ## Anatomy of a field The **Custom fields** tab describes them as *the details your AI agent collects from customers, such as an order number or a company size. Define a field once, then add it to the actions that should ask for it.* ![The Custom fields tab under Settings with its introduction, the Search fields box, the field count, the New field button under the pointer, and a table listing the built-in Subject and Description fields.](annotated/01-fields-empty.webp "Settings › Custom fields, with the built-in Subject and Description.") | Property | What it does | | - | - | | **Internal label** | The name your team sees in the Helpdesk, such as *Refund Order ID*. | | **Customer-facing label** | The name the AI agent uses with customers when it asks for the value, such as *Order number*. A noun phrase works best. | | **Type** | What the value can be and how it shows on the ticket. It can't be changed after the field is created. | | **Collection instructions** | Optional guidance for the AI agent on how to get the value and what a valid answer looks like, for example *it starts with SL and has 8 digits*. | ### Field types | Type | Holds | | - | - | | **Text** | Free text | | **Number** | A number | | **Boolean** | A yes or no answer, shown as **Yes** or **No** on the ticket | | **Date** | A calendar date | | **Email** | An email address | | **Image** | A photo the customer uploads | | **Dropdown** | One of the options you define | **Subject** and **Description** are built in. Every ticket has them, and the list marks them **Built in**. ## Create a field **1. Open Custom fields** Go to **Settings › Custom fields** for your AI agent and select **+ New field**. **2. Pick the type** Choose **Text**, **Number**, **Boolean**, **Date**, **Email**, **Image** or **Dropdown**. Pick carefully: the type is fixed once the field is created. ![The New field panel with the Type choices Text, Number, Boolean, Date, Email, Image and Dropdown, the Internal label and Customer-facing label fields, the Collection instructions box, and the pointer on Dropdown.](annotated/02-new-field.webp "Pick the type, then fill in the labels.") **3. Fill in the labels and instructions** Type the **Internal label** and the **Customer-facing label**, then tell the AI how to get the value under **Collection instructions**. ![The New field panel with Dropdown selected, Refund reason as the internal label, Reason for the refund as the customer-facing label, and the collection instruction Ask why they want a refund, then pick the closest option.](annotated/03-labels.webp "Name it for your team and for customers, and tell the AI how to get it.") **4. Add options (Dropdown only)** Under **Options**, type an option in *Add an option and press Enter* and press **Enter**. Each option has an **INTERNAL** and a **CUSTOMER-FACING** label, and you can drag options into order or remove them. ![The Options section of the New field panel with INTERNAL and CUSTOMER-FACING columns listing Damaged item, Wrong size and Arrived late, each with a reorder handle and remove button, and Changed my mind being typed into the Add an option and press Enter box.](annotated/04-options.webp "Type an option and press Enter to add it.") **5. Create it** Select **Create field**. The field appears in the list with its customer-facing label, its instructions and its type. ![The Custom fields list with Subject and Description marked Built in and the new Refund reason field showing its customer-facing label Reason for the refund, its collection instruction, the type Dropdown, and the pointer on its edit button next to the archive button.](annotated/05-created.webp "The new field in the list, with its customer-facing label, instruction and type.") ## Collect fields when creating tickets **1. Open the create-ticket action** In your AI agent's **Actions**, open a create-ticket action for the QwryAI Helpdesk. The **Collect additional details** section lists what it collects: the built-in **Email**, **Name**, **Subject** and **Description**, then your fields. **2. Add fields** Select **Add field**, search with *Search fields...*, and pick the fields this action should collect. **Create a new field** opens the same panel as in Settings, and **Manage fields** opens **Settings › Custom fields** in a new tab. **3. Choose required or optional** Each field has a **Collected as** switch. A required field must have a value before the ticket is created; an optional one can stay empty. Use the pencil to edit the field itself, or the **X** to remove it from this action. **4. Choose how details are collected** Under **How should details be collected?**, pick **Collect conversationally** for *Fields the AI gathers in conversation before creating the ticket*, or **Collect from a form** for *Fields visitors fill in the chat form before the ticket is created*. > [!TIP] > > In the Custom fields list, a small stack icon with a number before a field's name shows how many actions collect it. Hover it to see which ones. ## Field values on the ticket Every ticket a create-ticket action made shows its fields in the **Details** panel, under the ticket's other details. A field the customer didn't answer reads **Not set**. * **Edit a value** with the pencil next to it. The editor follows the type: **Yes** or **No** for Boolean, the options for Dropdown, a date picker for Date. Save with the tick, or cancel with the **X**. * **Clear a value** by emptying it, or for Boolean and Dropdown fields by choosing **Not set**. * **Follow the history** in the ticket's activity, where every change is recorded with who made it. ## Edit or archive a field Select the pencil on a field's row to edit it. The panel shows *Type can't be changed after creation*; everything else, including the options, can be changed with **Save changes**. ![The Refund reason panel opened for editing, with the type shown as Dropdown and the note Type can't be changed after creation, the two labels, the instruction, and Archive field, Cancel and Save changes at the bottom.](annotated/06-edit.webp "A saved field's type can't be changed.") To retire a field, select the archive button on its row, or **Archive field** in the panel. Archived fields move to an **Archived** section, *Kept for history. Data already collected stays intact*: * The AI agent stops collecting the field. * Values already on tickets stay visible. * Actions that still list it show it as **Archived**. * Select **Restore** to bring it back with all its values. Fields can't be deleted, so tickets never lose a value they already hold. ## Where custom fields work | Feature | Custom fields | | - | - | | Ticket **Details** panel | Yes, shown and editable. | | [Triggers](/docs/user-guides/chatbot/help-desk/triggers) and [Automations](/docs/user-guides/chatbot/help-desk/automations) | No. | | [Macros](/docs/user-guides/chatbot/help-desk/macros) | No. Macro variables don't include custom fields. | | [Satisfaction surveys](/docs/user-guides/chatbot/help-desk/satisfaction-surveys) | No. | | [AI draft replies](/docs/user-guides/chatbot/help-desk/ai-draft-replies) | No. Drafts don't read custom fields. | | [Slack ticket threads](/docs/user-guides/chatbot/help-desk/slack-ticket-threads) | No. | ## Limits | Limit | Value | | - | - | | Fields per AI agent | 200 | | Fields collected per action | 20 | | Image fields collected per action | 5 | | Internal / customer-facing label | 50 characters | | Collection instructions | 200 characters | | A value edited on a ticket | 2,000 characters | One action can't collect two fields with the same customer-facing label, since the customer couldn't tell them apart. ## Frequently asked questions > [accordion] Can teammates fill in custom fields by hand? > > Yes, on tickets whose create-ticket action collects those fields. Use the pencil next to the field in the ticket's **Details** panel. > [accordion] Can I change a field's type? > > No. The type is fixed once the field is created. Archive it and create a new field with the type you need. > [accordion] Can I delete a field? > > No. Archive it instead. Archived fields stop being collected and keep the values already on tickets. > [accordion] Is there a multi-select field type? > > No. The types are Text, Number, Boolean, Date, Email, Image and Dropdown, and a Dropdown holds one option. > [accordion] Can I use custom fields in triggers? > > Not yet. Trigger and automation conditions use ticket and contact details such as status, tags, subject and email.