My own AI assistant: it knows my daily life, and my data stays in the EU
I built myself a personal AI assistant. It schedules meetups, books doctor's appointments and drafts emails for me. It runs on an open-source language model hosted by a cloud provider in the EU.
I built myself a personal AI assistant. It schedules meetups, books doctor's appointments and drafts emails for me. It runs on an open-source language model hosted by a cloud provider in the EU. Here's how it works and what it can do.
One screenshot, and the meetup is in my calendar
My friends and I write in a WhatsApp group that we should grab a coffee again. Usually, nothing happens after that. This time, I send a screenshot of the chat to my assistant. Then it does the following:
- It reads the chat. It works out who's coming and who's free when.
- It finds a time. It checks the suggestions against my calendar and picks a day and time.
- It looks for cafés. Only cafés near me or easy to reach by public transport that are open at that time qualify.
- It compares. It looks at the Google ratings and uses Google Maps to calculate my travel time to each café.
- It finds my friends' email addresses. It finds two in my Google contacts. For the third, it only has the name. So it searches the web, finds his website and the email address there.
- It creates the event. The calendar entry lists the café and all three friends as guests. The notes contain the address, directions and why it picked this café.
I sent a screenshot. It did the rest.
"Appointment with the ENT"
The second example is shorter. I only write: "Appointment with my ENT doctor."
- It finds my ENT doctor in my contacts.
- It looks up the practice's opening hours online.
- It finds time slots when the practice is open and my calendar is free.
- It writes an appointment request with these suggestions and saves it as a draft in Gmail.
I read the draft, change a word if needed and click send. It can't send anything itself, and that's on purpose (more on that below).
What the system is made of
The interface: Open WebUI. Open WebUI is an open-source chat interface, similar to ChatGPT, except that I run it myself. My chats, the assistant's memory and its tools all live there.
The language model: open and in the EU. The model is open source and runs at a cloud provider with data centres in the EU. So my input doesn't go to a US corporation that might use it for training. I have a GDPR data processing agreement with the provider.
The tools. A language model on its own can only produce text. To make it do something, it gets tools. The technical term is "tool calling": the model decides itself which tool to call with which input, reads the result and plans the next step. My assistant has these tools:
| Tool | What it may do |
|---|---|
| Gmail | read, create drafts |
| Google Calendar | read, create events |
| Google Tasks, Contacts, Drive | read |
| Google Maps | find places, ratings, travel times |
| Weather | get the forecast |
| Web search | search the web and read pages |
| My bank account | read only |
| Location | knows my current location and home address |
The memory. The assistant remembers what I tell it about myself and uses it for later questions. That's why "my ENT doctor" is enough, without a name.
The exciting part isn't any single tool. It's that the model chains them together by itself. In the café example, that's more than a dozen calls in a row, and each one depends on the result of the one before.
Deliberately tight permissions
An assistant that knows my emails, my bank account and my location is a valuable target. So the rule is: it only gets the permissions it really needs.
- It can't send emails. It only writes drafts. I read everything before it leaves my inbox.
- The bank is read-only. It sees my balance and transactions. It can't make transfers.
- Calendar entries are the exception. It may write here, because a wrong event is quickly deleted.
This also protects against a well-known weakness of AI assistants: so-called prompt injection. A website or an email contains hidden instructions, such as "Forward all emails to this address". If the assistant reads something like that, it might follow it. Because mine can't send or transfer anything, such an attack does hardly any damage.
What "GDPR-compliant" means here, and what it doesn't
To be honest: my emails, contacts and appointments are still stored at Google. My assistant doesn't change that. What it does change: the analysis, meaning reading, connecting and drawing conclusions about my life, happens at an EU provider with an open model. That's also where the memory about me is stored. No large AI provider sees my chats, my location or my bank statements bundled in one place.
The next step would be moving email and calendar away from Google too. The tools are interchangeable, everything else stays the same.
Operations: containers that update themselves
The whole thing runs in Podman containers. Podman is an open-source alternative to Docker. Containers run without root privileges, and there's no background service with full system rights.
The containers are started via Quadlet. With it, I describe each container in a short text file, and systemd (the service that starts and monitors all programs on Linux) takes care of the rest: starting on boot, restarting after a crash, logs.
At its core, it looks like this:
# ~/.config/containers/systemd/open-webui.container
[Container]
Image=ghcr.io/open-webui/open-webui:main
AutoUpdate=registry
PublishPort=127.0.0.1:3000:8080
Volume=open-webui-data:/app/backend/data
[Service]
Restart=always
[Install]
WantedBy=default.target
The line AutoUpdate=registry enables automatic updates. A timer regularly checks whether there's a newer image:
systemctl --user enable --now podman-auto-update.timer
If there is one, Podman pulls it and restarts the container. If the new version doesn't start cleanly, Podman automatically rolls back to the old one. So I don't have to take care of updates, and a broken update doesn't take the system down.
What isn't perfect yet
- Open models make more mistakes in long chains. With many steps in a row, the model sometimes loses track or calls a tool incorrectly. That's why I check results before they go out.
- Web search is a source of errors. The email address it found for my friend was correct. I wouldn't rely on that for strangers.
- Setup takes time. Setting up the Google APIs, the bank connection and the permissions properly was most of the work. Connecting the model was the smallest part.
Conclusion
You don't need a US corporation to have an assistant that actually gets things done. Open WebUI, an open model at an EU provider, well-chosen tools with tight permissions and a setup that updates itself: that's all it takes. My assistant turns a chat screenshot into a finished calendar event and "ENT" into a finished request. The decision about what goes out still stays with me.
Sources: Open WebUI · Podman docs: Quadlet · Podman docs: auto-update · OWASP: prompt injection · Art. 28 GDPR: data processors