brainCRM is the CRM we built for ourselves. The pipeline is a canvas on one screen: coloured areas for clients, leads and partners, a card for each project, and its tasks inside the card.
An assistant works on the canvas from the web or from Telegram. Write in the chat that the Bianchi bakery is a new client with three things to do, and the card and its tasks appear on the canvas.
The screens below come from a local copy filled with invented companies, people and tasks.
What made it hard
- An assistant that says it did it. Early on, the model answered "Done!" without calling a single tool. Now it has strict rules, a check that asks again when a reply claims an action that never ran, and tool errors shown in the reply.
- Four providers in one loop. Claude, OpenAI, DeepSeek and Gemini each describe tools their own way. They were brought into one loop, with another provider taking over when one fails.
- Telegram's details. Topic threads, the same update delivered twice, voice notes in their own format, formatting that breaks a message.
- Living under another site. brainCRM runs at an address inside mont3.ch, and every link and form had to work under that prefix.
- One conversation across several workers. With more than one server process, a chat kept in memory went missing between messages. It moved to the database.
What shipped
- The canvas. Areas and cards to drag, resize and zoom, with automatic layout, focus filters and themes, on desktop and phone.
- Tasks. Recurring tasks, blockers, assignees, attachments and milestones.
- The side panel. Open tasks, the calendar and rituals, and a Timeline view across projects. Notes sit in each card.
- The assistant. On the web and on Telegram, with commands, buttons and voice notes, reminders and scheduled briefings.
- Sharing. Collaborators linked by area, an activity log, an encrypted vault and backups.
How a message becomes a card
- The link. The user creates a bot and a group on Telegram and pastes in the bot's token and the chat's id. A test message confirms it.
- The message. Duplicates are dropped, voice notes transcribed, and commands turned into plain requests.
- The context. The model receives the rules and a snapshot of the user's CRM, with the id of every record.
- The tools. 23 for the CRM, and 5 for the calendar when Google is connected. The loop runs up to five rounds, and each tool runs on the server, on the user's own data.
- The placing. A new project finds its area by name, takes a free spot and enlarges the area if it has to. A task finds its project and its people.
- When it is unclear. The assistant offers options, which arrive as buttons in Telegram.
- Limits. The assistant cannot delete an area, and a deleted task is kept as a snapshot.
- Reminders. A job every five minutes sends the ones that are due.
How we built it
- 31 March 2026. The first commit already had the canvas, an assistant with tools and Google Calendar.
- 1 to 3 April. Telegram, reminders, the agent loop, more AI providers, voice notes and sharing.
- 9 April. The encrypted vault.
- 30 May. Sharing through linked collaborators, and the Timeline view.
Result
- The whole pipeline on one screen: clients, leads and partners side by side.
- A sentence on Telegram is enough to add a project, its tasks and a reminder.
- Any of four AI providers, on the user's own key, with the others as a fallback.
Stack
- Backend. Django 4.2, plain JavaScript.
- AI. Claude, by Anthropic, Haiku 4.5 by default; OpenAI, DeepSeek or Gemini as alternatives, on the user's own key.
- Voice. Transcription of Telegram voice notes.
- Integrations. The Telegram Bot API and Google Calendar.
Article 041 · 1 December 2026 · 4 min read.
Reply to paolo@mont3.ch.