Skip to content
Docs
On this page People 1/12
Internal — not published

The CRM module holds the people a workspace sells to and the work around them: their channel identities, companies, audiences, deals, tasks, notes and tags. It is the largest module, and the Inbox, Home’s Today list, lead research and meeting booking live in it too. The code and the API still use older words than the app: a person is a customer, a channel identity is a contact, and an audience is a segment.

People

A person belongs to one workspace and to at most one company. Besides name, job title, location, industry and description, a person records where they came from (added by hand, wrote in, outbound, imported, web form), their fit score and what lead research found.

People are created in three ways:

  • By hand. A single call can also set the company (found or created by name), a first channel, tags and audiences, and claim the person.
  • From an inbound message, when the sender is not yet a person in the workspace. A lock per workspace and identity makes two messages that arrive together create one person.
  • From a CSV import or a HubSpot or Salesforce import.

Each way queues lead research when it is on, and a person without a company joins the company that owns their email domain.

The People search matches name, company name or domain, and any channel value. Digits also match phone numbers stored in international form. A person’s timeline merges their activity, notes, tasks and fit assessments, newest first.

Channel identities

A channel identity is one handle on one channel: an email address, a LinkedIn profile, a Telegram user or username, a Zalo user, a phone number. It is stored once for the whole installation and linked to people. When people in two workspaces share an email address, that is one identity with two links.

Adding a channel to a person runs what the user typed through the channel’s parser, which understands an email in Name <a@b.com> form, a LinkedIn URL, a Telegram @name or t.me link, or a phone number. Removing a channel from a person removes the link only. Deleting an identity deletes it only when no other person still links to it.

The opt-out state lives on the identity, and nothing is sent to an identity that has opted out. It is set by the unsubscribe link, by bounces and complaints reported by Amazon SES, by bounce reports found in a mailbox, by the agent, and by hand.

Companies

A workspace sees its own companies plus the global pool, which only the system writes. A company is unique in a workspace by name and by domain. Free mail domains such as gmail.com are refused as company domains.

Setting a company’s domain links every person in the workspace who has no company and an email at that domain. The same match runs for one person when they are created, imported, write in, or get a new email channel. A company a person already has is never replaced. When a person moves to another company, their open and negotiating deals move with them; won and lost deals keep the company they closed under.

Audiences and rules

An audience has hand-added members and an optional rule. Its membership is always both together, worked out each time someone asks. Nothing is stored for the people a rule matches.

A rule is a tree. A branch is “all of”, “any of” or “not”. A leaf compares one thing about a person: name, job title, location, industry, description, company name, having a tag, or being in another audience. The comparisons are equals, not equals, greater or less than, contains, starts with, ends with, and in or not in a list, and text comparisons ignore case.

An example, written out: industry is SaaS, and either the job title contains CTO or the person has the tag Decision maker, and the person is not in the audience Current customers.

From an audience rule to people Step 1 of 6

Saving checks only that the rule is a JSON object, so a broken rule is stored as sent. A leaf with an unknown field is reported the first time the audience is used, as a 400.

More on how runs use the snapshot is on Automation.

Unassigned pool and Claim

Each person has an optional owner, and a person with no owner is in the Unassigned pool.

  • Claim succeeds only while the person is still unclaimed. A second user claiming the same person at the same moment gets a conflict.
  • Claim next takes the oldest pool member that matches the given audience or tag, and tries again, up to 5 times, when another user wins the race. An empty pool answers 404.
  • Releasing one person is open to their owner only. Bulk release unclaims the listed people whoever owns them.
  • The agent can assign an owner too.

Claim marks ownership only. Every member of the workspace still sees and can open claimed people.

Deals

A deal has a stage (open, negotiating, won, lost), an optional amount and currency (USD by default), an expected close date, an owner and a product. It takes its company from the person when it is created.

  • Moving a deal to won or lost records when it closed; moving it back clears that.
  • The lost reason is cleared when the stage is anything but lost.
  • A deal moved to won sends a Slack notification.
  • The board loads the 100 most recently updated deals per stage, and each column pages further on its own.

Tasks and notes

Tasks and notes point at a person, a deal or a company by kind and id, without a database link, so they stay when their subject is deleted.

A task has a status (pending, in progress, done, canceled) and an optional assignee. A task with no assignee is a pool task any member can pick up; the agent’s escalation and follow-up create those for people nobody has claimed. Finishing or canceling a task records when, and reopening it clears that.

Anyone in the workspace can read and add notes. Only the author or an owner can edit or delete one.

Tags

Tag names are unique in a workspace. System tags are hidden from the normal tag list. There is one: the tag that switches the reply agent off for a person. It is created in every workspace each time the backend starts.

Bulk actions and merge

Bulk tag, bulk add to audience and bulk delete take a list of people, and people outside the workspace are dropped from the list first. Deleting a person also deletes their channel links, deals, timeline, fit assessments, memories and campaign workflows. Their notes and tasks stay, because those point at the person without a database link.

Merging absorbs several people into one primary person in a single transaction:

  1. Tags and audiences are combined onto the primary.
  2. Channel links move over, except those the primary already has.
  3. Campaign workflows move over, except for runs the primary is already in.
  4. Timeline entries (Inbox state and drafts included), deals and fit assessments move over, and open deals move to the primary’s company.
  5. Notes, tasks and person-level analytics events move over.
  6. One rolling memory summary is kept (the primary’s, or the newest), the other summaries become conversation memories, and all memories move over.
  7. The absorbed people are deleted.

CSV import

An upload can carry several CSV files. Each file becomes an import job, its file is stored, and an event hands it to the import worker, so the upload answers before any row is read.

The worker loads the stored file and parses it row by row. It accepts these columns: name (required), company, job title, location, industry, description, tags and audiences (names separated by semicolons), email, LinkedIn, phone and Telegram. It works in batches: it creates missing tags, audiences and companies by name, runs every channel value through the channel’s parser, and creates each person in its own transaction, marked as imported by that job. After each batch, the new people without a company are linked to companies by email domain and queued for lead research. Rejected rows (no name, a channel value that does not parse, a database error) go to an error CSV the user can download. When the file is done, the job records its row counts. An error that stops the whole file marks the job failed, and the bus does not retry it.

Each row creates a new person. A row whose email already belongs to someone in the workspace gives a second person linked to the same identity, and the two can then be merged. The People list can be filtered to the people one import created.

CSV export

Export streams the workspace’s people in batches of 500 with their basic fields, source, tags, audiences, email, LinkedIn, phone and creation date. Tags and audiences are joined with semicolons. Only the audience and tag filters apply to the export.

Other parts of the CRM module

PartWhat it does
InboxThreads, drafts, snooze and close. How messages become threads is on Channels.
TodayThe list on Home
Lead researchReads the company website for a person or company; automatic for new people when the workspace has it on, and rate-limited when started by hand
Meeting bookingReceives Calendly and Cal.com webhooks, signed with the workspace’s own secret
MemoryThe agent’s long-term memory of each person, see AI agent

Fit scoring is driven by the agent and is covered in AI agent.

Docs
EN VI