# Building a Personal Assistant from Scratch: My Development Journey with .NET MAUI, SQLite, and n8n

> Source: <https://dev.to/yash_nagi/building-a-personal-assistant-from-scratch-my-development-journey-with-net-maui-sqlite-and-n8n-65i>
> Published: 2026-11-29 13:03:29+00:00

**Recommendation:** Keep the client app limited to UI and local chat history, and delegate assistant operations to a backend workflow layer like n8n so new integrations don't require app changes.
More in the playbook "Designing agent systems": <https://wpnews.pro/playbooks/agent-architecture>

Every software project teaches you something new. Some projects help you understand a framework, while others challenge the way you think about architecture, performance, and system design.

My Personal Assistant project has been one such learning experience. I started with a simple idea: build a cross-platform application that can act as a central place for managing everyday activities through an AI-powered assistant.

But as development progressed, I realised that building an assistant is not just about creating a chat interface. It involves designing communication between multiple components, managing persistent data, integrating external workflows, and making architectural decisions that will remain maintainable as the application grows.

Here is how I approached the project and what I learned along the way.

**

The goal was to build a Personal Assistant that allows users to interact with an AI assistant through a conversational interface.

The application is planned to support several everyday activities:

Asking questions on different topics.

Creating and managing calendar events and meetings.

Reading emails, drafting replies, and generating summaries.

Managing tasks and to-do lists.

Creating and managing quick notes.

Tracking expenses and managing budgets.

Instead of building separate interfaces for every operation, I wanted to create a unified conversational experience where users could communicate naturally.

I selected technologies based on their responsibilities within the application.

| Technology | Responsibility | 
|---|---|
| .NET MAUI | Cross-platform application and user interface | 
| C# | Application logic | 
| MVVM | Separation of UI and presentation logic | 
| SQLite | Local conversation history | 
| n8n | Backend workflow orchestration | 
| AI Integration | Understanding and responding to user requests | 

One important architectural decision was to keep the MAUI application focused on the client-side experience while delegating assistant operations to the backend workflow.

This separation helps avoid coupling the mobile application directly to individual integrations and business workflows.

I wanted the architecture to remain simple enough for the initial development phase but flexible enough to support additional functionality later.

The application follows a separation of responsibilities:

**Presentation Layer**

The .NET MAUI application handles the user interface, chat interactions, navigation, and presentation state.

**ViewModel Layer**

The ViewModel manages application state and user interactions using the MVVM pattern. It handles commands such as sending messages, creating conversations, selecting previous chats, and toggling the sidebar.

**Service Layer**

The service layer handles communication with the backend. For example, the n8n service sends user messages to the configured webhook and processes the response.

**Backend Workflow Layer**

n8n acts as the workflow orchestration layer. It receives requests from the application and provides a foundation for connecting AI processing and external services.

**Local Persistence Layer**

SQLite stores conversation and message history locally. The database is not intended to manage external business data such as emails, calendar events, or tasks.

This distinction is important: local storage is responsible for chat history, while the backend handles assistant operations.

One of the first implementation challenges was creating a clean chat interface while maintaining proper separation between UI and application logic.

I used the MVVM pattern to keep the interface independent of the underlying operations.

The main components include:

The application supports the basic conversation flow:

An important lesson here was that a working chat interface requires more than displaying messages. The conversation state, message ordering, persistence, and error handling must all work together.

One of the interesting parts of this project was integrating n8n with a .NET MAUI application.

Rather than implementing every assistant workflow directly inside the application, I decided to use n8n as the backend workflow orchestration platform.

I also wanted the webhook URL to be configurable instead of hard-coded into the application.

During integration, I encountered an interesting debugging challenge: the HTTP request could reach n8n, but the client continued waiting for a response.

This taught me an important lesson about distributed application debugging: a successful HTTP connection does not necessarily mean that the backend workflow has completed successfully.

I had to investigate webhook execution, workflow response configuration, execution progress, and the relationship between the webhook node and the response node.

It reinforced the importance of debugging the entire request lifecycle instead of assuming that every timeout is a client-side issue.

Another important design decision was choosing how to store conversation history.

Initially, I considered the responsibilities of local storage and backend storage separately. Since the application only needed to retain local chat history, SQLite was a suitable starting point.

I designed two primary tables:

**Conversations**

Messages

Stores individual messages:

I also considered foreign key relationships, cascading deletion, and indexes for retrieving messages efficiently.

This part of the project helped me understand that database design is not simply about creating tables. Relationships, constraints, indexing, and data access patterns are equally important.

I also started thinking more deeply about local storage performance, database growth, and how conversation history should be retrieved as the application scales.

The most valuable part of this project has been the problems encountered during development.

Some of the important lessons include:

**1. Architecture matters from the beginning**

Even a small application benefits from clear separation of responsibilities. Keeping UI, backend communication, and persistence independent makes future changes easier.

**2. Client-side timeouts do not fix backend problems**

Increasing an HTTP timeout only changes how long the client waits. It does not resolve a workflow that is not completing or returning a response.

**3. Database design requires understanding access patterns**

Creating a database schema is only the first step. Query performance, indexes, relationships, and data retention also matter.

**4. Cross-platform development introduces additional considerations**

A solution that works on macOS may require different configuration or platform-specific handling on Android and iOS.

**5. Debugging requires following the complete data flow**

When something fails, I try to trace the request from the UI through the ViewModel and service layer to the backend and back again.

These experiences have encouraged me to think beyond individual features and focus on the behaviour of the complete system.

The project is still evolving, and there are several areas I want to explore further:

I also want to understand the underlying system design decisions more deeply, particularly how storage, memory, I/O operations, and data access patterns affect application performance.

Building this Personal Assistant has been more than an exercise in learning .NET MAUI or integrating an AI workflow.

It has given me an opportunity to work across application architecture, MVVM, REST communication, workflow orchestration, database design, and debugging.

My biggest takeaway so far is that building a useful application is not just about making individual features work; it is about making all the components work together reliably.

I am building this project incrementally, learning from each implementation challenge, and refining the architecture as the requirements evolve.

The journey is still in progress, and that is what makes this project interesting.

Technologies: C# · .NET MAUI · MVVM · SQLite · n8n · REST APIs · AI Integration

Development philosophy: Build from scratch. Understand the fundamentals. Design for maintainability. Optimize based on real requirements.
