Run your workspace
Leads & human takeover
Leads (/app/leads; it was called Inbox,
and /app/inbox still forwards here) lists every captured
lead. Opening one shows the lead's details and status, and the
conversation that produced it, to read. To take the chat over or
reply, Open conversation opens the conversation
screen — the one place a team member takes over a chat.
A strip above the list shows how many leads are New, Qualified, Contacted, Won and Lost across all of them (the lead pipeline that used to be on the Dashboard). Each count opens the list filtered on that status. Home announces leads that are still New.
The period control — All time (the default),
Last 7 days, 30 or 90
(?period=7d|30d|90d) — narrows the list, the status
counts and the totals to leads captured in those days: today and the
days before it, from midnight, the same stretch as Conversations and
Results. Home's New leads tile opens Leads with the last 7
days, so the list shows the number on the tile. A lead sent from a
test chat in your dashboard carries a Test label: it is listed
so you can check the form and the email, but Home and Results do not
count it.
Leads and Conversations can be filtered to one AI employee: a chip
names it, links back to it and removes the filter. This replaced the
separate lists each AI employee used to have; their addresses
(/app/agents/{id}/leads and
/app/agents/{id}/conversations) open the filtered lists.
The figures of the filtered list count that AI employee only.
Layout
/app/leads lists leads, newest first. Opening one shows
the conversation that produced it on the left — visitor messages on
one side, the AI employee's replies and past human replies on the
other — with Open conversation and, when someone is in
the chat, who that is. The lead's email, name, phone, status and where
it was delivered sit on the right. The conversation screen links back
with Open lead in its side panel.
The Status column is an inline select — change it in place to move a lead through new → qualified → contacted → won / lost. The list also auto-refetches when the tab regains focus or you navigate back from a conversation thread, so a status edit you made elsewhere shows up without a manual reload.
The conversations index at /app/conversations covers
every conversation regardless of whether it produced a lead — useful
for spelunking past sessions that didn't convert.
Live updates
Updates arrive by polling, not over websockets. An open conversation screen reloads its messages every 2 seconds while the chat is waiting for a person or taken over, and every 8 seconds otherwise (only while the tab is visible; clicking the Live pill pauses it). The visitor's widget asks for new team replies and the takeover state every 3 seconds while it is open. The server does broadcast events on private channels when a broadcast driver is configured, but no screen subscribes to them.
Taking over
On the conversation screen, click Take over. (Earlier the lead page had its own Take over, Hand back and reply box; they are gone, so there is one screen with one set of words.) A few things happen:
- The conversation gets
claimed_by_user_id+claimed_atset to you (route:POST /app/conversations/{conversation}/claim). - On its next 3-second poll the visitor's widget sees the takeover: it shows a short "<Name> joined the chat" notice ("An agent joined the chat" when names are hidden) for about 8 seconds, and a Live agent pill in the chat header for as long as you hold the chat.
- The AI is paused. Every visitor message waits for you in the conversation. Each reply you send (
POST /app/conversations/{conversation}/reply) is stored as a message with roleassistantand modelhuman:<your user id>; the widget picks it up on its next poll and shows it as a team member's bubble.
WhatsApp chats
Chats from WhatsApp sit in the same list, with a WhatsApp badge and the customer's name and number; filter on Website or WhatsApp with the channel menu. A reply you type to a WhatsApp chat goes out over WhatsApp at once. WhatsApp allows a free reply only within 24 hours of the customer's last message: the chat shows until when, and a reply WhatsApp refuses is kept and marked not delivered. Each message shows sent, delivered or read. See WhatsApp channel.
Releasing
Click Hand back to release (route:
POST /app/conversations/{conversation}/release). The next
visitor message goes through the RAG pipeline again. The chat gets
the line "The operator has stepped away. The AI assistant is back
to help.", and the widget drops the Live agent
pill on its next poll. Useful when:
- You answered the off-script question and the rest is back to FAQ territory.
- The visitor is satisfied and likely to leave.
- You're ending your shift — handing back keeps coverage 24/7.
Capturing leads
Leads come in two ways:
- Visitor-driven — the widget's inline lead form, fired by a behavior rule or by the visitor explicitly asking to be contacted. Submitted leads land in
/app/leads. - Webhook-driven — every captured lead fires the
lead.capturedoutgoing webhook so you can fan it into your CRM. See Outgoing webhooks.
Live in-app toasts
The admin shell polls GET /app/leads/feed every 30
seconds for newly captured leads in the workspace and surfaces each
one as a sonner toast in the bottom-right of every page in the
admin SPA. Click the toast to jump straight to the lead.
The bell button in the top header asks the browser for native notification permission. Once granted, every new lead also fires an OS-level notification so workspace members get pinged on tabs that aren't focused. Permission is per-domain — denying it once can only be reversed from your browser's settings.
Polling pauses on hidden tabs to keep idle dashboards from burning
HTTP. The cursor lives in sessionStorage so opening a
second tab doesn't double-toast already-seen leads.
Email notifications
By default every captured lead is emailed to every workspace owner
and admin, and to the client owner of a workspace an agency manages
(an agency client has no owner or admin of its own). Per AI employee,
Lead capture ›
Who is told about a new lead can add up to 10 extra
addresses (they need no account) and switch off Also send to the
workspace owners and admins, so only those addresses get it. The
notification (App\Notifications\NewLeadCaptured) is
queued — the visitor's HTTP request never waits on SMTP, so a slow
mailer cannot slow lead capture or chat.
Team recipients are filtered down to workspace_users.role IN
('owner', 'admin') with accepted_at IS NOT NULL.
Pending invites, editors and viewers do not receive lead emails unless
their address is one of the extra recipients; an extra address that
already belongs to such an owner or admin gets one mail, not two. The footer
of the email reflects your white-labelled site title (set in
Settings → System).
Each person reads the lead mail and the live-chat request mail in their own language; someone who never chose one gets the language the AI employee answers in. The time a lead came in is the shop's own time (the time zone under Availability and notifications, else Europe/Amsterdam), a team member's messages in the conversation are labelled as theirs, and for a client of an agency both mails come in the agency's look, with their links on the agency's own domain.
The lead form in the chat
/ #1061: without fields of your own, the form asks for a name (optional), a phone number and an e-mail address, and one of the two is enough: a visitor who asked to be called leaves a number only. Any name, phone number or e-mail address the visitor already typed in the chat is pre-filled automatically when the form opens (visitor messages only — never contact details from the AI employee's own replies — and trusted page identity still takes precedence). Under an answer that offers the form, a "contact us" button is left out, so the visitor sees one way to get in touch. A price question opens no form at a shop (an AI employee with a product catalogue): a shop answers prices on its own pages; a quote, a call or a contact request still does.
A lead on an agency's demo, or on a client that has no people of its own yet, goes to the agency: the person who made the demo and the agency's owners. A lead that left only a phone number is named by that number in the mail's subject.
While a team member is in the chat
while a team member has taken over, the AI stays silent and the visitor's chat shows no automatic line under each message. What the visitor writes still counts for the lead score. Handing the chat back shows "De medewerker heeft de chat verlaten. Ik help je graag verder." in the chat's language and je/u; a takeover without a team message for two hours goes back to the AI by itself, with the same line.
Cleaning up the conversation log
A new Conversation row is written every time a visitor
loads the widget for the first time in 24 hours. Visitors that drive
by without typing still produce a row, which means
/app/conversations can pile up with empty sessions over
time. Two affordances keep it manageable:
- Engaged-only filter (default). The list hides conversations with no visitor messages. Toggle Show all in the filter bar to see every session — useful when you're looking for bot traffic or QA loads. The dashboard's Conversations tile and the agents list count with the same rule, so the numbers agree with this list. Under Needs you and Live now every matching session shows, also one where the visitor asked for a person before typing anything (the button in the chat header works straight away): the pills and Home count those, so the list shows them too.
-
Period filter. All time / Last 7 days /
Last 30 days / Last 90 days (
?period=7d|30d|90d) bounds the list on the conversation's start time and is kept across search, the pills, the engaged toggle and pagination. Last 7 days is today and the six days before it, from midnight — the same stretch as Results and Home's This week. The count next to the control is the number of conversations in that window under the current filters — the quickest answer to "how many real conversations did we have this week". Unknown values fall back to all time, so an old bookmark never errors. -
Per-row delete. Admin and Owner roles see a
trash icon on hover. Deleting cascades to messages, leads, and
applied tags via DB foreign keys; analytics events are kept
(FK
nullOnDelete) so aggregate stats stay intact. -
Bulk delete empty. The button in the filter bar
deletes the empty sessions it counts: those of the AI employee the
list is filtered to (
?agent=), or of the whole workspace when it is not, and the confirmation says which. A session is empty when the visitor sent no message, did not ask for a person and no team member took it over. Sessions where the visitor wrote, or is waiting for a person, are never touched. Now two more are kept: a session with a lead (the pre-chat form saves one before any message, and deleting the session would delete the lead with it) and a session opened less than an hour ago, whose visitor may still be typing. Neither is counted in the button either. -
Bulk delete selected. Tick the checkboxes on
any visible rows, then click Delete N selected.
The workspace global scope on
Conversationprotects cross-tenant ID smuggling — IDs from other workspaces are silently dropped server-side.
Viewers and Editors do not see delete affordances; the
ConversationPolicy::delete +
WorkspacePolicy::bulkDeleteConversations checks require
Admin or Owner. Deletion is irreversible — there is no soft-delete
trail and the audit log does not yet capture conversation removals.
Audit log
Taking over and handing back (claim, release) do not write
audit_logs rows. The thread itself shows the hand-back
line and, after a transfer, an internal note naming both team
members. Platform staff can browse a workspace's audit log at
/admin/workspaces/{workspace}/audit; there is no audit
page for customers.