# Agency Details

## Agency Details

**File:** `src/config/config.toml` (`[business]`) · **Skill level:** Beginner

Your agency name, phone number, email, office address and opening hours are written **once**, in the `[business]` table of `config.toml`. The pages read them from there: the header, the mobile menu, the bottom strip of the Properties mega menu, the footer, the contact page, the inquiry form panel, the form error messages, the legal pages, the structured data for search engines, and `llms.txt`. Change a number here and it changes everywhere.

All the shipped values are samples. The phone numbers use the made-up 555-01xx range and the address is invented. Replace them before you launch.

### The Business Table
```toml
# src/config/config.toml
[business]
  name         = ""                  # Empty uses site.title
  legalName    = ""                  # Optional, for structured data
  type         = "RealEstateAgent"   # RealEstateAgent | LocalBusiness | ProfessionalService
  phone        = "+15550100199"      # sample. E.164 format, used for tel: links. Empty hides every call link
  phoneDisplay = "(555) 010-0199"    # sample. How the number is shown
  sms          = "+15550100198"      # sample. Optional E.164 number for text messages
  smsDisplay   = "(555) 010-0198"    # sample
  email        = "hello@example.com" # sample. PLACEHOLDER: replace
  priceRange   = "$$"                # Shown in structured data
```

| Key | What to write |
| --- | ------------- |
| `name` | Your agency name. Leave it empty to use `[site] title` |
| `legalName` | Your registered company name, if it is different. Only used in structured data |
| `type` | The kind of business for search engines. Ships as `RealEstateAgent`, which fits most agencies. The other allowed values are `LocalBusiness` and `ProfessionalService`. Anything else prints a build warning and `LocalBusiness` is used |
| `phone` | The number as it is dialed, in **E.164** format: `+`, the country code, then digits only. `+15551234567`, `+447700900123`. Call links use this |
| `phoneDisplay` | The number as people read it: `(555) 123-4567`, `07700 900123` |
| `sms`, `smsDisplay` | A mobile number that takes text messages, in the same two formats. Optional |
| `email` | Your public email address |
| `priceRange` | `$`, `$$` or `$$$`. Only used in structured data |

<Aside type="caution" title="Use the E.164 format for phone">
  A number with spaces, dashes or brackets in `phone` is cleaned up, but a
  number without the `+` and the country code isn't valid. The build then
  prints a `[business]` warning and ignores the value, and the call links
  disappear. The build never fails on these values, so read the warnings.
</Aside>

Each agent has their own phone and email in their agent file, and those show on the agent's profile and on the listings they handle. See [Agents](/lotline/customization/agents/).

### Address
```toml
  [business.address]
    show       = true   # false = street and postal code are hidden everywhere
    street     = "100 Example Street, Suite 200" # sample
    locality   = "Springfield" # city, sample
    region     = "ST"          # state or province, sample
    postalCode = "00000"       # sample
    country    = "US"          # ISO 3166-1 alpha-2
```

`country` is the two-letter country code (`US`, `CA`, `GB`, `FR`). If clients don't visit your office, set `show = false`. The street and postal code are then hidden on every page, and only the city and region show.

The **See on map** link in the footer and on the contact page is a plain map search built from this address. It loads no map on your page and sends no tracking data.

`[business.geo]` takes an optional `latitude` and `longitude` for map results. Leave both empty if you're not sure.

### Opening Hours
```toml
  # Opening hours per day, 24-hour "HH:MM-HH:MM". Several ranges: "08:00-12:00,13:00-17:00". Empty = closed.
  [business.hours]
    mon = "09:00-18:00" # sample
    tue = "09:00-18:00" # sample
    wed = "09:00-18:00" # sample
    thu = "09:00-18:00" # sample
    fri = "09:00-18:00" # sample
    sat = "10:00-16:00" # sample
    sun = ""
```

- Use the 24-hour clock: `"09:00-17:30"`, not `"9am-5:30pm"`.
- A lunch break is two ranges: `"09:00-12:00,13:00-17:00"`.
- `""` means closed that day.
- Hours that run past midnight are not supported.

The site groups days with the same hours and writes the times in the format of the page's language.

### Where Each Value Appears
| Value | Where it shows |
| ----- | -------------- |
| `phone`, `phoneDisplay` | The header from 1320 px wide (`overlay` and `bar`), the strip of the `utility` header, the **Call** button in the mobile menu, the bottom strip of the Properties mega menu, the `columns` and `pine` footers, the first office on the contact page, the inquiry form panel, and `{phone}` in text |
| `email` | The `utility` strip, the `columns` and `pine` footers, the first office on the contact page, the inquiry form panel, and `{email}` in text |
| `address` | The **Office** column of the `columns` and `pine` footers, the first office on the contact page, and `{address}` in text |
| `hours` | The `utility` strip, the contact page, and `{hours}` in text |
| `name` | The **Office** column of the footer, the structured data, `llms.txt`, and the default author meta tag |
| `type`, `legalName`, `priceRange`, `geo` | The structured data (JSON-LD) only |
| Everything | The agency entry in the structured data on every page, and the top of `/llms.txt` |

The contact page lists offices in `src/content/contact/english/-index.md`. The first office takes its address, phone and email from `[business]` when its own fields are empty. The other offices are typed in that file. See [Pages](/lotline/customization/pages/).

The name in the header logo is not `[business] name`. It is `logoText` in `[site]`. The footer copyright uses `{brand}`, which is `site.title`. When you rename the agency, change all three. See [Site Identity & Logo](/lotline/customization/site-identity-logo/).

### Use The Details In Your Own Text
In the body of a Markdown (`.md`) file, such as the legal pages, you can type these tokens and the site fills in the value:

| Token | Becomes |
| ----- | ------- |
| `{name}` | `[business] name` |
| `{phone}` | `phoneDisplay` |
| `{email}` | `email` |
| `{address}` | The address, written for the page's language |
| `{hours}` | The opening hours, grouped by day |

The privacy policy, terms and cookie policy already use them. Form error messages and the announcement bar text take them too, for example `That didn't send. Call {phone} or email {email}.` in `src/content/contact/english/-index.md`. `.mdx` files read `{…}` as code, so the tokens don't work there. The blog posts are `.mdx`.

### Check It
1. Run `npm run dev` and read the terminal. A `[business]` line names any value that was ignored.
2. Open the site at phone width and open the menu. Tap **Call**: your phone app should open with your number.
3. Open `/contact/` and check the phone, email, address and hours.
4. Open `/privacy-policy/` and check that your name, email and address appear in the text.
5. In a browser, view the page source and search for `"telephone"` to see the number search engines get.

### Do It With AI
```text
Set my agency details in [business] of src/config/config.toml: name "[NAME]", phone
[NUMBER] (convert it to E.164 for phone and keep my format for phoneDisplay), email [EMAIL],
address [STREET, CITY, REGION, POSTAL CODE, COUNTRY], hours [DAYS AND TIMES].
[We don't take texts: set sms and smsDisplay to "".] Remove the "# sample" comments on the
values you change. Don't touch the agent files.
```