# How agents work in PiGi

An agent is a third party who sells your flights and earns commission on them. PiGi has two sides to this: a school manages its agents under Agents in the school admin sidebar, and an agent works their own bookings and commission in a separate portal at /agent/admin. The same agent can be linked to several schools, and is never a member of any of them.

Source: https://help.pigi.io/guides/agents/getting-started/overview

## Quick answers

**What is an agent in PiGi?**
A third party who sells a school's flights and earns commission on them — a tour operator,
a hotel desk, a freelance rep. In PiGi an agent is a record that can be either an
individual or a company, linked to one or more schools. Each link carries its own
commission rates, status and notes.

**Where do I manage my school's agents?**
**Agents** in the school admin sidebar, at `/school/admin/agents`. It has three pages:
**Overview** (the network dashboard), **Agents** (the list) and **Categories**. Agent
commission settlements sit separately under **Finance → Agents**, at
`/school/admin/agents/recons`.

**What is the difference between a linked agent and an external agent?**
An **external** agent is a record your school typed in — a name, email and phone, with no
PiGi login behind it. A **linked** agent has a PiGi account: they can sign in to the agent
portal and see their own bookings and commission. You can create an external agent now and
invite them to link an account later.

**Does an agent become a user of my school?**
No. Accepting an agent invitation links an agent record; it does not create a company
membership. The agent never appears on your **Users** page, cannot be given a school role,
and cannot open your school's admin screens. They only see their own agent portal.

**Can one agent work with several schools?**
Yes. An agent record links to each school separately, so the same agent can sell for three
schools on three different commission rates. In their own portal they see all of those
schools together.

**Who at my school can manage agents?**
Company admins can do everything. Staff on the **bookings** role can add and edit agents
and their rates from the bookings desk, but not agent categories and not commission
settlements — those stay admin-only.

**What is the agent portal?**
The separate workspace an agent signs into, at `/agent/admin`. It has Dashboard, Bookings,
Flights and Schools under **Sell**, Settlements under **Money & Paper**, plus Settings and
Help. An agent lands there because their company type is **agent** — the portal URL is
`/<company type>/<role>/…`.

**An agent says they cannot see a booking they made — why?**
The agent portal only shows bookings that carry an active link to one of their schools. If
the school link was set to Suspended or Terminated, or the booking was captured without
choosing the agent, it drops out of the agent's view even though the school still sees it.

## What this is

Agents are how a school sells through other people. PiGi treats that as two records: an
**agent** (a person or a company, which may or may not have a PiGi login), and an
**agent–school link** for each school that agent sells for. Everything commercial — the
commission rate, which activities they may sell, the relationship status, contacts and
notes — lives on the link, not on the agent. That is why the same agent can earn 15% at
one school and a flat fee at another.

## The two sides

**The school side** lives under **Agents** in the school admin sidebar. From there a school
adds agents, sets what each one may sell and earns, records contacts and notes, and reads a
network dashboard of who is producing. Commission settlements are reached from
**Finance → Agents**.

**The agent side** is a separate portal at `/agent/admin`, which an agent reaches by signing
in to their own agent-type company. It shows their bookings across every school they work
with, the flights those bookings turned into, what each school owes them, and a help centre.

The two sides read the same data through different filters. A booking placed by an agent
belongs to the *school's* company — the agent sees it because it carries their link.

## Before you start

- You need the **admin** role to reach Categories and commission settlements.
- Your school needs at least one bookable activity before commission rates mean anything —
  rates are set per activity.

## Known limitations

- An accepted agent invitation creates no school membership, but the acceptance screen
  still says "You are now a member of *school*". Nothing is broken by this; the wording is
  wrong.
- On the Agents list, the **Agent Status** filter (Linked / External) shows an
  active-filter chip and changes nothing.
- The **Merge Agents** bulk action always fails with an error.
- The **Generate Recon** button on an agent's **Commission** tab does nothing.
- In the agent portal, **Customers**, **Invoices** and **Reports** appear in the sidebar
  marked "Soon" and have no page behind them.

## Related

- [Add an agent](add-an-agent.md)
- [Invite an agent to link their account](invite-an-agent.md)
- [Find and filter your agents](find-your-agents.md)
- [Get started in the agent portal](portal-getting-started.md)
