Lewisia Desk
Tenants and co-owners write to their agency by e-mail, web form, messaging or chat. Lewisia Desk reads every request, qualifies it, answers the routine ones from the agency’s own documents, and escalates the rest to the team console, where a person replies with an AI draft checked against the sources.
- FastAPI
- LangGraph
- Chroma
- OpenRouter
- MCP
Answer the routine, escalate the doubt.
A property agency receives the same questions all year: rent receipts, keys and badges, deposit returns, who pays for a leaking sink. Between them arrive the urgent ones: water through a ceiling, a door that no longer locks, a power cut. All of it comes through e-mail, a web form, a messaging app or a chat, and all of it waits for the same few people.
Lewisia Desk takes every request from every channel into one queue. A small model qualifies it: category, urgency, who should act. Plain code then decides, in a fixed order, whether to answer from the agency’s documents, ask one clarifying question, send it to the right person, or redirect it to the police, the utility or the insurer. Each urgency carries a response deadline, and the dashboard shows how many requests were answered before it.
When the documents do not cover the question, the desk does not improvise. The request goes to the team console with the bot’s reasoning attached, a model drafts a reply from the knowledge base, a second model checks that draft against the sources, and a person edits and sends it. The tenant reads the answer in the same conversation.
When in doubt, escalate instead of inventing.
Built for the desk, not for the demo.
- 01
Four channels, one queue
E-mail, web form, messaging and Lewisia Chat are normalised into one request format and one queue. The channel never changes how a request is treated.
- 02
Qualified before anyone reads it
A small model gives each request a category, an urgency, a scope and a flag for “someone has to act”, with a confidence score. The trace keeps all of it.
- 03
Answers only from the documents
Routine questions are answered from the agency’s own knowledge base. If the best source scores under a measured threshold, the request is escalated instead.
- 04
One clarifying question, then a decision
When the request is unclear, the desk asks once, pauses durably, and continues from the same state when the answer comes. The loop is bounded, so it cannot stall.
- 05
Deadlines by urgency
An emergency has four hours, a soon request three days, a routine one fifteen days. The dashboard counts answered-before-deadline and overdue requests from the traces.
- 06
A photo, labelled at submission
One photo per request is labelled water damage, electrical, structural, lock or door, with a score, and the label helps pick the contractor. The image itself is never stored.
- 07
A team console for the rest
Escalations land in a queue sorted by urgency, with the bot’s reasoning and the reference the tenant received. A draft is written from the knowledge base, checked against the sources, and sent by a person.
- 08
One agency, one tenant
The agency is decided by the channel, never by the text of the message. From Lewisia Chat it comes from the signed-in user. Each agency has its own slice of the knowledge base and its own requests.
Also included, not shown in the walkthrough: redirections to the police, the utility provider or the insurer for what is not the agency’s to handle; a list of experts and contractors per domain, from property manager to locksmith; the expert notification by e-mail through an MCP server; and the console’s own knowledge base layered on the shared one, so the bot and the person never tell the tenant two different things.
6 steps, end to end.
The rules live in code, not in a prompt, so the order of decisions is the business policy and can be read and tested. Every step writes to the trace, and every dashboard figure is computed from those traces.
Step 01
Receive
A request arrives by e-mail, web form, messaging or Lewisia Chat and becomes one normalised record in one queue, with its agency set by the channel.
Step 02
Qualify
A small model with structured output returns category, urgency, scope, whether someone has to act, and a confidence. A labelled photo, when there is one, joins the record.
Step 03
Route
Plain code applies the rules in a fixed order: redirect what is not the agency’s, clarify when in doubt and the budget allows, escalate an emergency or anything that needs action, answer the rest.
Step 04
Answer
The answer is written from the best excerpts of the agency’s knowledge base. Under the relevance threshold, there is no answer: the request is escalated.
Step 05
Escalate
A ticket names the expert or contractor, the priority and the deadline, and is delivered to the team console with the full trail and the reference given to the tenant.
Step 06
Reply
In the console, a four-step graph analyses the ticket, searches the knowledge base, writes a draft and verifies it against the excerpts. The person edits and sends; the tenant gets the reply through the status of the request.
Runs on a laptop, designed for the cloud.
FastAPI and LangGraph
The API and the orchestration graph. A clarifying question is a durable interrupt with a SQLite checkpointer, so a request can wait for its answer across restarts.
Chroma with embeddings through OpenRouter
The knowledge base, one collection per agency plus the shared documents. The relevance threshold was measured on the corpus, not guessed.
GLM 5.3 Flash through OpenRouter
Qualifier, generator, draft writer and verifier all run on a small fast model. The provider and the model are configuration, and the Azure OpenAI adapters are in place for a client deployment.
Gemini 2.5 Flash Lite for photos
Labels the one photo a request may carry, at submission, so the image never needs to be kept.
MCP into Lewisia Chat
The chat channel is an MCP server with three tools. The tools take no identity parameter: the agency and the author come from the signed-in user, injected as headers.
Built and running. Shown on request.
The desk is private for now. Request a live walkthrough on your own material: your building rules, your contractors, your deadlines, and the channels your tenants actually use.
Notes
- The Lewisia Chat channel shown in the walkthrough is built on LibreChat, an open-source project released under the MIT License, © LibreChat contributors. The source of the base project is at github.com/danny-avila/LibreChat. Lewisia Labs is not affiliated with, sponsored by or endorsed by the LibreChat project. FastAPI, LangGraph, LangChain and Chroma are open-source projects of their respective authors, used under their licences.
- OpenRouter, Z.ai, GLM, Google, Gemini, Microsoft and Azure are trademarks of their respective owners and are named only to identify the services shown or supported. No partnership or endorsement is implied.
- All names in the walkthrough are invented: the agency (Atlas Media), the people (Lead, Atlas Admin, Nadia Berger, Felix Moreau, Lucia Ferreira, Omar Haddad, the “JD” initials), the e-mail addresses and domains (lead@atlasmedia.example, atlasmedia.example, mail.example), the building and flat (12 rue des Lilas, flat 3B), the contractor (Riverside Plumbing), the knowledge base documents, the requests and the tickets. They were created for the demo only. Any resemblance to a real company, person, address or building, past or present, is coincidental and unintended. The narration and captions were generated with a synthetic voice.
- The project is shown for information purposes. It is not offered as a hosted service on this site, and nothing on this page is a contractual offer. Where the tool is deployed for a client, data is processed on the client’s own infrastructure and with the model provider the client chooses, under that client’s agreements.