Skip to main content

Customize Contact Fields

DialerAI's contact form ships with a standard set of fields, but many organizations track information the standard fields don't cover: a debt reference number, a lead source, a credit score. Custom contact fields let an operator add exactly those fields for one organization, without changing the product for everyone else.

Custom fields are configured per organization, in the admin panel, under the same Contact Settings fieldset introduced in Create Organizations and Users. This page explains how to define the fields themselves.

Self-service alternative

For the common field types (Text, Long text, Number, Select, Checkbox, Date), an organization Owner can manage the same fields without operator access, under Settings → Contact Fields. The two edit the same configuration: changes made on either side appear on the other. Use the admin panel for anything the self-service page cannot express, such as nested objects, other JSON Schema formats, or custom widgets; those fields show as Advanced rows on the self-service page and are preserved as-is when it saves.

Where to configure it​

Open the organization's record in Organizations → Organizations, and scroll to Contact Settings. Two JSON fields control the custom fields, plus one list field for imports:

Contact Settings section in the admin panel showing the jsonschema, uischema, and Fields contact import editors

FieldWhat it does
Contact custom field jsonschemaDefines the fields themselves: their names, types, and titles. This is the only field that's required to add a new custom field.
Contact custom field uischemaControls how those fields are laid out and rendered on the contact form: display order and column width. Optional; without it, fields render in the order they appear in the JSON Schema, at full width.
Fields contact importThe subset of custom field names that contact imports recognize and map CSV columns to. A custom field not listed here can still be edited on the contact form, but can't be populated by import.

Leave all three empty for the product's standard contact fields only.

Define the fields (jsonschema)​

Contact custom field jsonschema is a JSON Schema object whose properties are the custom fields. Each property needs a type and a title (the label shown on the form); an enum turns a text field into a dropdown.

{
"type": "object",
"required": [],
"properties": {
"debt_ref": {
"type": "string",
"title": "Debt Reference"
},
"lead_source": {
"enum": ["Facebook", "Twitter", "TikTok", "YouTube", "Bluesky", "Other"],
"type": "string",
"title": "Lead Source"
},
"loan_amount": {
"type": "string",
"title": "Loan Amount"
},
"credit_score": {
"type": "string",
"title": "Credit Score"
},
"lead_channel": {
"type": "string",
"title": "Lead Channel"
}
}
}
KeyWhat it does
Property name (e.g. debt_ref)The internal field name. Used as the JSON key on the contact record, and referenced by name in uischema and Fields contact import. Not shown to users.
typestring renders a plain text input. Combine with enum for a dropdown of fixed choices instead.
titleThe field label shown on the contact form.
enumAn optional list of allowed values, rendered as a dropdown instead of free text.
requiredProperty names listed here must be filled in before the contact form can be saved. Leave the array empty ([]) to make every custom field optional.

Control layout (uischema)​

Contact custom field uischema is a matching react-jsonschema-form UI Schema. It doesn't add or remove fields, it only controls how the fields from jsonschema are ordered and sized:

{
"ui:order": ["lead_source", "lead_channel", "credit_score", "loan_amount", "debt_ref"],
"debt_ref": {
"ui:classNames": "my-1 px-1 w-full md:w-1/4 lg:w-1/4 xl:w-1/4",
"ui:emptyValue": ""
},
"lead_source": {
"ui:classNames": "my-1 px-1 w-full md:w-1/4 lg:w-1/4 xl:w-1/4",
"ui:emptyValue": ""
}
}
KeyWhat it does
ui:orderA top-level array naming every property, in the order fields should appear on the form.
ui:classNamesPer-field Tailwind classes. The w-1/4 variants above lay out four fields per row on medium screens and wider, falling back to w-full (one per row) on narrow screens.
ui:emptyValueThe value stored when the user leaves the field blank. "" keeps it an empty string rather than null.

Repeat the ui:classNames / ui:emptyValue block for every property named in jsonschema; a property with no entry here still renders, using the library's defaults.

Result on the contact form​

Once both fields are saved, the custom fields appear under Extra/Custom Fields on that organization's contact form, matching the titles, order, and widths configured above:

Custom fields section on a contact record, showing Lead Source, Lead Channel, Credit Score, and Loan Amount

A Show/Hide Json data button lets a user viewing the contact inspect the raw JSON stored for these fields, which is useful when troubleshooting a value that arrived through import or the Contacts API.

Custom fields for per-contact audio​

A custom field can hold the URL of an audio file that a Flow plays for that contact only. Add one plain string property per recording, for example:

"audio_url_1": {
"type": "string",
"title": "Audio URL 1"
},
"audio_url_2": {
"type": "string",
"title": "Audio URL 2"
}

The property name is free, and you can add as many as the organization needs. A Flow author then references the field as {contact.audio_url_1} in a text-to-speech script. See Play a different audio file for each contact.

Make custom fields importable​

Adding a field to jsonschema makes it editable on the contact form, but a contact import only maps CSV columns to custom fields listed in Fields contact import. Add the property name (not the title) to this list for every custom field the organization needs to populate through CSV import:

lead_source
loan_amount
credit_score
lead_channel
debt_ref

Use the arrows next to each entry to reorder them, or Add item to add another. The order here only affects the admin panel's own display; it doesn't change import column matching, which is done by field name.