> ## 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 generate and manage to-dos?

> How Klipy's agents turn conversations into suggested to-dos, link them to records, and gate every write on your approval before anything changes.

This page covers the mechanism behind to-dos: the record shape, and how a conversation becomes a suggested to-do. It also covers how a to-do links to a contact, deal, or company, and where Klipy waits for you.

For what a to-do is and its states, see [How do suggestions and to-dos work?](https://klipy.ai/docs/product/todos/overview.md)

For everyday actions, see [How do I manage my to-dos in Klipy?](https://klipy.ai/docs/product/todos/how-to.md)

## The to-do record

A to-do is one row in Klipy's `tasks` table. Its fields are a name, an optional description, a `status` boolean, an optional due date, an optional closed date, and an urgency. It also carries optional links to a contact, a company, a deal, a related interaction, and an assignee.

There's no separate "snoozed" or "dismissed" column. Snoozing a to-do only changes its due date. Completing one flips `status` to true and stamps a closed date. A to-do belongs to the user who owns it, and separately carries a `mainAssignee` — the owner by default, but reassignable.

## From conversation to hypothesis

Klipy reads four kinds of conversation for follow-through: inbound email, outbound email, direct-message batches, and meeting transcripts. Each one goes to a Task Extraction Agent (Gemini) with a strict decision hierarchy.

The agent starts from the newest message in the thread. It proposes a task only if that message carries an explicit ask, a commitment, a deadline, a blocker, or a decision. Older messages can sharpen wording or urgency, but the agent is told never to originate a task from history alone. If the newest message is only an acknowledgment, it returns nothing.

Each hypothesis carries a type: a new to-do, a task that already looks done, or a reply that needs drafting. It also carries a subtype, a title, a description, an urgency, a due date, and the name of the person it's about.

Before any of it reaches you, a sanitizer drops hypotheses with an empty title or description, an invalid due date, or purely informational wording. It also drops anything that only restates older history, or a vague follow-up with no concrete evidence behind it.

## From hypothesis to a suggestion

A hypothesis is not a suggestion yet. Nothing has been written to your workspace. Each one is handed as text to a second agent, the Chief of Staff agent, which holds the only tool that can actually create one.

That agent re-checks quality on its own, skipping anything vague, historical, or malformed. It resolves the named person to a real contact record, then checks your existing suggestions and open to-dos for anything similar. From there it creates a new suggestion, updates an existing one, or removes one a newer conversation has made stale. A created suggestion lands in `agentSuggestions` with `status: "suggested"` — your to-do list and your CRM stay untouched until you act on it.

## Suggestions that touch an existing to-do

A second, distinct mechanism handles suggestions about a to-do that already exists. Hey Klipy or a delegation agent can be asked to complete, reopen, reassign, or edit a real to-do. When that agent isn't running fully autonomously, the write is intercepted before it reaches the database.

Instead of writing directly, Klipy inserts a suggestion of the matching type. Completing routes to a "mark done" suggestion, reopening to a "reopen" suggestion, reassigning to a "delegate" suggestion. Each one carries the real to-do's id in its payload. Only a genuinely autonomous run skips this step and writes directly.

## Record linkage

A to-do links to at most one contact, one company, and one deal, plus the interaction it was drafted from. A contact's, deal's, or company's own To-dos tab reads that same `tasks` table through a dedicated index for that relation. It shows open items assigned to you by default, unless you ask to see more.

A suggestion carries the same linkage before it's even accepted. Its `person`, `company`, and `deal` fields are what the review dialog uses to show you the record it's about. For a suggestion about an existing to-do, that to-do's id in the payload serves the same purpose.

## Accepting, rejecting, and marking done

> [!WARNING]
>
> Klipy never creates, edits, completes, reopens, or reassigns a to-do from a suggestion without your approval.

Accepting a "new to-do" suggestion creates one with the title, contact, due date, and urgency you confirm. Editing any of those first only changes what gets created, never the suggestion itself.

Accepting a suggestion about an existing to-do applies a patch to that same record instead. Only a fixed set of fields can change this way — name, description, status, due date, urgency, closed date — never its links to other records. Rejecting a suggestion discards it outright; no to-do is ever created or touched.

Marking a "looks done" suggestion done is not the same as completing the to-do it points to. It only clears the suggestion from your review queue, and you can undo it. Reopening a suggestion, by contrast, does flip the underlying to-do's `status` back to open.

Delegating a pending suggestion to a teammate changes who owns that suggestion. Accepting a "reassign" suggestion about an existing to-do changes who the to-do itself is assigned to. These are two different handoffs that happen to share the word "delegate."

## Duplicate detection

Klipy compares a new suggestion against your open to-dos and pending suggestions for the same contact, both before writing it and again when you accept it. An exact title match always counts as a duplicate.

Otherwise a match needs the due dates within 72 hours of each other. It also needs a normalized title match, one title containing the other, or enough shared wording across both titles and descriptions. A near-duplicate found at accept time links the suggestion to the to-do that already exists, instead of creating a second one.

## Limits

| Behavior | Limit |
| - | - |
| Suggestions per inbound email | Up to 3 |
| Suggestions per outbound email | Up to 2 |
| Suggestions per direct-message batch | Up to 4 |
| Suggestions per meeting transcript | Up to 5 |
| Editable fields on an accepted update | Name, description, status, due date, urgency, closed date only |
| Duplicate due-date window | 72 hours |
| Public API delete | No single-record delete; only a bulk, org-wide delete exists internally |
| Public API match key | None — a to-do has no email or domain to match on, so there's no upsert verb |

## Data handling

Klipy's public API and its MCP surface both read and write to-dos, scoped the way the app is. A task's contact, company, deal, and assignee are checked against your organization on every write, so a request can't attach a to-do to another organization's record.

A connected MCP client can also list, accept, and reject your pending suggestions, through the same mutations the app uses. The same ownership and status checks apply. Neither surface can act on someone else's queue, or skip the approval a write would otherwise need.

## What this does not do

Klipy never originates a to-do from historical context alone — a hypothesis needs evidence in the newest message. It never creates a to-do for a person who appears only in CC or BCC on an email. Accepting a "looks done" suggestion never completes the to-do it references on your behalf. Only reopening one, or checking it off yourself, changes its real status.

## Related guides

> [card] [How do suggestions and to-dos work?](https://klipy.ai/docs/product/todos/overview.md)
>
> What becomes a to-do, its states, and how Klipy prioritizes your list.

> [card] [How do I manage my to-dos in Klipy?](https://klipy.ai/docs/product/todos/how-to.md)
>
> Create, complete, snooze, and review suggested to-dos.

> [card] [Follow-ups & drafts](https://klipy.ai/docs/product/inbox/follow-ups.md)
>
> The companion suggestion flow for outbound messages, gated the same way.


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