Skip to content
mcpcrm
Working with a CRM through your AI agent

Chapter 9 of 10

Set up a CRM from your business mailboxes with a local AI model

An AI model running on your own server can build your CRM from your business mailboxes, whether a person’s own mailbox or a shared one such as info@, hello@, sales@ or support@. It reads years of email and proposes your customers, prospects, suppliers and the work you did with them, and you choose what to keep. No email content goes to a third party. The whole job is done on a server you control.

A local AI model, on your own server

The model is open source and runs on the same server as your CRM, or on another machine you own. Your mail is read there and stays there. It does not go to OpenAI, Google, Anthropic or any other AI service, and it does not go to us. A new CRM starts empty, and your mailboxes have the history: who you work with, how often and since when.

Qwen3 30B A3B, under the Apache 2.0 licence, does this well on an ordinary server processor without a graphics card. It uses about 3 billion parameters for each word, so it is fast enough to work through years of mail overnight.

Personal and shared mailboxes

In many businesses the shared mailboxes hold more of the customer history than any one person’s. Enquiries arrive at info@ or hello@, orders and quotes go through sales@, and clients write to support@. Scan each mailbox that matters, one at a time. People found in more than one are matched by their email address, so each becomes one record.

  • A person’s own mailbox is scanned with their agreement, and the results are theirs to review.
  • A shared mailbox is scanned with the agreement of whoever is responsible for it, usually an owner or admin, and its results go to the people who look after that mailbox.
  • Your own addresses, including the shared ones, are left out, so info@yourcompany never becomes a contact.

Who belongs in the CRM

A contact is someone you had a conversation with

Someone who wrote to you at least twice, or who wrote back to you, is a contact. Mail you sent that nobody answered is left out, and so are newsletters, receipts and notifications.

The organisation comes from the email domain

anna@client.co.za works at client.co.za. Free mail such as gmail.com, services such as banks and registrars, and your own domains are left out.

Role addresses belong to the organisation

info@, accounts@ and sales@ become the organisation’s email address.

Signatures fill in the details

The last messages each person sent have their name, title, office and mobile numbers and website in the signature. Only what is written there is used.

How it works

What each relationship becomes

Customer or former customer

Becomes a contact at their organisation, with the work you did together as deals.

Prospect

Asked about your work and did not buy. Becomes a lead to follow up.

Supplier or partner

Becomes a contact and an organisation, without a deal.

Personal, or no real conversation

Is left out, with the reason shown so you can change it.

Keep the mail out of the CRM

A record needs who someone is and what you did together. Store a one-line summary and a link to the first email of the conversation, by its Message-ID, and leave the text of the mail in the mailbox. Before you import, match people by email address and organisations by domain, so that records you already have are filled in where they are empty, with no duplicates and nothing overwritten.

The model must not invent anything

  • A name, title or company counts only if it is in the signature block.
  • A deal counts only if its evidence, and any amount, is in the mail.
  • If the model is unsure, the person decides. Without a model, a conversation both ways makes a contact and one-way mail makes a lead.

Consent and privacy

  • A person agrees to each scan. A shared mailbox needs the approval of whoever is responsible for it.
  • Nothing in the mailbox changes, and messages stay unread. Leave out personal folders and senders, such as family, your bank or your doctor.
  • The model runs on a computer you control, so no mail goes to an outside AI service.

Check the privacy law where you and your contacts are, such as POPIA or the GDPR.

A prompt for after the import

Check a CRM set up from a mailbox

The Organisations, Contacts and Leads in this workspace were imported from my mailbox today. Find Organisations with no Contacts, Contacts with no Organisation whose email is not free mail, and two Organisations with the same website. List each with its id and what you suggest, ask me before changing anything, and change nothing yet.

Try it with your own agent

mcpcrm Solo is free for one person and runs in your browser. Connect your agent, and it gets the CRM manual and your rules when it connects. Then start with the prompts in this guide.