> For the complete documentation index, see [llms.txt](https://docs.wonderchat.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wonderchat.io/setup-guides/collecting-leads-with-your-chatbot/custom-lead-fields-and-appointment-booking.md). Agents can also search and read this documentation through its [MCP server](https://docs.wonderchat.io/~gitbook/mcp).

# Custom Lead Fields and Appointment Booking

Ask visitors for more than their name, email and phone: custom questions, multiple choice, and bookable appointment slots.

Custom lead fields let your agent ask for anything beyond name, email and phone, such as company name, team size, how they heard about you, or a time for a call.

{% hint style="info" %}
Custom lead fields are available on the **Scale** plan and above. Each agent can have up to 5 custom fields.
{% endhint %}

***

## Step 1: Add a custom field

1. Go to **Agents** and click **Edit** on your agent's card.
2. Open **Leads** (in the **Engagement** group).
3. Under **Lead Fields**, click **Add custom field**.
4. Fill in the new row:
   * **Field name**: a short name for the answer, for example "Company".
   * The question the agent asks, for example "What company are you with?"
   * The answer type (see below).

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-f2eba298b487dd89aaa05e0276b84e7966f48f60%2Flead-custom-field-booking.png?alt=media" alt="A custom lead field with the Date and time answer type and its slot settings"><figcaption><p>A custom field set to <strong>Date &#x26; time</strong></p></figcaption></figure>

***

## Step 2: Pick the answer type

| Answer type         | What the visitor gives                       | Settings                                                                                              |
| ------------------- | -------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| **Text**            | A free-text answer.                          | **Characters**: **Any** or **Digits only**. **Length**: an optional minimum and maximum.              |
| **Email**           | An email address.                            |                                                                                                       |
| **Phone number**    | A phone number.                              |                                                                                                       |
| **Number**          | A number.                                    |                                                                                                       |
| **Multiple choice** | One option from a list.                      | **Choices**: add at least two with **Add option**. **Display as**: **Dropdown** or **Radio buttons**. |
| **Date & time**     | A date, a date and time, or a bookable slot. | See [Appointment booking](#appointment-booking) below.                                                |

***

## Step 3: Ask for the field

A new custom field isn't asked until you use it. Either:

* In the **Lead Collection** section, click **Add Field** and pick your custom field. It's asked with your other lead fields, in the order shown. See [Collecting Contact Information](https://docs.wonderchat.io/setup-guides/collecting-leads-with-your-chatbot/how-to-collect-user-names-emails-and-phone-numbers-from-users.md).
* Or add it as a step in a [workflow](https://docs.wonderchat.io/setup-guides/adding-chatbot-workflows/set-up-chatbot-workflows.md) (**Add a step** → **Ask the visitor**), to ask it only in a certain situation.

Click **Save** when you're done.

***

## Appointment booking

Pick **Date & time** as the answer type, then choose the **Availability**:

* **Any time**: the visitor picks any date. Under **Collect**, choose **Date only** or **Date & time**.
* **Set slots**: the visitor picks from time slots you offer, like a booking calendar.

### Set slots

| Setting                 | What it does                                                                                                                                                            |
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Slot length**         | How long each slot is, from 15 minutes to 2 hours, or **Custom**.                                                                                                       |
| **Available times**     | When slots can be booked. Pick the days and the start and end time for each row, and click **Add availability** for more rows, for example a different time on Fridays. |
| **Booking window**      | How far ahead visitors can book, from 7 to 90 days.                                                                                                                     |
| **Blocked dates**       | Days with no slots, such as holidays. Click **Add date**, or **Add US holidays** to block the upcoming US federal holidays.                                             |
| **Specific date hours** | Different hours on one date, for example a short day. Pick the date and times and click **Add hours**. These replace the weekly hours on that date.                     |
| **Slot display**        | How visitors see the slots: **Auto**, **Buttons** or **Dropdown**.                                                                                                      |

To close a whole day, add it under **Blocked dates** rather than **Specific date hours**.

Your available times are in your agent's timezone, shown next to **Available times**. Visitors see each slot in their own timezone. They can only pick days that have available times.

{% hint style="info" %}
The handover form has its own **Time slot booking** field with the same settings. See [Handover via email](https://docs.wonderchat.io/setup-guides/human-handover-for-your-chatbots/ai-chatbot-handover-to-human-support-via-email.md).
{% endhint %}

***

If you have any more questions, feel free to reach out to us at <mark style="color:purple;">**<support@wonderchat.io>**</mark>
