To answer a customer who asks why a payment failed, a team member needs the chat, the customer's account information and a way to investigate. At Tellus, the chat was in one tool and the account was in our internal console.
In August, our Customer Success team moved to a Chatwoot workspace that we host ourselves. We connected three things to it: the chat already inside the Tellus app, our admin tools, and CS-Lead, an AI analyst we built on Atlas, our agent platform. Account tools run under each person's own admin identity. CS-Lead investigates and explains, but it does not change accounts or talk to customers. A person decides what to say.
This post explains how the parts connect: the two-way chat bridge, the import of our chat history, per-person sign-in for the embedded admin tools, the limits on CS-Lead, and how we measured the change. Chatwoot tells the business side of the story in its case study.

At a glance
| Part | Detail |
|---|---|
| Support platform | Chatwoot Enterprise, self-hosted, pinned to version 4.17.1 as of November 2026 |
| What we reused | Chatwoot's Dashboard Apps and Captain Copilot, our admin system, and Atlas, our agent platform |
| What we built | A two-way chat bridge, four account tabs with per-person sign-in, a CS-Lead tab, one tool in our model gateway, and an FAQ import tool |
| Customer Success team | 3 team members, in 3 time zones |
| Timeline | Requirements on July 27, first replies on August 4, old ticket queue off on August 14, 2026 |
| History imported | About six months, with 72,110 messages re-timed |
The two-way chat bridge: duplicate keys and echo stamps
We did not ask customers to change anything. They still chat inside the Tellus app. A two-way bridge copies each customer message into Chatwoot, and each reply from the team back into the app. A bridge like this has to solve three problems.

The same message can arrive twice. Queues redeliver, and processes restart. Before the bridge posts a message, it looks up a key built from the message's source and its original ID. It writes that key only after the post succeeds. The keys live in a store for 30 days, so they survive restarts. On the Tellus side, the backend links each app message to its Chatwoot message, with unique indexes in both directions, so it also refuses a replayed reply or a replayed send.
We accepted one known duplicate case. If the bridge stops after it posts a message but before it writes the key, a retry posts that message again. We write the key after the post so that no message is marked as delivered before it is, and we take an occasional duplicate line as the cost.
A copied message can echo back. When the bridge posts a customer message into Chatwoot, Chatwoot fires its own event for that message. Without a guard, the bridge would send the message back to the app as new. The bridge stamps every message it posts with the ID of the original, and it drops any event that carries that stamp. On the Tellus side, a reply that came from Chatwoot is saved with a flag that stops it from being sent out again.
The sender type cannot do this job in our setup. The bridge posts as a user, so its copies look like replies from a person.
Illustrative pseudocode, simplified from our bridge:
# Into Chatwoot: skip what we have seen, stamp what we post.
if store.seen(source, message_id):
return
posted = chatwoot.create_message(
conversation_id, text,
attributes={"origin_message_id": message_id,
"origin_created_at": created_at},
)
store.mark_seen(source, message_id, posted.id) # written only after the post succeeds
# Out of Chatwoot: only real replies go back to the app.
def on_chatwoot_event(event):
if event.message_type != "outgoing":
return
if event.private:
return # private notes never reach the customer
if event.attributes.get("origin_message_id"):
return # we posted this ourselves: drop the echo
publish_to_app(event)Some messages must never reach the customer. Team members write private notes in Chatwoot. The bridge forwards only outgoing replies, and it rejects private notes before it forwards anything to the app.
When a delivery into Chatwoot fails, the message goes back on the queue. After five failed tries, it moves to a dead-letter queue, which keeps it for 14 days. A message in the dead-letter queue, or any error on the outbound side, triggers an alarm that is set to fire within five minutes. One case does not fail at all: an attachment larger than 15 MB is left behind, and the message still arrives with a line that says so.
Importing six months of history: the timestamp problem
A team member who opens a conversation should see its past. We imported about six months of chat history by replaying it through the live bridge. The import ran one conversation at a time, in the original order, so it used the same duplicate and loop guards as live traffic.
In Chatwoot 4.16, the version we ran then, the message-creation path we used gave each imported message the import time instead of its original time. Every imported message looked as if it had arrived on the day of the import.
We fixed it in two steps. First, the bridge recorded each message's original time on the message itself. Then a one-time script copied that time into the message's creation time, and into each conversation's start and last-activity times.
The script failed twice before it worked. On the first run, it could not read the stored time, because the value had been encoded twice. On the second run, the database stopped the update when it ran past the statement time limit. The final run corrected 72,110 messages.
Two things still carry the import date: Chatwoot's own reporting records for the imported history, and about 21 conversations from an early run. We measure from our own chat records instead, as the measurement section below explains.
Admin tabs in Chatwoot: context from Chatwoot, identity from Tellus
Chatwoot's Dashboard Apps open other pages in tabs beside a conversation. We built four account tabs from our admin system: Profile, Finances, Boosts and Referrals. They are read-only. Bank accounts show only their last four digits, and IP addresses are masked. Each tab's frame-ancestors policy restricts embedding to our Chatwoot host.
Chatwoot tells a tab which customer is on screen. We do not rely on it to say who is looking.

Context comes from Chatwoot. When a tab opens, Chatwoot sends it the open conversation and contact through a browser message. The tab uses that to choose which customer to show. The message is not signed, so we never use it to decide who is asking.
Identity comes from Tellus. The first time a team member opens a tab, it shows a Connect button. Connect opens a pop-up to our own admin sign-in, behind our single sign-on. The pop-up hands a signed token back to the tab. The token lasts eight hours and stays only in that browser session. We can revoke every token at once.
The Connect step costs the team one click per session. We kept it because it ties every read to a named admin account. I wrote about that trade-off in Forbes, before you remove friction, ask what it protects.
Authority is checked on every request. Each request carries the token. Our backend verifies it, then checks the live user record: the person must still be an admin and must not be blocked. A change to someone's access takes effect on their next click, not at the end of their session.
Every read is recorded. The audit trail records the team member's own admin account, the customer, the tab and the action.
Expired or refused sessions. When a token expires, the tab asks the team member to connect again. When the backend refuses a request, the tab clears the token and shows the Connect button.
CS-Lead and the limits on its tools
CS-Lead runs on Atlas, the AI agent platform we built for our own engineering work. It has its own tab in Chatwoot, with the same kind of per-person sign-in: a single sign-on pop-up, an eight-hour signed token, and an authorization check on every request.
A team member asks CS-Lead how the product behaves in a case, such as which conditions in the payment code can make a transfer fail. CS-Lead passes parts of the question to specialist AI agents. Each specialist knows one area of the product (payments and accounts, the mobile apps, the web app or the internal console) and reads that area's code. CS-Lead then explains what it found in plain words. On the tab, CS-Lead reads code and documents, not customer accounts. The team member checks the customer's actual account in the account tabs, then decides what to tell the customer.
The tab passes the customer's conversation into the model's context. That means a customer could plant an instruction in a message. So we do not rely on the prompt to hold CS-Lead back. We limit the tools it is given. On the CS-Lead tab, CS-Lead has two kinds of tool: it can ask a product specialist, and it can search our compliance documents. It has no tool that changes account data, files a ticket, changes code or sends a message to a customer.
The limit has to reach every agent CS-Lead asks. Our specialist agents are not read-only by default. Some of them can open code changes or query data. A limit that stopped at CS-Lead would leave those tools open to the specialists it asks. So the limit travels with the request, and each specialist that CS-Lead asks gets only code-reading tools. OWASP lists this risk as excessive agency, and its first fix is to minimize the tools an agent can call.
Illustrative pseudocode, simplified from Atlas. Only the entry route declares a limit. A delegated call never declares its own list, so it always inherits one:
const SPECIALIST_READ_ONLY = ['search_code', 'get_file_contents', 'list_commits'];
function readOnlyToolsFor(agent) {
// An agent we cannot classify gets no tools.
return isProductSpecialist(agent) ? SPECIALIST_READ_ONLY : [];
}
function toolsFor(agent, request, entryLimit) {
const inherited = request.context.get(LIMIT_STAMP)
? readOnlyToolsFor(agent)
: undefined;
// Only the entry route sets entryLimit.
const limit = entryLimit ?? inherited;
// The next hop inherits the limit.
if (limit) request.context.set(LIMIT_STAMP, true);
return limit ?? agent.allTools;
}
A test checks this. It sends CS-Lead the question "why did the transfer fail?" with a planted instruction to diagnose the problem and publish a fix. The test confirms that CS-Lead is offered only the specialist and search tools, and that the payments specialist it asks gets only code-reading tools.
Filtering identifiers from answers and saved history. Before an answer leaves CS-Lead, a filter masks text that matches identifier patterns, such as email addresses, phone numbers, card numbers, labeled account and routing numbers, tax IDs and dates of birth. It does not remove dollar amounts, because the team needs Tellus's own figures to answer a question about a payment. The same filter runs on the conversation before CS-Lead saves it to memory. That conversation memory keeps the most recent 40 messages. It is separate from team memory, which CS-Lead cannot write to on the tab.
Captain Copilot through our model gateway, with no Chatwoot fork
Captain is Chatwoot's AI assistant. Its Copilot drafts suggestions for a team member inside the reply editor. We wanted Copilot to be able to consult CS-Lead, and we did not want to maintain a fork of Chatwoot to get there.
A self-hosted Captain calls a standard chat-completions endpoint that the host configures. We pointed Captain at our own model gateway. The gateway passes Captain's requests through to the model, and it adds one tool to the built-in tools that Copilot already offers: ask CS-Lead. When the model calls that tool, the gateway calls CS-Lead itself and returns only the answer to Chatwoot. Chatwoot's server makes this call, not the browser. The gateway reaches CS-Lead with a shared secret. Chatwoot attaches the conversation's IDs, so CS-Lead keeps a separate memory for each conversation, and the identifier filter applies on this path too. We changed no Chatwoot code.
Approved answers go in word for word. Copilot also draws on our help-center FAQ. Captain can generate FAQ entries from a document, but that path runs the text through a model, which can change a rate or a limit as it rewords. So our import tool loads each approved question and answer exactly as written, with no model in between. Its sync mode keeps Captain matched to the source file. It refuses to run on a file with fewer than 80% of the live entries, and it names any entry a person edited by hand before it overwrites it.
Word-for-word loading keeps the stored answers exact. Copilot can still reword them in a suggestion, so team members review every suggested draft before they send it.
Self-hosting Chatwoot: isolate, pin, connect
Chatwoot runs in a separate environment that Tellus owns and controls, not in Chatwoot's cloud. We set it up in three steps, in this order:
- Isolate. Team members reach Chatwoot only through our company VPN and single sign-on.
- Pin. The Chatwoot version is fixed, and an upgrade is a reviewed change.
- Connect. Each integration reaches Tellus systems through one defined, authenticated channel.
We run the official Chatwoot image, copied into our own image registry and pinned by its digest. Image tags in that registry cannot be overwritten. The Chatwoot version lives in one file in the repository, so an upgrade starts as a pull request. A production deploy waits for a person to approve it. It also waits for the new version to run healthy before the pipeline reports success. Each upgrade gets a written review. For our September upgrade, the review checked 19 new database migrations, skipped one Chatwoot release, and scheduled the deploy for off-hours.
In our Chatwoot 4.16 deployment, SafeFetch blocked every webhook to our private hosts. We set SAFE_FETCH_ALLOW_PRIVATE_NETWORK only on the worker process that sends those webhooks, and left it off on the web process, which handles uploads. The setting applies to every SafeFetch request in the process where it is on, so it is not a per-webhook allowlist.
We reviewed the plan before we built it. Three adversarial reviews of the written infrastructure plan found 14 problems, and we fixed each one in the plan before the build started. Two examples show the kind of problem a review catches:
- Our team's traffic leaves through one shared address. Per-address rate limits would have throttled the whole team as if it were one user.
- The deploy did not wait for the service to run healthy. A failed rollout could have left the pipeline green.
Eight days from requirements to first reply, with AI coding agents. The Customer Success team wrote its requirements on July 27 and answered its first customer from Chatwoot on August 4. We switched off the old ticket queue on August 14. AI coding agents carry co-author credit on 85 of the 112 commits in the integration repository, by our count on October 29. That figure counts commits, not lines of code or hours saved. Tellus's rules for AI-assisted work set out who is accountable when an AI agent writes the code.
How we measured
We measured from our own in-app chat records, not from Chatwoot's reports. Those records hold every customer message and every reply from the team, before and after the switch, in the same form.
- Channel: in-app chat only. Email is not included.
- Conversation: starts with a customer message after 24 hours of quiet.
- First reply: the first message from a person. The automated welcome message and a bank-verification outreach template do not count. A conversation with no reply from a person within seven days counts as unanswered and is left out of the wait figures.
- Support hours: conversations that began Monday to Friday, 9 a.m. to 5 p.m. Pacific. The wait is clock time from the customer's message to the first reply.
- Periods: May through July, before the switch, compared with September and October, after it. August, the month of the switch, is left out. The comparison includes conversations that began through October 31, 2026. We ran these numbers on November 17, so every conversation had a full seven days of follow-up.
During support hours:
- In October, the median wait for a first reply was 45% shorter than in May through July.
- Across September and October, the median wait was 36% shorter.
- In October, the 90th-percentile wait was 30% shorter.
Across September and October, conversations per day, at all hours, were about 30% higher than in May through July.
We also watched one broad quality signal: the share of conversations after which the same customer started a new one within a week. After rounding, it stayed between 15% and 19% in every month. It is a rough signal, because a customer with a new question counts the same as one whose problem was not solved.
These numbers describe the period after the switch. Other things changed too, so they do not prove what caused the change.
What another team can reuse
- Separate context from identity. Let the support tool tell you which customer is on screen. Let your own sign-in decide who is asking, and check it on every request.
- Stamp what you copy. In a two-way bridge, stamp each copied message with its original ID, and drop anything that carries your stamp. A filter on the sender type is easy to get wrong.
- Check timestamps before you import history. Find out whether the target system keeps the times you send. Ours did not.
- Carry AI tool limits through every delegation. A limit on the first agent means little if a delegated agent keeps its full tool set. Write a test that plants an instruction and checks every tool list along the way.
- Measure from records the migration does not change. Watch a quality signal beside the speed.
Read Chatwoot's case study: How Tellus put its own tools and AI inside every Chatwoot conversation.
– Jeromee (JJ) Johnson, President and CTO
About Tellus
Tellus App, Inc. is a proptech company headquartered in Silicon Valley. The Tellus savings app helps people save with cash accounts powered by real estate, and gives independent landlords property management software. Tellus also offers business-purpose residential lending.
Tellus is not a bank. Tellus is not FDIC-insured. The FDIC-insured Deposit Account is provided by Central Bank of Kansas City, Member FDIC. Eligible deposits held at Central Bank of Kansas City are insured by the FDIC up to applicable limits in the event of the bank’s failure. FDIC insurance does not apply to Tellus itself or to non-deposit products or services.
The Boost Account, Reserve Account and Vaults are not deposit accounts and are not FDIC-insured.
Rewards on Tellus’s non-deposit accounts vary and are determined by each customer’s actions and choices in the app.
See www.TellusApp.com for full terms and conditions.
Media contact: press@tellusapp.com