> ## Documentation Index
> Fetch the complete documentation index at: https://docs.introlink.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# The graph

> Connectors, connections, people and companies — the four objects everything else is built from.

> [!NOTE]
>
> Source: `app/src/lib/types.ts`, `app/src/lib/people-table.ts`, `app/src/lib/data/`.

IntroLink has four objects. Almost every endpoint in this documentation is a
read or a write against one of them.

## Connector

A **connector** is a person who contributes their relationship graph to the
org's pooled network — the supply side. Connectors live in `network_connectors`.

Two kinds:

* **You.** Every account has exactly one `is_self` connector row, created on the
  first import. Your LinkedIn connections, Google contacts and WhatsApp address
  book all land under it.
* **Everyone else on the roster.** Someone whose LinkedIn profile you captured
  with the extension. Capturing a profile *is* promoting them to the roster, and
  walking their network fills in who they can introduce you to.

Each connector carries a `group`, which is how the roster is organized:

| Group | Typically |
| - | - |
| `Employees` | your own team — including you |
| `Investors` | your cap table |
| `Customers` | people at accounts you've closed |
| `Portfolio` | companies you've invested in |
| `Advisors` | formal and informal advisors |
| `Others` | the default when a capture didn't say |

An unrecognized group on ingest falls back to `Others` rather than being
rejected.

## Connection

A **connection** is one row a source handed us: "this connector's network
contains this person, and here is what we saw." It is a record of an
observation, not a claim about a human.

Connections are keyed on `(owner_id, connector_id, profile_url)` for LinkedIn
and `(owner_id, connector_id, whatsapp_jid)` for WhatsApp — which is what makes
every ingest route idempotent. Re-syncing the same network updates rows rather
than duplicating them.

The same human very often has several connection rows: a LinkedIn scrape, a
Google contact, a calendar attendee record, a WhatsApp chat, a CSV line. That
duplication is expected and is resolved one layer up.

## Person

A **person** is a human. `people` is a materialized table, derived from
`connections` by the resolver — never written to directly.

```
connections ──▶ identity resolution ──▶ people
 (what a source said)                  (who they are)
```

The fold is deterministic and idempotent: running it twice produces the same
rows the second time. Every import triggers it.

Fields worth knowing:

**id** `string`

The person key — a connection row id, or `connector:<id>` for someone who is
on the roster but whom nobody's connections surfaced.

**via** `PersonVia[]`

Which connectors' networks this person showed up in. **This is the intro
path.** Empty means they're on the roster themselves but unreachable through
anyone's connections.

**sources** `("linkedin" | "google" | "whatsapp")[]`

Every import this person arrived through. Feeds the `channels` component of
relationship strength — holding someone on all three is a much stronger signal
than a LinkedIn edge alone.

**identityCount** `number`

How many identifiers — URL, emails, phone, JID — resolved to this human.

**mergeConfidence** `number`

100 when every folded row shared an identifier with the others. Lower means
something was inferred from a matching name with no shared key, and the merge
is worth a second look. See [Identity resolution](https://docs.introlink.ai/concepts/identity.md).

**strength** `RelationshipStrength`

How well you actually know them — a tier, a 0–100 score, four components, and
a plain-English reason per component. Stamped at read time, never stored. See
[Relationship strength](https://docs.introlink.ai/concepts/strength.md).

### The `via` array is the product

`people.via_ids` is what turns "who can introduce me to a fintech CFO?" from a
search problem into a lookup. Scope a query to `{ kind: "via", id }` and you get
one connector's reachable network; scope it to `{ kind: "in" }` and you get
everyone anybody can reach.

## Company

A **company** is a canonical grouping of people by employer. Raw company labels
are messy — "Kestrel", "Kestrel Logistics Inc.", "kestrel.com" — so a `company_key` is
stamped during the fold and `company_name` holds the display name, which may
differ from the raw `company` label a source wrote.

## How they fit together

```
      network_connectors
       (the supply side)
              │
              │  connector_id
              ▼
        connections  ◀── LinkedIn scrape · Google · WhatsApp · CSV
              │
              │  identity resolution (union-find over identities)
              ▼
           people ──── company_key ────▶ companies
              │
              └── via_ids ──▶ which connectors reach them
```

## Scopes

Every people query is scoped. The five scopes map directly to the tabs in the
app:

| Scope | Means |
| - | - |
| `{ kind: "all" }` | everyone in the directory |
| `{ kind: "in" }` | someone's network reaches them (`via_ids` non-empty) |
| `{ kind: "out" }` | on the roster, but nobody's connections surfaced them |
| `{ kind: "via", id }` | reachable through this one connector |
| `{ kind: "company", key }` | everyone at this company |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.