# Filling in client details automatically

> Use variables to fill in client names in emails and client, booking and invoice details in contracts, and add blanks your client fills in when signing.

Source: https://help.corehue.co/docs/getting-started/smart-fields/

Variables let you write something once and have every client see their own details in it. Emails have a small set, contracts have a much bigger one, and contracts can also hold blanks your client fills in as they sign.

## Adding a variable to an email

1. Click in the text where the detail should go.
2. Open **Variables** in the toolbar above the text box.
3. Pick a variable.

A tag drops into your text and turns into the real detail when the email goes out. So "Hi **Client's first name**, thanks for getting in touch" reaches Kate as "Hi Kate, thanks for getting in touch."

Emails have five variables: **Client's first name**, **Business name**, **Business email**, **Today's date** and **Current year**. They work in the subject line too.

### Where email variables work

- Every send screen, for invoices, proposals, contracts, questionnaires, bookings, receipts and reminders.
- Saved [email templates](/docs/templates/email-templates) under **Templates → Emails**.
- Booking confirmations and inquiry replies under **Bookings → Settings → Emails**. See [Booking confirmation and reminder emails](/docs/online-booking/booking-emails).
- **Messages**, where the tag shows your client's real name straight away.

The gallery email doesn't offer **Client's first name**, because one gallery email can go to several people. Write that greeting yourself.

When a contact has no name on file, **Client's first name** reads "there". "Hi there" still works, but "Thanks, there" doesn't, so write greetings that read well either way.

## Adding variables to a contract

Contracts have variables in six groups, inserted from the contract editor's toolbar:

- **Client**, like Client Name, Client Email and Client Address
- **Business**, like Business Name, Business Phone and Registration Number
- **Contract**, like Contract Number and Expiry Date
- **Booking**, like Booking Date, Start Time, Venue, Package and Add-ons
- **Invoice**, like Invoice Total, Deposit and Balance
- **Dates**, Today's Date and Current Year

Write your contract once with **Client Name** and **Booking Date** in it, and every contract you send carries the right details. On a contract you create yourself, client variables come from its **Contact**, booking variables from the booking you pick under **Booking**, and invoice variables from the one under **Invoice**.

A variable needs something to fill it. If a contract uses a booking variable but has no booking picked, or you haven't added your business phone, the contract won't send. A **Cannot send contract** window lists each variable that's missing and why, so you can pick the booking under **Booking**, add the detail, or take the variable out. See [Variables and blanks in contracts](/docs/contracts/smart-fields-and-blanks).

## Adding blanks your client fills in

Some details only your client knows, like an emergency contact or their venue coordinator's name. For those, add a client field to the contract: a text or date blank your client fills in while they sign. Each one can be required or optional, and the answers are locked into the signed contract.

Give each field a clear label. "Name of your day-of coordinator" is much easier to answer on a phone than "Coordinator".

## Choosing a variable or a blank

Ask yourself one question: do I already know this? If you do, use a variable and it's filled in when you send. If only your client knows, add a blank and they fill it in while signing.

## Frequently asked questions

### Can I add the service name or price to an email?

Not with a variable. Type those details in yourself, or put them in a contract, where **Service Name** and **Invoice Total** are available.

### Do questionnaire answers fill into a contract?

No. Answers stay with the questionnaire. Add a client field to the contract, or copy the detail in before you send.

### Can my client see an empty variable in a contract?

No. A contract won't send until every variable in it can be filled, so your client never sees a gap.

### If I edit an email template, do emails I've already sent change?

No. Using a template copies it, so later edits only affect new emails.
