> ## 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.

# Find an intro, then draft the ask

> Who can introduce you to someone, and a draft of the ask in your Gmail: with an assistant, and with the REST API.

You want to meet someone. IntroLink finds who on your side can introduce you,
strongest first, and writes the ask to that person, with a short note they can
forward. The draft waits in your Gmail drafts. Nothing is sent.

| Step | MCP tool | REST |
| - | - | - |
| 1. Find the person | `search_people`, or name them in step 2 | `GET /v1/people?q=` |
| 2. Every path to them | `find_paths` | `GET /v1/people/{id}/paths` |
| 3. Draft the ask | `draft_ask` | `POST /v1/asks` |

> [!NOTE]
>
> The calls below ran against IntroLink's preview workspace: Pat Preview's
> made-up network. Ids are shortened (`p_ZC1Q5G…`); yours are longer and your
> own.

## With an assistant

Connected to IntroLink ([quickstart](https://docs.introlink.ai/agents/quickstart.md)), ask in plain words:

> Who can introduce me to Tom Hale?

The assistant calls `find_paths` with `person: "Tom Hale"`. A name, a LinkedIn
URL or an id from an earlier answer all work. It answers:

```text theme={null}
Tom Hale, Investor, Keelhaven Equity.

3 paths, strongest first:

1. Dana Reyes (Your contact · 42 emails with you), Medium: Worked together at Keelhaven Equity, 2016 to 2026.
   Draft ask: https://app.introlink.ai/open?ask=p_ZC1Q5G…&via=p_MyndDR…
2. Nora Quinn (Your contact · 26 emails with you), Medium: Worked together at Keelhaven Equity, 2017 to 2026.
   Draft ask: https://app.introlink.ai/open?ask=p_ZC1Q5G…&via=p_l-RYZK…
3. You, directly, Low: 7 emails; LinkedIn.
   Draft ask: https://app.introlink.ai/open?ask=p_ZC1Q5G…
…
```

Then:

> Draft the ask through Dana. I'd like to talk about co-investing in logistics software.

The assistant calls `draft_ask` with `person`, `via` (Dana's id from the
paths) and `goal`, and shows you the draft. It saves nothing yet. Say yes, and
it calls `draft_ask` again with `create: true`, which saves the draft to your
Gmail drafts. Send it from Gmail when you're happy with it.

## With the REST API

Set your key once ([quickstart](https://docs.introlink.ai/agents/quickstart.md#curl-with-an-api-key)):

```bash theme={null}
export INTROLINK_API_KEY=il_live_…
API=https://app.introlink.ai/v1
```

### 1. Find the person

```bash theme={null}
curl -s "$API/people?q=Tom%20Hale" -H "Authorization: Bearer $INTROLINK_API_KEY"
```

```json theme={null}
{
  "object": "list",
  "query": "Tom Hale",
  "matched": 0,
  "data": [
    {
      "id": "p_ZC1Q5G…",
      "name": "Tom Hale",
      "role": "Investor, Keelhaven Equity",
      "url": "https://app.introlink.ai/open?person=p_ZC1Q5G…",
      "best_path": { "via": "You", "strength": "low", "text": "You, directly, Low: 7 emails; LinkedIn.", "…": "…" },
      "path_count": 1,
      "text": "Tom Hale, Investor, Keelhaven Equity. Best path: via You, directly, Low: 7 emails; LinkedIn."
    }
  ],
  "text": "Nobody fits \"Tom Hale\" as a description, but 1 person's name matches: …"
}
```

`q` is a description first ("investors at Keelhaven Equity") and a name when
nobody fits it as one, so `matched` (people who fit the description) is `0`
here and the name match is in `data`. Keep the id:

```bash theme={null}
TOM=$(curl -s "$API/people?q=Tom%20Hale" -H "Authorization: Bearer $INTROLINK_API_KEY" | jq -r '.data[0].id')
```

### 2. Every path to them

```bash theme={null}
curl -s "$API/people/$TOM/paths" -H "Authorization: Bearer $INTROLINK_API_KEY"
```

```json theme={null}
{
  "object": "list",
  "person": { "id": "p_ZC1Q5G…", "name": "Tom Hale", "role": "Investor, Keelhaven Equity", "url": "…" },
  "total": 3,
  "data": [
    {
      "via": "Dana Reyes",
      "via_id": "p_MyndDR…",
      "via_role": "Your contact",
      "your_tie": "42 emails with you",
      "strength": "medium",
      "strength_label": "Medium",
      "evidence": ["Worked together at Keelhaven Equity, 2016 to 2026"],
      "last_contact": null,
      "network": null,
      "trend": null,
      "ask_url": "https://app.introlink.ai/open?ask=p_ZC1Q5G…&via=p_MyndDR…",
      "text": "Dana Reyes (Your contact · 42 emails with you), Medium: Worked together at Keelhaven Equity, 2016 to 2026."
    },
    { "via": "Nora Quinn", "via_id": "p_l-RYZK…", "strength": "medium", "…": "…" },
    { "via": "You", "via_id": null, "via_role": "Direct", "strength": "low", "…": "…" }
  ],
  "company": { "name": "Keelhaven Equity", "known": 2 },
  "colleagues": [ { "name": "Dana Reyes", "…": "…" }, { "name": "Nora Quinn", "…": "…" } ],
  "text": "Tom Hale, Investor, Keelhaven Equity.\n\n3 paths, strongest first: …"
}
```

These are the paths Tom's page in IntroLink shows, in the same order. Search
gave one best path per person, a direct one here; the paths read everything
the person's page reads, and find a stronger one through Dana. `via_id` is who
to ask:

```bash theme={null}
DANA=$(curl -s "$API/people/$TOM/paths" -H "Authorization: Bearer $INTROLINK_API_KEY" | jq -r '.data[0].via_id')
```

### 3. Draft the ask

```bash theme={null}
curl -s "$API/asks" -H "Authorization: Bearer $INTROLINK_API_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"person\": \"$TOM\", \"via\": \"$DANA\", \"goal\": \"co-investing in logistics software\"}"
```

`via` is optional: leave it out for the strongest path. `goal` is one line on
why, in your words. The answer, `200`, is the draft, not yet saved:

```json theme={null}
{
  "object": "ask_draft",
  "saved": false,
  "person": { "id": "p_ZC1Q5G…", "name": "Tom Hale" },
  "via": { "id": "p_MyndDR…", "name": "Dana Reyes" },
  "path": "Dana and Tom work together at Keelhaven Equity.",
  "subject": "Intro to Tom Hale at Keelhaven Equity?",
  "body": "Hi Dana,\nWould you be open to introducing me to Tom Hale? I know the two of you work together at Keelhaven Equity.\nTom is an Associate at Keelhaven Equity. I would like to talk with Tom about co-investing in logistics software. I have put a short note below that you can forward as it is. If the timing is wrong, no problem at all.\nThanks,\nPat",
  "note": "Hi Tom,\nI'm Pat Preview. I asked Dana to pass this note on.\nI would like to talk with you about co-investing in logistics software. Would you have 20 minutes in the next two weeks?\nThanks,\nPat Preview",
  "claims": [
    {
      "status": "checked",
      "text": "I know the two of you work together at Keelhaven Equity.",
      "source": "Tom's LinkedIn profile, read 10 days ago; Dana's LinkedIn profile, read 10 days ago; Both LinkedIn profiles, since 2016"
    },
    {
      "status": "checked",
      "text": "Tom is an Associate at Keelhaven Equity.",
      "source": "Tom's LinkedIn profile, read 10 days ago; Dana's LinkedIn profile, read 10 days ago; Both LinkedIn profiles, since 2016"
    }
  ],
  "unchecked_claims": 0,
  "gmail_drafts_url": null,
  "edit_url": "https://app.introlink.ai/open?ask=p_ZC1Q5G…&via=p_MyndDR…",
  "problem": null,
  "text": "Draft ask to Dana Reyes about Tom Hale (not saved yet). …"
}
```

The facts the draft states are listed in `claims`, each `checked` against
IntroLink's evidence or `unchecked`. Read the draft, or open `edit_url` to change it
in IntroLink's composer. To save it, send the same request with
`"save": true`:

```bash theme={null}
curl -s "$API/asks" -H "Authorization: Bearer $INTROLINK_API_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"person\": \"$TOM\", \"via\": \"$DANA\", \"goal\": \"co-investing in logistics software\", \"save\": true}"
```

That answers `201`, with `"saved": true` and a `gmail_drafts_url`. The draft is
in your Gmail drafts, addressed to Dana, with the note below the line. You send
it from Gmail. Once it has gone, IntroLink tracks it on the Asks page, and
[`ask.sent`](https://docs.introlink.ai/recipes/follow-asks-with-webhooks) fires.

## When it doesn't work

| Status | `error.type` | Why |
| - | - | - |
| `404` | `not_found` | The id isn't someone in your network, or it's someone you keep private |
| `422` | `no_path` | Nobody on your side has a path to ask through |
| `422` | `not_saved` | `save: true`, but the Gmail draft couldn't be written: Gmail isn't connected, or IntroLink has no address for the person you're asking. The draft comes back in `draft` |

More in [People](https://docs.introlink.ai/public-api/people.md) and [Asks](https://docs.introlink.ai/public-api/asks.md), and the
tools in [The tools](https://docs.introlink.ai/mcp/tools.md).


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