Crisp × Metabase

How to build Crisp chat dashboards in Metabase

Crisp is a live-chat and messaging platform with a shared inbox, chatbot, and the Hugo AI agent. Metabase is where you turn that activity into shared, trustworthy dashboards. This guide covers two complementary paths: a lightweight MCP + CLI route that pulls live data with the Crisp MCP server and loads a CSV into Metabase with the Metabase CLI for quick analysis, and a durable pipeline route that syncs Crisp into a database so you can build dashboards anyone can read.

Heads up: Metabase connects to databases and warehouses — it does not ship a native Crisp connector. For dashboards that need history and reliability, you'll sync Crisp into a database first (covered below).

How do you connect Crisp to Metabase?

Most teams combine both routes: use the Crisp MCP server and Metabase CLI route to pull live data and stand up a quick analysis, and the pipeline route for the dashboards people depend on.

1 · MCP + CLI route (AI-assisted)

Live data in, quick analysis out

Pair Crisp's official MCP server (to read live conversations, messages, and contacts) with the Metabase CLI, whose upload command loads a CSV into Metabase as a ready-to-query table and model.

Best for
  • Quick lookups like "what's unresolved in chat right now?"
  • Loading a Crisp CSV export into Metabase in seconds
  • Spot-checks and one-off analyses without a warehouse
Trade-offs
  • Great for exploration, not governed reporting
  • Use a read-only Crisp token so analysis can't trigger writes
  • CSV uploads are snapshots — refresh or move to the pipeline for history
2 · Pipeline route (warehouse-backed)

Durable dashboards with history

Sync Crisp into a database or warehouse with dlt or the REST API, then point Metabase at it.

Best for
  • Chat volume, response-time, and resolution dashboards
  • Trends over quarters and year-over-year comparisons
  • Joining chat data with product usage or CRM data
Trade-offs
  • No first-party managed connector — plan on API or dlt-based sync
  • You own the data model and refresh schedule
  • Capture conversation events for accurate time-in-state

What can you analyze from Crisp data in Metabase?

  • Conversation volume — opened vs. resolved by day and hour
  • Time to first response — critical for live chat
  • Missed and abandoned chats — where you're losing visitors
  • Backlog and aging — unresolved conversations and how long they wait
  • Operator performance — workload, handle time, and concurrency
  • Segments and drivers — volume by topic, page, or trigger
  • Visitors — new vs. returning

Which Crisp dashboards should you build in Metabase?

For: Support leads

Chat overview

The daily pulse of live chat.

  • Conversations opened vs. resolved per day (dual line)
  • Median time to first response (number + trend)
  • Open conversations by state (bar)
  • Volume by hour of day (bar)
For: Support ops

Response time

Chat is fast — are you keeping up?

  • First response time p50/p90 by week (line)
  • Aging unresolved conversations by hours-open bucket (table)
  • Missed/abandoned chats by day (line)
  • Reopened conversations by week (line)
For: Team managers

Operator performance

Balance chat workload across the team.

  • Resolved conversations by operator (bar)
  • Open assigned conversations by operator (table)
  • Median handle time by operator (bar)
  • Concurrent chats by operator (table)
For: CX leadership

Segments & drivers

Understand what's driving chats.

  • Volume by conversation segment/topic (bar)
  • Volume by page or trigger (bar)
  • New vs. returning visitors (bar)
  • CSAT by week (line, if ratings exist)

How do you use the Crisp MCP server with the Metabase CLI?

Pair the Crisp MCP server with the Metabase CLI for fast, hands-on analysis. Crisp runs an official MCP server (beta) that reads live conversations, messages, and contacts; the Metabase CLI's upload command loads a CSV into Metabase and creates a ready-to-query table and model. For analysis, use a read-only Crisp token.

Example workflow

  • Ask the Crisp MCP which conversations are unresolved, or which have been waiting more than 10 minutes for a reply.
  • Export the conversations, messages, and operators you want to keep as CSVs.
  • Run mb upload csv to load them into Metabase as tables and models, then build questions and dashboards on top.

Be honest about the limits

  • The Crisp MCP is great for live lookups — not for scheduled or audited reporting.
  • A CSV upload is a point-in-time snapshot; trend and time-in-state analysis still needs a warehouse sync, or refresh with mb upload replace.
  • Crisp's MCP server exposes a subset of the REST API; use a read-only token so analysis can't trigger writes.
  • mb upload csv needs an uploads database configured under Admin → Settings → Uploads.

How do you set up the Crisp MCP server and the Metabase CLI?

Crisp MCPofficial

Endpoint
https://api.crisp.chat/mcp/
Transport
Remote (Streamable HTTP)
Auth
Authorization: Bearer <CRISP_MCP_SERVER_TOKEN>
Scope
A subset of the Crisp REST API resources.

Metabase CLIofficial

Install
npm install -g @metabase/cli
Auth
mb auth login (browser OAuth on v62+, or an API key)
Load data
mb upload csv --file data.csv
Requires
An uploads database (Admin → Settings → Uploads)
Cursor~/.cursor/mcp.json or .cursor/mcp.json
{
  "mcpServers": {
    "crisp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://api.crisp.chat/mcp/",
        "--header",
        "Authorization:Bearer ${CRISP_MCP_SERVER_TOKEN}"
      ],
      "env": { "CRISP_MCP_SERVER_TOKEN": "<your-crisp-mcp-server-token>" }
    }
  }
}

Generate CRISP_MCP_SERVER_TOKEN in the Crisp Dashboard under Settings → Workspace Settings → Advanced configuration → MCP Server Token. It's tied to your REST API token and shown only once. If your AI tool can't send an Authorization header, append a URL-encoded?token=<CRISP_MCP_SERVER_TOKEN> query parameter instead — the header is preferred.

TerminalLoad a Crisp CSV with the Metabase CLI
# Install the Metabase CLI
npm install -g @metabase/cli

# Log in (opens your browser; requires Metabase v62+)
mb auth login --url https://your-metabase.example.com

# Load a Crisp CSV export — creates a table AND a model
mb upload csv --file crisp-conversations.csv --collection root

# Refresh that same table later from a new export
mb upload replace <table-id> --file crisp-conversations.csv

The Metabase CLI stores its credentials securely after mb auth login. Use a read-only Crisp token for analysis so lookups can't trigger writes.

Verify before shipping: confirm an uploads database is enabled under Admin → Settings → Uploads (Metabase docs) and the current Crisp MCP setup in the Crisp MCP quickstart.

Can you generate a Crisp dashboard with AI?

Yes. Use the prompt below with any assistant that can run the Crisp MCP server and the Metabase CLI. It works end to end: if Crisp tables already exist in Metabase it analyzes those; otherwise it pulls the data over the Crisp MCP, loads it with mb upload csv, then builds the dashboard — using medians for response times and skipping cards it has no data for.

Prompt for creating a Crisp Chat Overview dashboard
Create a polished Metabase dashboard for Crisp live-chat support analytics.
Work end to end: get the data into Metabase if it isn't there yet, then build.

Goal: Help support leaders understand chat volume, responsiveness, resolution, and
contact drivers from Crisp data.

Step 1 — Find or load the data:
- First, check what already exists in Metabase (search for Crisp tables and
  models). If durable Crisp data is already present — synced from a warehouse or
  uploaded earlier — use it and skip to Step 2.
- If nothing is there, pull it with the Crisp MCP server using a read-only token:
  conversations, messages, people (contacts), and operators. Write each result to
  a CSV, then load it with the Metabase CLI — run "mb upload csv --file
  <export>.csv" so each upload creates a table and a ready-to-query model. Use
  "mb upload replace <table-id> --file <export>.csv" to refresh an existing table
  instead of creating duplicates.

Step 2 — Inspect before querying:
Do not assume exact table names. Map the available raw tables into these
analytical concepts where possible: Conversations, Messages, People (contacts),
Operators (agents), Segments, and Sessions. Inspect the actual tables and column
names first.

Important:
- Build on whatever data is present; don't claim Metabase connects natively to
  Crisp — it reads a database or CLI-uploaded tables.
- Use medians (p50) and p90 for response times, never averages.
- Define "first response" as the first outbound operator message, excluding
  automated/bot messages and internal notes.
- Chat is concurrent and fast — measure response in minutes, and consider missed
  chats explicitly.
- If conversation state history is missing, do not calculate time-in-state. Use a
  caveat instead.
- Only build a card if its underlying column/metric exists in the data.
- A single CSV is a point-in-time snapshot: trends and time-in-state need history,
  so build trend cards only if a warehouse sync or multiple uploads provide it.

Dashboard title: Crisp Chat Overview

Sections:
1. Executive summary (KPI cards): Conversations opened last 7 days; Resolved last
   7 days; Open backlog; Median time to first response; Volume by hour.
2. Volume & backlog: Opened vs resolved by day; Open by state; Aging unresolved;
   Volume by hour.
3. Response time: First response p50/p90 by week; Missed chats by day; Reopened by
   week (only if history exists).
4. Operator performance: Resolved by operator; Open assigned by operator; Median
   handle time by operator; Concurrent chats.
5. Segments & drivers: Volume by segment; Volume by page/trigger; New vs returning
   visitors; CSAT by week (only if ratings exist).

Filters: Operator, Segment, State, Date range.

Reuse the models Metabase auto-created from uploaded CSVs, or (for a warehouse)
create reusable models: modeled_crisp_conversations, modeled_crisp_messages,
modeled_crisp_people, and modeled_crisp_operators.

Output: Build the dashboard if you have permission; otherwise provide the exact
questions, SQL, model definitions, and layout. Include caveats for any metric
that cannot be calculated from the available data. Keep it practical, dense,
and executive-readable. Avoid vanity metrics.

How do you build the Crisp → Metabase pipeline?

Every pipeline is the same four stages: extract from Crisp's API, load into a database, model the raw tables into clean ones, and visualize in Metabase. You can assemble this with a managed connector or a free script you host yourself.

No paid tool required. A fully free stack: a small dlt or hand-written script (extract) → a free Postgres database like Neon or Supabase (load) → a scheduler such as GitHub Actions cron (host) → Metabase (visualize). For hosting and scheduling details, see our data pipeline guide.

Connector options

  • dlt (free, code) — write a Python pipeline against the Crisp REST API; the most reliable route since there's no first-party managed connector.
  • Crisp REST API (free, raw) — the source of truth; paginate conversations and messages and upsert on a schedule.
  • Webhooks (free) — subscribe to Crisp's real-time events to keep your warehouse fresh.

Notes

  • Land raw tables first, then build clean models on top.
  • Crisp timestamps are epoch milliseconds — convert with to_timestamp(ms / 1000) in your model layer.
  • Sync messages so you can compute response time, not just conversation counts.

How should you model Crisp data in Metabase?

Core tables

TableGrainKey columns
conversationsone row per conversationsession_id, state (pending/unresolved/resolved), assigned_operator_id, created_at, updated_at
messagesone row per messageconversation_id, from (operator/user), is_automated, created_at
peopleone row per contactid, email, segments
operatorsone row per agentid, name

Modeling advice

  • Convert epoch-millisecond timestamps once in a model so dates and durations are right.
  • Define first response from the first non-automated operator message.
  • Normalize state (pending/unresolved/resolved) so charts stay stable.
  • Treat segments as a bridge so a conversation can carry many topics.
  • Define "resolved" once and reuse it everywhere.

Which Crisp metrics should you track in Metabase?

MetricDefinitionNotes
Time to first responseOpened → first operator message.Measure in minutes; chat expectations are tight.
Conversation volumeOpened vs. resolved in a period.Segment by hour to staff for peaks.
Missed chatsConversations with no operator reply.A direct signal of lost opportunities.
BacklogUnresolved conversations right now.Pair with aging in hours, not days.
Operator concurrencySimultaneous chats per operator.Capacity signal unique to live chat.
CSATPositive ratings ÷ rated conversations.Only if you collect ratings.

What SQL powers Crisp dashboards in Metabase?

These assume the modeled tables above (PostgreSQL dialect, epoch-millisecond timestamps). Adjust identifiers to match your warehouse.

Conversations opened vs. resolved per dayPostgreSQL

The basic volume trend over the last 30 days.

SELECT
  date_trunc('day', to_timestamp(c.created_at / 1000)) AS day,
  COUNT(*)                                              AS opened,
  COUNT(*) FILTER (WHERE c.state = 'resolved')          AS resolved
FROM conversations c
WHERE to_timestamp(c.created_at / 1000) >= CURRENT_DATE - INTERVAL '30 days'
GROUP BY 1
ORDER BY 1;
Time to first response by weekPostgreSQL

Median from the first non-automated operator message per conversation.

WITH first_outbound AS (
  SELECT
    m.conversation_id,
    MIN(m.created_at) AS first_reply_at
  FROM messages m
  WHERE m.from = 'operator'
    AND m.is_automated = false
  GROUP BY m.conversation_id
)
SELECT
  date_trunc('week', to_timestamp(c.created_at / 1000)) AS week,
  percentile_cont(0.5) WITHIN GROUP (
    ORDER BY (f.first_reply_at - c.created_at) / 60000.0
  ) AS median_first_reply_min
FROM conversations c
JOIN first_outbound f ON f.conversation_id = c.session_id
GROUP BY 1
ORDER BY 1;
Open backlog by statePostgreSQL

Unresolved conversations by state right now.

SELECT
  c.state,
  COUNT(*)           AS conversations
FROM conversations c
WHERE c.state <> 'resolved'
GROUP BY c.state
ORDER BY conversations DESC;
Volume by hour of dayPostgreSQL

When chats arrive, so you can staff for peaks.

SELECT
  EXTRACT(HOUR FROM to_timestamp(c.created_at / 1000)) AS hour_of_day,
  COUNT(*)                                              AS conversations
FROM conversations c
WHERE to_timestamp(c.created_at / 1000) >= CURRENT_DATE - INTERVAL '30 days'
GROUP BY 1
ORDER BY 1;

What are common mistakes when analyzing Crisp in Metabase?

Treating a live MCP lookup or a one-off CSV as governed reporting.→ Use the Crisp MCP and CSV uploads for triage and exploration; build warehouse-backed dashboards for anything people depend on.
Leaving timestamps as raw epoch milliseconds.→ Convert with to_timestamp(ms / 1000) in a model layer.
Counting bot or trigger messages as first response.→ Exclude automated messages; first response is the first human operator reply.
Measuring chat response in hours.→ Live chat expectations are minutes — bucket accordingly.
Ignoring missed chats.→ Track conversations that never got an operator reply; they're lost opportunities.

Related analytics

Related integrations

FAQ

Does Metabase connect natively to Crisp?
No. Metabase reads SQL databases and warehouses. Sync Crisp into a database first (dlt or the REST API), then connect Metabase to that database.
Does Crisp have an MCP server?
Yes. Crisp runs an official MCP server (beta) at https://api.crisp.chat/mcp/ over Streamable HTTP, authenticated with Authorization: Bearer (or a URL-encoded ?token= parameter). It uses the same token as the Crisp REST API, so the same scopes apply, and exposes a subset of REST API resources.
How do I quickly analyze Crisp data without a warehouse?
Pull the conversations, messages, and contacts you need with the Crisp MCP server (use a read-only token), export them to CSV, and run `mb upload csv --file data.csv` with the Metabase CLI. It creates a table and a model you can build questions on right away. You'll need an uploads database enabled under Admin → Settings → Uploads. Refresh later with `mb upload replace`, or move to the pipeline route when you need history.
How do I handle Crisp's timestamps?
Crisp timestamps are epoch milliseconds. Convert them once in a model layer with to_timestamp(ms / 1000) so dates, durations, and response times are correct everywhere.