# Contacts: people, campaign linking, and Environments

URL: https://help.hubhus.com/kb/contacts-overview-people-campaigns-and-environments
Category: User & Account Management / Contacts
Updated: 2026-11-03T09:58:32.233+00:00

Summary: Contacts are account-level people (not campaign leads). Create contacts manually or let related campaigns auto-relate and auto-create them. Leads are not imported; they sync from one or more campaigns. Use Contact fields for person data, Campaigns for email/name mapping and sync options, and Environments for magic-login portals.

Contacts are account-level people records in Hubhus. Use them when the same person appears across several campaigns (for example service agreements and service orders), when you want a shared login portal for customers, or when you need to find all leads linked to one email address.

Contacts are not the same as leads. A **lead** lives inside one campaign. A **contact** can connect to many leads across campaigns, and can sign in to an **Environment** (a contact portal) with a magic login link. You do not import leads into Contacts. Leads are synchronized from one or more campaigns that you connect under **Campaigns**.

## Get started in 6 steps

1. **Open Contacts**. From your Hubhus account, open the **Contacts** area in the left menu. You will see four sections: Contacts, Contact fields, Campaigns, and Environments.
2. **Create people**. On **Contacts**, click **+ New contact** to add a person manually. Search finds contacts by name or email. Use **CSV** / **Excel** to export the contact list for offline review. Leads are not imported here; they sync from connected campaigns (next steps).
3. **Add contact fields (optional)**. On **Contact fields**, click **+ New contact field** if you need extra data on the person (beyond email and name).
4. **Connect campaigns**. On **Campaigns** (Campaign contact settings), edit each campaign you want linked. Set **Campaign is related to contacts** to Yes, choose **Contact's email field** and **Contact's name field**, then set **Auto relate contacts and leads** and **Auto create contact for new leads**. Optionally set **Sync in background for leads** to Yes for existing leads.
5. **Create an Environment**. On **Environments**, click **+ New environment**, give it a name and slug. An Environment is a branded login space where contacts can open a customizable web portal.
6. **Build the portal and send login**. Open **Manage** on the environment. Add **Contact web pages**, **Contact forms**, and configure the **Login form** (magic login). From the Contacts list, use **Send login link** when a person should access the portal, or **Find leads** to see leads connected to that contact.

**Navigate:** Contacts (left menu) · **List actions:** Reload, CSV, Excel, Print, Reset, + New contact · **Per row:** Show, Send login link, Find leads, Edit, Delete

**Read more about the Contacts list**

### What you can do on the Contacts list

- **Show** opens the contact detail view.
- **Send login link** emails a magic login link so the contact can open their Environment without a password.
- **Find leads** refreshes and shows leads related to that contact (typically matched on email).
- **Edit / Delete** updates or removes the contact record.
- **Created** shows when the contact was added.

Use export (CSV / Excel) when you need an offline copy or a bulk review of the directory. Export does not import leads; lead linking happens through campaign contact settings.

**Read more about Contact fields**

### Custom fields on the person

Contact fields define extra columns on the contact record (similar in idea to campaign fields, but stored on the contact).

- If the list is empty, click **+ New contact field** to add the first field.
- Use contact fields for data that belongs to the _person_, not to a single campaign lead (for example preferred language, or a stable customer reference).
- Campaign-specific data (status, booking details, order lines) should stay on the lead in that campaign.

**Read more about Campaign contact settings**

### Connect campaigns to Contacts

Open **Contacts → Campaigns** to see every campaign grouped by campaign group. Click a campaign row to open **Edit contacts settings**. For each campaign you can set:

- **Campaign is related to contacts** - turn the link on or off (Yes / No).
- **Auto relate contacts and leads** - automatically link a lead to an existing contact when the email matches.
- **Auto create contact for new leads** - automatically create a contact when none exists for that email.
- **Sync in background for leads** - process existing leads in the background so they relate to contacts over time.
- **Contact's email field** - which lead field holds the email used to match the contact (for example `E-mail`).
- **Contact's name field** - which lead field holds the display name (for example `Navn` or `Name`).

This is how leads enter the Contacts picture: they are synchronized from one or more related campaigns. There is no lead import into the Contacts list.

Typical pattern: set related, auto relate, and auto create to Yes on the campaigns where the same customer should share one contact identity (for example service agreement + service order).

Leave campaigns unrelated when they should stay isolated (for example a one-off quote flow that must not create portal users).

**Read more about Environments (contact portals)**

### What an Environment is

An Environment is a branded login space for contacts. It lets contacts log in to a customizable web page environment (portal) with pages, forms, layouts, and email templates. You can separate brands or customer segments with different Environments (each with its own URL host).

On **Contacts → Environments** you see name, slug, URL, and a **Manage** button. Inside Manage you configure:

- **Contact web pages** - pages the contact sees after login (mark one as home page).
- **Contact forms** - forms available in the portal (content, success actions, embed helpers).
- **Login form** - the magic login form (content, actions, and a link to open the live login page). The admin UI can show that you are not logged in as a contact while editing.
- **Layouts**, **HTML Components**, and **Email templates** - shared building blocks for the portal, same idea as campaign pages/emails.

Use **Back to manage contacts** to return from an environment to the Contacts area.

**Read more about matching, placeholders, and limitations**

### Matching contacts and leads

Email is the usual match key between a contact and leads in related campaigns. When building portal pages, load the current contact and related leads with verified contact components (see below).

### Useful building blocks

- On Environment pages, use contact tokens such as `<hh-contact.name />`, `<hh-contact.email />`, `<hh-contact.magic-link />`, and `<hh-contact.logout-button />`.
- To load the current contact and related leads, prefer `<hh-data.contact include="leads" />` (optional `get="leads"` with `hh-for`). Allowed includes on `hh-data.contact` are `leads`, `leads_count`, and `leadsExists`.
- For lead field values and status in a contact portal, use `<hh-data.leads>` with an email match (for example against `<hh-contact.email />`), because nested includes like `leads.field_values` are not allowed on `hh-data.contact`.
- Contact forms can be embedded with `<hh-contact-forms.embed />`. Contact field values use `<hh-contact-fields.value />` / `<hh-contact-fields.input />`.

### Limitations to keep in mind

- Not every campaign should be related - relating creates shared identity and can auto-create contacts.
- You cannot import leads into Contacts. Leads sync from related campaigns only.
- Contact fields and campaign fields are separate. Do not expect campaign status or booking data to live on the contact by default.
- Magic login requires a valid contact email and a configured Environment login form. Magic links expire after about 30 minutes; the contact can request a new link from a login form.
- Admin preview of portal pages is not the same as being logged in as the contact - always test with **Send login link** on a real or test contact.

## Related articles

- https://help.hubhus.com/kb/understanding-the-hubhus-data-model
- https://help.hubhus.com/kb/what-is-a-campaign-in-hubhus
- https://help.hubhus.com/kb/web-pages-creating-and-managing-web-pages
- https://help.hubhus.com/kb/how-do-i-create-new-users
