niclas wunder

AI sales assistant for an international energy company.

An AI-first CRM for sales. A prioritized worklist every morning, suggested next steps for every task and an assistant that answers questions about customers and creates tasks. From kick-off to production in two months.

Context
International renewable-energy company
Service
AI Agents & AI Automation
Role
AI Engineer & Fullstack
Period
09/2026 – 10/2026, two months
Setup
In the project team, architecture and most of the build by me
Operation
In production with a first user group, further development by the in-house team
Stack
Azure OpenAI · LangChain · FastAPI · React · Databricks

01 — Starting point

Many systems. No plan for the day.

The question behind it

“Which of my customers needs my attention today – and why?”

Sales worked across several systems: customer and order data on the data platform, planned calls and visits in the ERP, the rest in people’s heads or in notes. The data platform could already spot where orders were dropping or a customer might need something new. But there was no interface that sales could work with. The goal was an MVP in two months that sales reps actually use – and that can be rolled out internationally later.

02 — Solution

A plan every morning.

An AI-first CRM: the AI is not a chat window on the side. It sits in every view and takes work off the sales team.

  1. 01

    A worklist that prioritizes

    Signals from the data platform and open activities from the ERP become a personal list: who might churn, who could buy more, who might need something new? With a score, a priority and a plain-language reason.

  2. 02

    Next steps for every task

    The AI explains why a task is due and suggests concrete steps. The rep ticks them off, rewords them or adds more.

  3. 03

    An assistant that works along

    Questions about a customer, in German or English. The assistant answers from that customer’s data, shows what it checked, and creates or completes tasks directly.

  4. 04

    Call notes documented in seconds

    Paste rough notes after a call or visit. Back comes a finished activity description for the ERP, plus the to-dos.

03 — Architecture

From the data platform to the daily plan.

Simplified and anonymized. Internal systems and data sources are deliberately not named.

Architecture · anonymized

A · Data

Data platform

Customers, orders, ERP activities and rule signals, recalculated every morning.

Databricks

App database

Worklists, notes, tasks and chats.

Postgres

B · Backend

API

Checks which customers a rep may see. Calculates ranking, trends and the customer view.

Python · FastAPI

C · AI

Assistant

Answers only from the customer data the backend loaded beforehand. Returns cards, not just text.

Azure OpenAI · LangChain

Customer snapshot

Card

Recommendation

Card

Next steps

Card

D · Interface

Web app

Worklist, portfolio, customer view and chat. In German and English, on tablet and phone too.

React · TypeScript

E · Access

Sign-in with the company account. Every rep sees only their own customers – and so does the AI.

04 — My role

From click dummy to production in two months.

In the project team, in two-week sprints with the client’s business and IT teams. Architecture, backend, AI assistant and interface were mine. The rule engine and the deployment pipeline came from the team.

  1. 01

    Click dummy first

    Running from day one, with generated demo data. From the first sprint, people clicked instead of reading slides.

  2. 02

    Sprint by sprint

    A review with business and IT every two weeks. The feedback went straight into the next sprint.

  3. 03

    Real data

    Switching to the data platform meant replacing one layer. Interface, API and logic stayed unchanged.

  4. 04

    Handover

    Tests, architecture docs, an operations guide and a user guide. The in-house team has continued development since.

05 — Result

What changed.

The client and the metrics stay confidential. I’m happy to tell you more in a conversation, as far as I’m allowed to.

In production in two months
From kick-off to a production application in two months. A first group in sales works with it today.
Very positive feedback
From the business side and from the sales reps. The AI takes research and documentation off their plate instead of creating new work.
A clean handover
With around 1,000 backend tests, documentation and a clear architecture. The in-house team now extends the application itself.

06 — Tech

The stack.

For technical readers, teams and agencies.

AI
Azure OpenAI via Azure AI Foundry (EU data zone), LangChain, server-sent events
Backend
Python, FastAPI, SQLAlchemy 2 (async), Alembic
Data
Databricks, Lakebase (Postgres)
Interface
React 19, TypeScript, Vite, Tailwind CSS 4, shadcn/ui
Platform
Databricks Apps, Entra ID, Terraform, private endpoints
Tests
pytest, Vitest, Playwright

Technical details

What I built in detail, as far as it can be made public.

The AI doesn’t query a database

The backend checks which customers the rep may see, loads their data and hands it to the model as a fenced-off context. The model answers only from that. Permissions are decided by the code, not by the model.

Cards instead of prose

The model can call three display tools: customer snapshot, recommendation and next steps. They fetch no data; the backend builds the cards from what it has already loaded. One click puts a recommendation on the worklist.

Ports and adapters

Demo data and the data platform sit behind the same interfaces. Switching to real data was an adapter swap. With no silent fallback: if a table is missing, there is an error instead of plausible-looking fake data.

Privacy built in

The model runs in the EU data zone behind a private endpoint. Logs hold only IDs, counts and timings, never questions or answers. Free text from the source systems is sanitized against prompt injection.

People decide

Reps can snooze recommendations or discard them with a reason. The reasons are stored so the rules get better. Every task has exactly one owner, even when two people click at the same moment.

The client, product name, internal systems and metrics stay confidential.

07 — Next

More like this.

The service

AI Agents & Multi-Agent Systems

For tasks that need several data sources, calculation steps and tools. With clear boundaries and human approval.

How I build AI agents

Similar project

Multi-agent system for a German automotive group

Specialized agents answer analysis questions across several data sources, also on Databricks and Azure.

Read the case study

Free intro call

Where does your sales team lose time?

Tell me in two or three sentences what it’s about. You’ll get an honest assessment within one business day – even if it says you don’t need AI at all.