Enriching Records with AI

Define AI-research custom fields once, then click Enrich on any contact / company / deal to auto-fill from your own data plus optional web search.

Enriching Contacts, Companies & Deals

Karmaflow.ai can auto-fill custom fields on a record from your own data plus optional web search — no third-party enrichment account required. This article walks through the AI-research field workflow end to end.

How AI-research fields work

An AI-research field is a custom attribute you define once (per entity type) and the platform fills automatically on demand. The pipeline:

  1. Pull the record's own card (name, email, company, tags, recent notes/activities).
  2. Retrieve matching context from the per-tenant vector store (your calls, chats, emails, SMS, notes, activities), optionally from web search, optionally from contact memories.
  3. Send the prompt plus the retrieved context to Gemini.
  4. Persist the answer onto the record's customFields, with the generation time, model and count of sources consulted.

You can inspect the returned sources immediately after a fill. The saved field records the source count.

Defining an AI-research field

Creating, changing or deleting a custom field needs the Manage Custom Fields permission (crm:fields:manage); the Custom Fields menu entry shows only with it. Every role that held Manage Pipelines when the permission arrived (November 2026) was given it (Manager, in a new workspace), admins always have it, and a workspace admin changes who has it at Settings (the gear icon) → Access & security → Roles & Permissions, under CRM Setup. Everyone who can open a record still sees its custom fields.

  1. Open CRM → Setup → Custom Fields (/settings/custom-fields).
  2. Pick the entity tab — Contacts, Leads, Companies, or Deals.
  3. Click + New field.
  4. Set the Friendly name (e.g. "Industry"). The slug auto- fills from the name; override only if you need a specific dbName.
  5. Change Field kind to AI-research (auto-filled). An AI research configuration section appears below.
  6. Fill in:
    • Prompt — the question for the LLM. Be specific. Examples:
      • "What industry is this company in? Reply with one short phrase like 'B2B SaaS' or 'Healthcare provider'."
      • "Summarise this contact's role at their company in one sentence."
      • "List the top three product features they've discussed, comma-separated."
    • System prompt (optional) — tone / format instructions that apply to every fill. Example: "You are a sales-research assistant. Cite your sources. If you don't have enough information, reply 'unknown' instead of guessing."
    • Sources — which retrieval channels to use:
      • Vector store (own data) — research on a saved field can use the record's current card, its standalone staff notes and direct CRM changes such as stage or value changes. A copied ticket or email subject on a timeline is insufficient evidence for a shared field.
      • Web search — public web results, summarised by the LLM.
      • Contact memories — staff-entered memories from the memory types granted to this field.
    • Refresh interval (days) — enter 0 for on-demand research only or a preferred interval of 1–365 days. A saved interval takes effect for automatic research only after you enroll a saved view. For Contact or Lead fields using web search alone or granted contact memory alone, choose Automatic field research, select a view and enable refreshes of existing AI values, first fills for blanks, or both. New research uses workspace CRM research limits. Staff-entered values and deliberate clears are preserved. For web research, the search provider receives a linked company’s public domain or name when the enrolling member can read the company. Select Also allow the contact’s name for this field to include permitted names, including when a contact has no company. Field prompts, notes, emails and phone numbers are excluded from the search query. The last view check explains a skipped record when it remains visible without an eligible identifier. Turn off ends the enrollment and clears its contact-name permission. A record can also be refreshed manually.
    • Model — the editor shows the configured research model.
  7. Click Save.

The field now appears in the Custom Fields card on every record of that entity type, with an AI chip next to its label and an Enrich button on the right.

Enriching a record

Enriching writes the answer onto the record, so it needs the permission to edit that kind of record (Edit Contacts, Edit Leads, Edit Companies or Edit Deals) beside the AI feature's own permission, and the record must be one you can open. It does not need Manage Custom Fields.

Open any contact, company, or deal. In the Custom Fields card on the right column:

Editing AI-research fields after the fact

AI-research fields are read-only in the Custom Fields card — they only update via the Refresh button. If you want to override a value manually, the cleanest path is to:

  1. Edit the field definition in Settings → Custom Fields and change the Field kind back to Manual.
  2. Save. The existing value stays on every record.
  3. Edit the value inline on each detail page as needed.
  4. Optionally flip the field back to AI-research later — the manually-entered values remain unless someone clicks Refresh.

Bulk enrichment

The bulk-edit dialog on the spreadsheet view doesn't yet drive the AI pipeline — for now, enrichment happens one record at a time via the Enrich button.

Practical recipes

A few prompts that work well in production:

When AI-research won't help (and what to use instead)

Where it shows up next

When you bring an AI-research field into a saved view as a column, list pages display the AI chip next to its column header so the user knows the value was auto-filled. The value still shows the most recent fill — no automatic refresh on page load to keep cost predictable.