Analytics

See what's happening in your inbox right now, what's been happening over the last 7, 30, or 90 days, and write your own SQL widgets when the built-in metrics aren't enough.

TL;DR

  • What it is — a live operations panel (active chats, unanswered, waiting times, agents available, calls in progress) plus historical charts for response times, resolution, tickets, calls, and bots — and a custom-query builder where you can save and run your own SQL widgets, with an AI assistant that writes the SQL for you from plain English.
  • Who it's for — team leads watching the day in real time; managers reviewing weekly and monthly trends; admins building org-specific KPIs the standard dashboard doesn't ship.
  • Top outcome — answer "how are we doing right now?" in two seconds, "how were we doing last month?" in five, and ship a custom widget without writing SQL by hand.

At a glance

Plan tierAll paid tiers.
Who can use itAll roles can view. Custom-query authoring is recommended for admins.
ChannelsOrganisation-wide across every channel. Several metrics support a per-channel breakdown.
IntegrationsReads from the live inbox, chat states, contacts, tickets, calls, and bot journeys.
Top limitsRight-now tiles refresh every 30 seconds. Historical metrics support 24-hour, 7-, 30-, 90-day presets and any custom range. A custom query runs for at most 30 seconds and previews up to 10,000 rows; a CSV download streams up to 100,000. A dashboard holds up to 10 widgets and 8 filters.
APICustom queries you publish (Available in Reports & API) can be run and downloaded through the Reports API and MCP. Everything else is internal.

How to find it

Sidebar → More → Analytics. (Pin it to the rail from More → Customise to keep it one click away.)

Direct URL: https://lodgestory.com/crm/insights

Rail More panel open on the Analytics page with Analytics highlighted

What is Analytics?

The problem it solves

Most teams need three different answers from their analytics: what's happening this minute?, how have we been doing this week?, and the standard dashboard doesn't break it down the way I think about my business — can I get a custom view?. The first is a real-time operations question. The second is a trend question. The third is "we run a different kind of business and the canned KPIs don't fit." A traditional analytics page answers one well and the others poorly.

The Analytics module answers all three from one page. The top of the page is a live operations panel that refreshes every 30 seconds. Below it, historical metrics for chats, tickets, calls, and bot performance over a date range you choose. And in a separate tab, a custom-query builder where you write SQL once, save it, and run it any time — with the data automatically scoped to your organisation.

What you get

  • Live operational tiles that refresh on a 30-second loop — active chats, unanswered chats, the waiting-time distribution against SLAs you configure, oldest waiting chat, agents available, calls in progress, bot sessions in progress. The active and unanswered tiles exclude resolved & closed chats, so a closed thread never inflates your waiting counts.
  • Configurable waiting SLAs — pick a tight (5m / 15m / 30m), default (5m / 1h / 4h), or relaxed (1h / 4h / 24h) preset, or set custom thresholds. Tiles re-bucket immediately.
  • Historical charts — message volume, first response time (median), average response time, average resolution time. Each on a date range you choose.
  • Date range picker — 24-hour, 7-day, 30-day, 90-day presets, plus a custom-range option for any window you want.
  • Agents table — one row per team member for Today, Yesterday or any range of up to 7 days, filterable by team: hours online, breaks (total and by break type), unreachable time, time on calls and occupancy, login and logout; calls handled, missed as direct vs via a department queue, outbound attempts and connect rate, speed to answer, holds, transfers, answered calls without a disposition; chats responded to, messages sent, primary assignments, chats resolved with average resolution time, open chats, chats awaiting a reply right now, workflow stage moves; tickets assigned and resolved; telecalling dials, connects, talk and wrap time, leads worked, won and lost; follow-ups due, completed, overdue and expired; CSAT and NPS. Show or hide any column, sort any column, totals row at the bottom.
  • Click any number — every count opens a detail view listing the exact records behind it (the calls, chats, messages, tickets, leads, follow-ups, survey responses or presence intervals), each linking to the record, with its own CSV download.
  • Tickets, Calls, and Bots tabs — purpose-built charts for each surface (created vs resolved, call volume + handle time, bot containment rate).
  • Availability tab — total available vs. unavailable time and a per-break breakdown over your date range, plus a per-agent comparison and detail table. Admins see the whole team; an agent sees their own.
  • Custom queries — write SQL with PostgreSQL syntax highlighting, autocomplete for the org-readable table list, and pick the visualisation type (KPI, bar, line, pie, or table). Save it, activate it, and run it any time.
  • Ask AI — describe a metric in plain English and the assistant returns a complete query (SQL + name + description + visualisation type) ready to drop into the editor. Multi-turn — refine ("now group by channel", "and only the last 7 days") in conversation.
  • Download CSV — every result preview, the Agents table and each of its detail views expose a one-click CSV export (UTF-8 with a BOM so Excel opens cleanly).

How it's different

  • Live + historical on the same page. Most analytics pages are one or the other. This one shows the day-to-day right now and the trend underneath in one scroll.
  • Configurable SLAs, not fixed buckets. The waiting-chat tiles bucket against thresholds you set. Hospitality teams running 24/7 want different SLAs than agencies with strict business hours; the dashboard adapts.
  • Custom queries built in. Write your own dashboard widgets in SQL, save them, share visualisations. No second tool needed for org-specific KPIs.
  • AI writes the SQL for you. The Ask AI assistant has been pre-trained on the full analytics data model — every readable table, the JSON shapes of fields like the latest message blob and bot session variables, and a library of canonical query patterns the built-in metrics already use. You describe what you want; it generates SQL that matches the same patterns.
  • Tenant safety on by default. Every saved query is scoped to your organisation automatically — there's no path that lets one organisation read another's data, even if a query author writes a sloppy WHERE clause.

Customer scenarios

  • Daily standup. Team lead opens Analytics first thing. Live tiles show unanswered count and oldest waiting time; historical chart confirms first-response time is trending in the right direction. They open the Agents tab on Today, sort by Awaiting reply, and spot the agent who's slipping — one click on the number lists the exact chats waiting.
  • Quarterly review. Operations manager picks a 90-day range, screenshots the four overview charts, and pastes them into the deck. They flip to the Tickets tab for ticket volume + resolution time, screenshot those too.
  • Custom KPI for marketing. Marketing wants to track "chats per UTM source per day". They write a SQL query against the conversations and contacts data, save it as "Chats by source", set it to a bar chart, and pin it. They share the URL with their team and check it weekly.
  • SLA breach hunt. A hospitality customer has chats waiting > 4 hours during weekends. They open the SLA settings, switch to the relaxed preset, and the tiles instantly show the new buckets — they can quantify the problem before staffing weekend shifts.

How it fits with the rest of Lodgestory

This module is a consumer, not a producer. Every metric is derived from data owned by other modules: message volumes from Home, chat states from Workflow Lifecycle Stages, assignments and identities from Team Members, tickets from Tickets, call activity from Calls, bot sessions from Bot Journeys. Downstream: Reports exports raw CSVs when you want to do work in a spreadsheet or BI tool.

Analytics Overview tab with the Right now live tiles and the start of the Historical section with its date-range presets

Core concepts

TermWhat it means
Right-now tileA live counter that refreshes every 30 seconds (active chats, unanswered, agents available, etc.).
Waiting SLA thresholdA duration in minutes that defines a bucket on the waiting-chat tiles. Configurable per organisation.
Historical metricAn aggregated value over a date range (e.g., median first-response time per hour for the last 7 days).
Date rangeThe window historical charts are computed over. Four presets plus a custom range.
Agents tableOne row per team member (admins) or your own row (agents) for Today, Yesterday or a custom range of up to 7 days, every number opening a detail view.
Custom queryA saved SQL query with a chosen visualisation type. Runs against your organisation's data only.
Library templateA starter custom query published by Lodgestory that any organisation can copy and edit.
Active vs DraftA custom query in draft exists but cannot be run. Activate it once it's reviewed.

Quick Start — read the dashboard in two minutes

Step 1 — Open Analytics

Sidebar → More → Analytics.

Step 2 — Glance at the live tiles

Top of the page. They refresh every 30 seconds; a pulsing green dot and "last update HH:MM:SS" confirm they're alive.

Step 3 — Tune the waiting SLAs once

The gear icon next to "Right now" opens a small settings panel. Pick a preset that fits your business, or type your own thresholds in minutes. Tiles re-bucket immediately.

Step 4 — Pick a date range

Top right — 24h, 7d, 30d, 90d, or Custom. Custom opens a popover with two date pickers.

Step 5 — Read the four overview charts

Message volume, FRT (median), ART (average), and average resolution time, all over the selected window.

Step 6 — Review the team in the Agents tab

Open the Agents tab. Pick Today, Yesterday or a custom range of up to 7 days. The first team is selected for you (choose All teams to see everyone; organisations without teams see everyone straight away), then click any number to open the records behind it. Columns hides what you do not need; Download CSV exports the table, and each detail view has its own download.

Step 7 — (Optional) Write a custom query

Open the Custom queries tab → + New query. Write SQL (or ask Kaylee), add a variable such as {{date_range}}, choose a visualisation, toggle Active, save, and click Run. Pin it to a dashboard, download the CSV, or publish it to Reports.

How it works

The right-now tiles read directly from your live data — there's no separate snapshot. Every 30 seconds the page asks for fresh values; the database returns them in well under 100 milliseconds.

The historical charts run aggregations across the date range you've chosen. Standard time-bucketed views (per hour, per day) come back in milliseconds for typical organisations.

Custom queries run under a locked-down read-only role with a 30-second time-out and a 10,000-row preview cap. Tenant filtering is enforced automatically — your queries only see your organisation's data.

Features in depth

Right-now tiles

  • Active chats — open conversations with state machine still active.
  • Unanswered — chats whose latest message is from a guest.
  • Waiting tiles — one tile per configured SLA threshold, showing how many unanswered chats are older than each. Severity colour shifts from neutral to warning to danger as the threshold is crossed.
  • Oldest waiting — the age of the longest-waiting unanswered chat, formatted as 5m, 2h, 3d.
  • Agents available — team members with availability turned on.
  • Active calls — calls connected right now.
  • Active bot sessions — bot journeys mid-flight.

SLA configuration

The gear icon opens a settings popover with three preset templates and three minute-input fields:

  • Tight — 5m / 15m / 30m
  • Default — 5m / 1h / 4h
  • Relaxed — 1h / 4h / 24h

Pick a preset, or type your own. You can configure between 1 and 5 thresholds. They're sorted ascending automatically. Save updates the right-now tiles immediately.

Date range

Four presets — 24h, 7d, 30d, 90d — plus a Custom button that opens a popover with two date pickers. The active selection is highlighted; when a custom range is picked, the button shows the actual dates.

Overview charts

  • Message volume — bar chart, inbound vs outbound counts per hour or day.
  • First response time (median) — area chart of median seconds between a guest message and the first agent reply, per hour.
  • Average response time — area chart of mean seconds across every guest→agent gap, per hour.
  • Average resolution time — line chart of mean seconds from chat open to closure, per day.

All four use a single primary colour for clarity. Hovering shows the bucket value.

Agents

One row per team member, computed for the selected window — Today, Yesterday, or a custom range of up to 7 calendar days — and optionally one team. Admins and account owners see every member; an agent without admin rights sees only their own row. The window, range and team live in the page URL, so a view can be bookmarked or shared.

Columns are grouped into bands. Every band can be hidden or shown column by column from Columns (the choice is remembered in the browser); bands whose data your organisation has never produced (leads, follow-ups, surveys, dispositions, workflows, voice) are not shown at all.

BandColumns
Chat availabilityWhat the agent chose with the chat Online / Offline toggle: Online hours; Breaks / Total (named breaks over the window length, with a percentage), Breaks (n) and one column per break type; Login → Logout for single-day ranges.
Call availabilityWhat the agent chose for calls in Lodgestory Voice (shown once your organisation has voice agents): Online hours; Breaks / Total, Breaks (n) and one column per break type; Unreachable time and number of drops (marked online while the softphone was unregistered); On calls and Occupancy (on calls ÷ reachable time); Login → Logout for single-day ranges.
App onlineWhen Lodgestory was open — a web tab, even in the background, or the mobile app in front (the green dot in team chat), recorded from 29 October 2026: Online hours; Sittings (separate stretches with Lodgestory open — a gap of more than 100 seconds starts a new one); Login → Logout for single-day ranges.
CallsHandled (answered, either direction); Talk time; Missed (direct) — rang the agent directly and went unanswered; Missed (dept.) — offered through a department queue and went unanswered; Declined — inbound calls the agent declined, each call once, whether or not a colleague then answered (the small figure beside it is how many of them nobody answered; those are in Missed too, so the two are never added up — voice only); Missed (after hours) — of the missed calls, direct and department together, the ones that rang the agent while the business-hours schedule was closed; already counted in the two Missed columns, so never added to them, and shown once a call has rung somebody after hours; Outbound attempts and Connected (with connect rate); Speed to answer (average ring on answered inbound calls); Holds (count and time — hold time sits inside talk time); Transfers made / received; No disposition (answered calls with no disposition logged).
ChatsResponded (distinct chats the agent replied in); Messages sent; Assigned (primary) — counted at the time the agent was first added to the chat; Resolved and Avg resolution (from chat creation to resolve, for chats this agent resolved); Open (primary) — a live count of the agent's open primary chats; Awaiting reply — a live count of primary chats whose last message is the guest's, with the oldest wait; Stage moves on chat workflows.
TicketsAssigned (by assignment time) and Resolved (credited to whoever resolved; tickets from before the timestamp upgrade credit the assignee by last update).
LeadsDials, Connects (with connect rate), Talk, Wrap, Leads worked, Won, Lost — telecalling attempts on the lead tracks (WhatsApp touches and unanswered paced dials excluded; won / lost = decided in the window).
Follow-upsDue in the window, Completed, Overdue right now, Expired.
QualityCSAT (average and response count) and NPS from completed survey responses attributed to the agent.

The three availability bands are separate on purpose: an agent can be online for chats and on a break for calls at the same time, and can have Lodgestory open while marked offline for both. Each band shows only Online at first — add Breaks, Login → Logout and the rest from Columns. Click an agent's name to see all three as timelines over the selected range (hover a stretch for the break). "Total" for the break ratio is the length of the window (elapsed so far for Today). Live snapshots — Open, Awaiting reply, Overdue — describe right now, not the window, and only consider chats active in the last 90 days.

Click any number to open the detail view: a table of the records behind that cell (calls with time, direction, number, talk and department; declined calls with how the call ended, how many times it rang the agent and how many of those they declined, the device they declined on and who answered instead; chats with the contact, phone and timestamps; messages with a preview; tickets with number, issue and priority; leads with track, outcome, talk and wrap; follow-ups with kind, status and due time; survey responses with score and sentiment; presence intervals with start, end, duration and label — from the band the number sits in). Each row links to the record in the CRM. The view shows the first 500 records with the full count, and Download CSV exports all of them.

The table itself downloads as CSV in the visible column order with a totals row. Every load is one request, cached briefly server-side, so switching between Today, Yesterday and teams is instant.

Tickets, Calls, Bots tabs

  • Tickets — created per day (bar) and average resolution time per day (line).
  • Calls — total per hour (bar, grouped by direction) and average handle time per hour (line).
  • Bots — bot containment rate per day (line). Containment = completed sessions that did not hand off to a human, divided by total completed sessions.

Each tab has its own date range picker.

Availability

The Availability tab turns each agent's availability history into a duration report over your chosen date range:

  • Three headline tiles — total time the team was available, total time unavailable, and the availability rate (available ÷ total).
  • Break breakdown — a horizontal bar chart of total time per break label (Lunch, Meeting, …), grouped by the label recorded at the time.
  • Available vs. unavailable by agent — a stacked bar per agent, sorted by unavailable time. (Admins only.)
  • Per-agent detail table — each agent's available and unavailable totals, with a chip per break and its duration. (Admins only.)

This tab covers chat availability only. For chat, call and app availability side by side per agent, use the Agents tab above, or the Agent Availability Export in Reports for a downloadable day-by-day file of up to 31 days.

Admins see the whole organisation; an agent without admin rights sees only their own numbers. Durations are computed from the gaps between availability changes, so the report is only as complete as the history — an agent who has never changed their status has nothing to show yet. Break labels come from Break Types, and agents set their status from the Home / Unified Inbox dropdown.

Dashboards

The Dashboards tab holds your own boards: pages of widgets built from saved custom queries, with a filter bar on top. Each dashboard is a shareable link — the filter values you apply are part of the address, so a colleague opening it sees the same view.

  • Add widget pins a saved query. Widgets land in the first free space; drag one by its header to move it, pull an edge to resize it. Widgets stay exactly where you put them — nothing shuffles after a reload. Tidy up closes vertical gaps once, when you want it.
  • Filters sit under the title: a date range with presets (Today, Last 7 days, This month, …) or a calendar range, dropdowns, free text, numbers, yes/no. A filter feeds every widget whose query declares a variable with the same key; open a widget's menu → Connect to filters to point it at a different variable or disconnect it. Each filter's menu lists the widgets it feeds. Change values freely, then click Apply — nothing re-runs while you type.
  • Refresh re-runs every widget against live data. Between refreshes the board updates itself every minute from the cache (each query decides how long its results stay fresh), and every widget shows when its numbers were computed and whether they came from the cache.
  • A widget's menu also offers Download CSV — the full result with the applied filters — and Edit query.
  • Members can open dashboards, apply filters, refresh and download; adding widgets, moving them and editing filters is for Admins and Account Owners. One dashboard can be marked Default.
Dashboard with a Dates filter set to Last 30 days, a New chats KPI tile and line, bar and pie chart widgets

Custom queries

The Custom queries tab lists every query for your organisation plus library templates published by Lodgestory, with its chart type, Active/Draft status, how many variables it takes, and whether it is published to Reports.

+ New query opens the editor:

  • SQL with syntax highlighting, line numbers, bracket matching, code folding, and ctrl-space autocomplete that knows every readable field in your organisation's data.
  • Variables — write {{name}} anywhere in the SQL and the Variables panel picks it up as you type. Give each one a type and a label:
    • Date range — presets (today, yesterday, last 7 / 30 days, this or last week, month, quarter, this year) or a custom range. Connect it to a date field and {{name}} becomes the whole date condition; or use {{name.start}} and {{name.end}} yourself.
    • Dropdown and Multi-select — choices from a fixed list, or from the result of another saved query (for example "every channel name"). A dropdown connected to a field filters on that field.
    • Text, Number, Date, Date & time, Yes / No, ID.
    • Sort — the reader picks one of the columns you allow (tick them from a run's result, or type a column name), ascending or descending, and the query orders by it. While no sort is chosen the rows simply come back unordered, so the query runs before the columns are configured.
    • Mark a variable Required, or give it a Default. Wrap a clause in [[ … ]] to make it optional: it is dropped when the variable inside is empty, so one query serves "all channels" and "just WhatsApp".
    • Names are letters, digits and underscores (up to 40, not starting with a digit). A handful of names that clash with built-in object properties — constructor, toString, valueOf, hasOwnProperty and the like — are reserved; the editor says so and asks for another name.
  • A visualisation picker — KPI, bar, line, pie, table or heatmap — with the fields to plot, a series field for one line per value, a number format (plain, percent, currency, duration) and a unit.
  • Active (Draft queries only run inside the editor) and Available in Reports & API (publishes the query to the Reports page, the partner API and MCP), plus how long results stay cached.
  • Run executes the SQL exactly as it is in the editor — saved or not — with the variable values you enter in the run bar, and renders the result in the chosen visualisation.
  • Download CSV streams the full result (up to 100,000 rows) with the current variable values; Send to Reports queues the same export on the Reports page.

Tenant isolation is automatic — your queries only ever see your organisation's data, whether or not the SQL filters on it.

Custom query editor run bar with a Last 30 days date-range variable, a Channel dropdown, Download CSV, Send to Reports and Run, above a bar chart of chats per channel

Ask Kaylee — generate queries from plain English

Click the Ask Kaylee button on the editor. A side panel opens with a chat input. Describe the metric:

"Top 10 contacts by inbound message volume in the last 7 days"
"Median first response time per hour, last 24 hours"
"Tickets opened vs resolved by priority over the last 30 days"
"Bot containment rate per day for the last 2 weeks"
"Average call handle time per hour, inbound only"

Kaylee answers with the SQL she ran, the rows it returned and the "so what". Ask for something you can keep — "with a date-range filter", "something I can pin to a dashboard", "make this a report" — and she writes it as a template with {{variables}} (a date range, a channel dropdown, a sort), runs it with sensible defaults and tells you which window she used. Insert into editor drops the SQL and its variables into the editor, ready to name, activate and save; your description and chart type stay as they are.

The conversation is multi-turn, so you can refine without retyping:

"Now restrict to WhatsApp only" — adds the channel filter.
"Group by hour of day instead" — switches the bucketing and the chart type.
"Exclude archived chats" — adds the soft-delete filter.
"Only open chats" / "exclude closed chats" — the assistant knows the resolved-&-closed flag and adds the resolvedAt IS NULL filter; ask for "resolved chats" or "chats closed by agent" to go the other way.

The assistant has been instructed to:

  • Generate read-only SQL only — no writes, no schema changes.
  • Always scope queries to your organisation.
  • Refuse out-of-scope requests, attempts to read tables outside the analytics allowlist, and prompt-injection attempts.
  • Surface caveats in Warnings when a query has an obvious limitation (for instance, agent display names are resolved by Lodgestory after the query runs, not by the SQL itself).

If a generated query has a lint warning, the panel surfaces it inline so you can fix or accept before inserting. Generated queries land in Draft state — review them and toggle Active before running.

Ask Kaylee panel opened from the query editor, with the intro, Try asking suggestions and a typed question in the composer

Roles and permissions

ActionAccount OwnerAdminUser
View Analytics✓✓✓
See colleagues' stats in the agent leaderboard✓✓✓
Configure waiting-chat SLAs✓✓—
Create / edit / activate custom queries✓✓—
Use Ask Kaylee to generate SQL✓✓—
Publish a query to Reports & API✓✓—
Run an active custom query✓✓✓
Download results as CSV✓✓✓
Open dashboards, apply filters, refresh✓✓✓
Create dashboards, add / move widgets, edit filters✓✓—
Delete a custom query✓✓—

Every team member sees every other member's numbers in the agent leaderboard. Custom-query authoring is admin-only by default; if you want a user-facing builder for non-admins, request it.

Cross-module workflows

"Are we keeping up right now?" daily check

Team lead opens Analytics. Live tiles show Unanswered: 3 and Oldest waiting: 12m. They sort the agent leaderboard by FRT to confirm coverage looks right, then move on with their day. Total time: 30 seconds.

Modules involved: Analytics → Home (to actually act on the unanswered chats).

"Why is response time creeping up?" investigation

Manager picks a 30-day range, sees FRT trending upward in the last week. Switches to 7d, sees it's spiking on weekends. Opens the agent leaderboard for last weekend, identifies whose numbers slipped. Checks Team Members for their schedule.

Modules involved: Analytics → Team Members → optionally Reports for deeper export.

"Custom KPI for our hospitality model"

Operations team needs to track "chats per property" — a custom field on contacts. They write a SQL query that joins conversations to contacts, groups by the property field, and renders as a bar chart. Save → Activate → Run. Pin the URL. Check weekly.

Modules involved: Analytics (custom queries) → Contacts (where custom fields are defined).

"I don't know SQL — let the AI write it"

Marketing manager wants a "messages per UTM source per day" widget. They open Custom queries → New → click ✨ Ask AI → type "messages per day grouped by the utm_source custom field on the contact". The assistant returns a query joining conversations to contacts, extracting customFields->>'utm_source', with a bar visualisation pre-selected and a name like "Daily messages per UTM source". They click Insert into editor, toggle Active, hit Run. If the chart looks right they're done; if they want a refinement ("only the last 30 days, only inbound"), they re-open the panel and add a follow-up turn — the assistant edits the existing query rather than starting fresh.

Modules involved: Analytics (custom queries + Ask AI) → Contacts.

"SLAs are breaking on weekends"

Manager opens SLA settings, switches from Default (5m / 1h / 4h) to a Tight preset to see the breakdown more granularly. The waiting tiles re-bucket; they screenshot. Then they switch back to Default for the next staffer who picks up the dashboard.

Modules involved: Analytics (live tiles + SLA configuration).

Limits a user will run into

LimitValue
Right-now tile refresh30 seconds
Waiting SLA thresholds1–5 entries, in minutes
Date range4 presets + custom
Agent leaderboard sizeEvery active agent in the window (no top-N cap)
Custom query — execution time30 seconds per run
Custom query — result size10,000 rows on screen; a CSV download streams up to 100,000
Custom query — variables32 per query; a dropdown lists up to 500 choices
Custom query — readable dataYour organisation's analytics data only. Anything else returns a permission error.
Dashboard10 widgets and 8 filters per dashboard
Ask Kaylee — turns per session30 (chat history is held in your browser; closing the editor clears it)
Ask Kaylee — message length8,000 characters
CSV exportThe full result with the current variable values, up to 100,000 rows

Errors & FAQ

You seeLikely reasonWhat to do
Failed to loadNetwork or sessionReload; sign in again if the session is stale
Query is not active. Activate it before running.Custom query saved as DraftToggle the Active checkbox and save
SQL lint failed: Query must reference $1 …Custom query missing the tenant filter parameterAdd WHERE "organisationId" = $1 (or include $1 in another join condition)
SQL lint failed: forbidden keywordsThe query contains INSERT/UPDATE/DELETE/DDLRead-only SELECT only
Unknown table — likely off the analytics allowlist or a typoQuery references a table outside the readable allowlistRestrict the query to allowlisted tables; ask the AI to rewrite if you're unsure
Unknown column / Unknown function or castTypo in a column name or functionRe-check the column names; the editor's autocomplete (Ctrl-Space) lists every readable column
Invalid value for type (e.g. malformed UUID)A parameter value didn't match the expected typeCheck the query parameters — UUIDs need ::uuid casts
Query exceeded the 30s time limitThe query ran longer than 30 secondsAdd filters, a date-range variable or aggregations to bring it under the cap
AI generation failed upstream / AI response was emptyThe AI service was slow or returned an unexpected shapeTry rephrasing the prompt or simplifying the request, then send again
Request timed out (Ask AI)The whole chat round-trip took longer than the panel allowsRefresh, simplify the prompt, or break the request into smaller turns

Frequently asked

How real-time are the right-now tiles?
They refresh every 30 seconds. The page header shows the last update time so you can tell at a glance.

Can I get a custom date range?
Yes — click Custom in the date range picker. Two date inputs let you pick any window.

Can my organisation have its own SLAs?
Yes — the gear icon next to the Right Now header opens the SLA settings. Pick a preset or type your own thresholds in minutes. The tiles re-bucket immediately.

Why don't I see my colleague's calls under their agent profile?
You should — the leaderboard counts both messages and calls. If a number looks zero, the agent didn't have activity in the chosen date window. Try widening the range.

Why is there no live ticket count tile?
The Right Now panel focuses on chat-level operations. For ticket volume use the Tickets tab; the open ticket count is on the roadmap.

Can I share a custom query with another organisation?
Not directly. Library templates published by Lodgestory are visible to every organisation. If you want a custom query promoted into the library, ask support.

Can I export results from a custom query?
Yes — every custom-query result preview and the agent leaderboard has a CSV download button. Output is UTF-8 with a BOM so Excel auto-detects encoding. For very large or scheduled exports, Reports is the dedicated tool.

How does the AI know about our data?
The Ask AI assistant is briefed on the full analytics data model — every readable table, the JSON shapes of fields like the latest message blob and bot session variables, the canonical query patterns the built-in metrics use, and a list of known limitations (e.g. agent display names need to be resolved by Lodgestory after the query runs). It does not see your actual data — only the static schema and your prompt.

What if the AI generates a wrong query?
The assistant lands queries in Draft by default — you must toggle Active explicitly before running. If the syntax is broken, the editor's pre-flight check rejects it with a clear error before any data is read. If the logic is wrong, refine in the chat panel ("now group by channel", "exclude archived") or edit the SQL directly.

My custom query worked yesterday but is failing today with a column error.
Likely the underlying field structure changed. SQL queries reference fields by name; if a name was renamed elsewhere in the product, your query needs to be updated. Open the query and re-run — the error message points at the missing field.

Related modules & next steps

  • Reports — raw CSV export for anything beyond the dashboard.
  • Home (Unified Inbox) — the primary data source for chat metrics.
  • Tickets — ticket creation, resolution, and assignment that feed the Tickets tab.
  • Calls — call activity behind the Calls tab.
  • Team Members — drill-down on individual agents.
  • Bot Journeys — sessions behind the Bots tab.
  • Campaigns — broadcast-level progress (separate from this page).

Did this page help you?