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

# How does Klipy's meeting pipeline work under the hood?

> How Klipy decides to send a bot, records with Recall.ai, stores the transcript, and turns it into a summary, tasks, and a follow-up draft.

This page explains the mechanism behind a Klipy meeting. It covers how the notetaker bot gets dispatched, how the recording becomes a stored transcript, and what Klipy generates once the call ends.

## Deciding whether a bot joins

A calendar event only becomes a bot dispatch after two separate gates, in order.

The first gate runs when Klipy's calendar sync creates the meeting row from a Nylas webhook. It only auto-joins when you've accepted the invite yourself and your notetaker config has `autoJoin` set — either condition failing skips bot scheduling entirely (`convex/components/nylas/event/internal/lifecycle.ts:707-745`). A meeting whose owner has already declined is removed outright rather than tracked (`lifecycle.ts:709-714`).

The second gate runs inside the bot-dispatch action itself, right before the API call to Recall.ai (`convex/components/recall/bot/schedule.ts`):

* The meeting must carry a conferencing URL — no link, no bot (`schedule.ts:56-71`).
* The meeting must not be opted out via the per-event bot toggle (`schedule.ts:72-90`).
* The owner must have been active within the last 30 days (`schedule.ts:105-114`).
* The meeting's end time must not already be in the past, unless the caller explicitly forces a reschedule (`schedule.ts:117-126`).

Only after all of these pass does Klipy create a `recordings` row and `POST /api/v1/bot/` to Recall.ai. The request sets `join_at` to the meeting's start time and can include a spoken greeting used as the in-meeting recording notice (`schedule.ts:159-272`).

## The bot's lifecycle

Recall.ai reports bot progress through a sequence of statuses: `scheduled`, `joining_call`, `in_waiting_room`, and `in_call_not_recording`. Next comes a recording-permission status (`recording_permission_allowed` or `recording_permission_denied`), then `in_call_recording`, ending in `done`, `call_ended`, `kicked`, or `fatal` (`convex/domains/meetings/domain/meeting.types.ts:3-17`). Each status arrives as a webhook that patches the `recordings` row and clears any stale error once the bot is demonstrably alive again (`convex/components/recall/webhook/onBotStatusChange.ts:79-174`).

A `fatal` status with a terminal sub-code (a waiting-room timeout or being kicked from the call) marks the recording failed immediately and emits `meeting.bot_failed`. A transient sub-code (`connection_failed`, `internal_error`) instead retries the bot up to twice, at 5 and 15 minutes (`convex/components/recall/webhook/onBotFatal.ts:13-18, 93-138`). Once a bot has ended, Klipy allows a manual re-invite only within a 30-minute grace window after the meeting's end time. It also requires that the prior attempt didn't genuinely succeed (`convex/domains/meetings/domain/recording.policy.ts:9, 206-266`).

## From audio to a stored transcript

When the bot status turns `done`, Klipy schedules no-show detection. The delay is 5 seconds if the bot never entered the recording state, or 60 seconds if it did (`onBotStatusChange.ts:150-173`). Separately, Recall's transcript-ready webhook schedules a fetch after a 5-second delay, and drops the event outright if a transcript was already stored for that recording (`convex/components/recall/webhook/onTranscriptDone.ts:24-48`).

The fetch action makes two calls to Recall.ai — one for transcript metadata, one to download the transcript JSON. It then collapses the raw word stream into speaker-grouped chunks, merging consecutive words from the same speaker (`convex/components/recall/transcript/fetch.ts:97-132`). The chunks are stored as a JSON blob in Convex file storage, not inline on the row; only the storage pointer is kept (`transcript/fetch.ts:462-465`, `convex/domains/meetings/domain/transcriptChunks.lib.ts:31-42`). A manually pasted transcript (the "Record from URL" consent path) is converted into the same chunk shape so both paths read back identically (`transcriptChunks.lib.ts:60-80`).

A transcript fetch that fails with a 429 or 5xx retries twice, at 30 seconds and 5 minutes; anything else marks the recording's transcript failed (`transcript/fetch.ts:138-144, 154-231`). After the transcript is stored, a separate enrichment step matches each speaker to a calendar attendee and resolves a contact by email. This step can fail without discarding the transcript already saved (`transcript/fetch.ts:644-724`).

A calendar meeting maps speakers to attendees automatically. A detached recording (no calendar event) has no attendees to match against. Klipy instead suggests contacts by name, and holds the recording in a `pending` participant-mapping state until you confirm it yourself (`transcript/fetch.ts:246-304`, `convex/applications/backgroundAgentLoops/notetaker/adapter.ts:322-393`).

Klipy never stores the meeting's raw video — the download-to-Convex video pipeline has been removed. Once the transcript is durably captured, Recall's own copy of the media is purged (`transcript/fetch.ts:803-845`).

## Turning a transcript into a summary

Once the transcript lands, Klipy emits `meeting.completed` (for calendar meetings) and schedules the notetaker's background pipeline (`transcript/fetch.ts:757-784`). That pipeline first confirms the owner is still active and a member of their organization. It then creates a MEETING interaction and links each external participant to a contact, filtering out spam addresses first (`convex/applications/backgroundAgentLoops/notetaker/adapter.ts:184-321`). A contact-link gap is logged for later reconciliation rather than deleting the meeting; the summary is always kept (`convex/applications/backgroundAgentLoops/notetaker/flow.ts:175-246`).

The summarizer agent (`SummarizeMeetingTranscriptAgentV3`, running on Gemini 3 Flash) reads a compact briefing header plus the transcript as an attached file. It first classifies the call into one of eight categories: discovery call, product demo, proposal negotiation, QBR, onboarding call, internal deal review, check-in, or general meeting. Each category emphasizes different content in the summary it produces (`convex/ai/conversationSummarizerAgent/notetaker/agent.lib.ts:20-58`).

Its instructions explicitly mark the transcript as untrusted data the model must read, not obey (`agent.lib.ts:39`). Every later stage of the pipeline wraps meeting-derived content the same way before handing it to a downstream agent (`notetaker/flow.ts:275, 493-499`). The agent's output — summary, purpose, key points, needs, Q\&A, concerns, category, sentiment, buying signals, and a sales/CRM relevance verdict — is written onto the interaction record (`notetaker/flow.ts:253-297`).

## What runs after the summary, and what's gated

Task extraction always runs, producing up to 5 action-item suggestions, even for a meeting judged irrelevant to sales — an internal standup still gets its to-dos (`notetaker/flow.ts:478-506`). The owner and participant recap emails also always run, each best-effort and sent at most once per meeting, gated only by the owner's own notification toggles (`notetaker/flow.ts:565-639`).

Everything else in the fan-out is gated on that relevance verdict. When the summarizer marks a meeting not relevant to sales or CRM, Klipy skips the qualification-signal gate and skips the Chief-of-Staff suggestion task and draft (`notetaker/flow.ts:430-476, 508-563`). When qualification signals are present and the meeting is relevant, they route through a governed gate. That gate emits approval-first qualification-update, conflict, or create-deal suggestions — it never writes to the CRM directly (`notetaker/flow.ts:461-476`).

The follow-up draft agent is skipped outright if the meeting briefing claims a transcript that isn't actually attached. That guard keeps it from ever drafting a reply that cites a call it never read (`convex/ai/chiefOfStaffAgent/draft/adapters/background.ts:114-128`). Every draft it does produce is written with a `suggested` status (`convex/domains/agentDrafts/domain/draft.model.ts:36-40`) — the same state a message stays in until you send it yourself.

> [!WARNING]
>
> Klipy never sends a follow-up draft from a meeting without your approval. A drafted recap or reply always lands in Drafts first.

> [!WARNING]
>
> Klipy never writes a qualification update or a new deal to your CRM from a meeting signal without your approval. The qualification gate only stages a suggestion.

## The pre-meeting brief

Separately from the post-call pipeline, a `meeting.starting_soon` event triggers a pre-meeting brief agent. It runs a cheap guard chain first: owner opt-out, duplicate-occurrence dedupe, affordability, an external attendee on the invite, and a still-live calendar grant. Only after all of those checks pass does it generate the brief. It then emails the finished brief to the meeting owner (`convex/infrastructure/eventBus/consumers.ts:178-182`).

The brief carries an explicit confidence level: `thin`, `partial`, or `rich`. A thin brief — a dormant contact, an empty CRM — is a first-class, honest output, not a suppressed one (`convex/domains/meetings/domain/meetingBrief.model.ts:4-12`). It also classifies the meeting as a first meeting, an active deal, an existing customer, or unknown. Each attendee is then mapped to a buying-committee role — champion, economic buyer, decision maker, or blocker (`meetingBrief.model.ts:15-20, 45-53`). Brief generation never throws — every failure path returns a status and logs it, because a silently-missing brief has no other way to surface (`convex/domains/meetings/actions/generateMeetingBrief.ts:11-21`).

## Meeting lifecycle events

Klipy emits five meeting event types onto its internal event bus, each deduplicated by an idempotency key so a webhook redelivery can't double-fire it:

| Event | Emitted when |
| - | - |
| `meeting.starting_soon` | A reminder job fires ahead of a scheduled call, triggering the pre-meeting brief (`convex/domains/meetings/actions/sendMeetingStartingSoonReminder.ts:55`) |
| `meeting.completed` | The transcript for a calendar meeting is durably stored (`transcript/fetch.ts:757-777`) |
| `meeting.cancelled` | The bot's call ends without ever recording, or the calendar event is cancelled (`convex/components/recall/webhook/onBotCallEnded.ts:128-221`) |
| `meeting.bot_failed` | The bot hits a terminal fatal sub-code (`onBotFatal.ts:117-138`) |
| `meeting.no_showed` | No expected participant is detected on the call (`convex/components/recall/participants/detectNoShow.ts:257-263`) |

Only three of these — `meeting.completed`, `meeting.no_showed`, and `meeting.starting_soon` — are also exposed to external Svix webhook subscribers; `meeting.cancelled` and `meeting.bot_failed` stay internal (`convex/components/svix/domain/svixEvent.model.ts:3-18`).

## Limits worth knowing

| Behavior | Limit |
| - | - |
| Transcript fetch retries | 30 seconds, then 5 minutes; 2 retries before the transcript is marked failed |
| Bot reconnect retries (transient fatal error) | 2 retries, at 5 and 15 minutes |
| Re-invite window after a meeting ends | 30 minutes |
| Stale "scheduled" bot cleanup | 45 minutes past the meeting's end time |
| No-show detection delay | 5 seconds if the bot never recorded, 60 seconds if it did |
| Task suggestions extracted per meeting | Up to 5 |
| Owner/participant recap emails | Exactly one send per completed meeting, no retry |
| Bot dispatch and processing cutoff | Skipped once the owner has been inactive more than 30 days |

## What Klipy stores and sends

Recall.ai receives the meeting URL, a bot display name, an optional spoken greeting, and the scheduled join time — nothing else about the meeting (`convex/components/recall/bot/schedule.ts:196-211`). Klipy stores only the transcript, as speaker-grouped chunks in a Convex storage blob. The video stays with Recall only long enough to confirm the transcript, then it is purged (`transcript/fetch.ts:803-845`). The transcript is sent to Gemini as an attached file, always marked untrusted, to produce the summary, task suggestions, follow-up draft, and pre-meeting brief. Meeting-bot minutes are billed to Orb as `meeting_bot` / `transcription` credits at one credit per six minutes of recording (`convex/domains/meetings/adapters/postBotConsumptionWithBilling.ts:110, 158-172`; duration computed in `convex/components/recall/recording/fetchDuration.ts:240`).

## Related guides

> [card] [How does meeting recording work?](https://klipy.ai/docs/product/meetings/overview.md)
>
> What the notetaker produces and how to control auto-join.

> [card] [How do I control Klipy's meeting notetaker?](https://klipy.ai/docs/product/meetings/how-to.md)
>
> Turning auto-join on, inviting Klipy to one call, and reading a transcript.


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