How to build Insightly sales dashboards in Metabase
Insightly is where your leads, opportunities, and pipelines live. Metabase is where you turn that activity into shared, trustworthy sales dashboards. This guide covers two complementary paths: a lightweight MCP + CLI route that pulls live data with the Insightly MCP server and loads a CSV into Metabase with the Metabase CLI for quick analysis, and a durable pipeline route that syncs Insightly into a database so you can build pipeline, win-rate, and conversion dashboards anyone can read.
How do you connect Insightly to Metabase?
Most teams combine both routes: use the Insightly MCP server and Metabase CLI route to pull live data and stand up a quick analysis, and the pipeline route for the sales dashboards the team depends on.
Live data in, quick analysis out
Pair the Insightly MCP server (managed via Pipedream, to read live opportunities, pipelines, and activities) with the Metabase CLI, whose upload command loads a CSV into Metabase as a ready-to-query table and model.
- Ad-hoc questions like "which opportunities are stuck in one stage?"
- Loading an Insightly CSV export into Metabase in seconds
- Spot-checks and one-off analyses without a warehouse
- Great for exploration, not governed reporting
- Scope the Pipedream connection tightly so analysis can't trigger writes
- CSV uploads are snapshots — refresh or move to the pipeline for history
Durable dashboards with history
Sync Insightly into a database or warehouse with the Insightly API, dlt, or a managed connector, then point Metabase at it.
- Pipeline, win-rate, and conversion dashboards the whole team relies on
- Sales cycle and stage-conversion trends over quarters
- Joining CRM data with project delivery, billing, or support data
- Requires a destination database and a sync to maintain
- You own the won/lost and stage definitions and the refresh schedule
- Capture stage changes if you want accurate velocity metrics
What can you analyze from Insightly data in Metabase?
- Pipeline — open opportunity value by stage and owner, plus weighted forecast
- Win rate — WON vs. decided opportunities, by pipeline and source
- Sales cycle length — created to won, with median and p90
- Stage conversion — where opportunities advance and where they stall
- Deal size — average and median BID_AMOUNT, plus mix by pipeline
- Activity — tasks and events by owner and organisation
Which Insightly dashboards should you build in Metabase?
Pipeline
The open book of business, right now.
- Open opportunities by pipeline stage (funnel)
- Pipeline value by owner (bar)
- Weighted forecast vs. target (number)
- Opportunities past their close date (table)
Conversion
Where opportunities advance and where they stall.
- Stage-to-stage conversion by pipeline (funnel)
- Win rate by pipeline and lead source (bar)
- Created vs. won by month (dual line)
- Abandoned vs. lost breakdown (bar)
Velocity
How fast opportunities close.
- Median sales cycle length (number + trend)
- Time-in-stage by stage (bar)
- Deal velocity: value / cycle time (number)
- Aging of open opportunities (table)
Activity
Effort and follow-through across the team.
- Tasks and events logged by owner (bar)
- Activities per open opportunity (number)
- Overdue tasks by owner (table)
- Lead-to-opportunity conversion (number)
How do you use the Insightly MCP server with the Metabase CLI?
Pair the Insightly MCP server with the Metabase CLI for fast, hands-on analysis. The Insightly MCP (managed via Pipedream) looks up current opportunities, pipelines, and activities; the Metabase CLI's upload command loads a CSV into Metabase and creates a ready-to-query table and model.
Example workflow
- Ask the Insightly MCP which opportunities are stuck in a stage or missing a next task.
- Export the opportunities or activities you want to keep as a CSV.
- Run
mb upload csvto load it into Metabase as a table and model, then build questions and dashboards on top.
Be honest about the limits
- The Insightly MCP is great for live lookups — not for scheduled or audited pipeline reporting.
- A CSV upload is a point-in-time snapshot; refresh it with
mb upload replaceor move to the pipeline for real history — sales cycle and stage conversion still need synced stage history in a database. - The managed connector acts with the permissions of the connected Insightly account; scope it tightly.
mb upload csvneeds an uploads database configured under Admin → Settings → Uploads.
How do you set up the Insightly MCP server and the Metabase CLI?
Insightly MCPmanaged
- Provider
- Pipedream (managed connector)
- Endpoint
https://mcp.pipedream.net/v2- Auth
- Connect your Insightly account in Pipedream (API key)
- Note
- No official first-party Insightly MCP server yet
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)
{
"mcpServers": {
"insightly": {
"url": "https://mcp.pipedream.net/v2"
}
}
}# 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 an Insightly CSV export — creates a table AND a model
mb upload csv --file insightly-opportunities.csv --collection root
# Refresh that same table later from a new export
mb upload replace <table-id> --file insightly-opportunities.csvInsightly doesn't publish a first-party MCP server, so the practical path is a managed connector: connect your Insightly account in Pipedream, then use its static MCP URL. Because a third party brokers access, scope the connection tightly and review what the connector can read and write. The Metabase CLI stores its credentials securely after mb auth login.
Can you generate an Insightly dashboard with AI?
Yes. Use the prompt below with any assistant that can run the Insightly MCP server and the Metabase CLI. It works end to end: if Insightly tables already exist in Metabase it analyzes those; otherwise it pulls the data over the Insightly MCP, loads it with mb upload csv, then builds the dashboard — and tells the agent to skip metrics the data can't support instead of faking them.
Create a polished Metabase dashboard for Insightly sales analytics.
Work end to end: get the data into Metabase if it isn't there yet, then build.
Goal: Help sales leaders understand pipeline, win rate, conversion, sales cycle,
and forecast from Insightly CRM data.
Step 1 — Find or load the data:
- First, check what already exists in Metabase (search for Insightly tables and
models). If durable Insightly 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 Insightly MCP server (managed via
Pipedream): opportunities, pipelines and stages, organisations, leads, and
activities. 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:
Insightly CSV exports are usually flat and pre-aggregated (one row per
opportunity, with columns like OPPORTUNITY_STATE, BID_AMOUNT, PROBABILITY,
PIPELINE_ID, and STAGE_ID). Warehouse tables are raw and relational (join
STAGE_ID to pipeline stages for readable, ordered names). Inspect the actual
tables and column names first; do not assume exact names or that stage-change
history exists.
Important:
- Build on whatever data is present; don't claim Metabase connects natively to
Insightly — it reads a database or CLI-uploaded tables.
- Insightly opportunities carry an OPPORTUNITY_STATE (OPEN / WON / LOST /
SUSPENDED/ABANDONED) — define "won" and "closed" once and reuse them.
- Join STAGE_ID to Pipeline Stages to get readable, ordered stage names, and note
that stages are pipeline-specific.
- For win rate, state the denominator explicitly (won / decided vs. won / created)
and hold the cohort fixed.
- Report sales cycle length and deal size as medians (p50) and p90, never plain
averages — both are right-skewed.
- Only build a card if its underlying column/metric exists in the data; if
stage-change history is missing, skip sales cycle length, time-in-stage, and
stage conversion and use a caveat instead.
- Convert BID_AMOUNT to a single reporting currency; caveat any mix.
- A single CSV is a point-in-time snapshot: only build trend cards if there is a
usable date column or multiple periods have been uploaded.
Dashboard title: Insightly Sales Overview
Sections:
1. Executive summary (KPI cards): Open pipeline; Weighted forecast; Win rate
(last 90 days); Median sales cycle length; Average and median deal size;
Opportunities closing this period.
2. Pipeline: Open opportunities by stage; value by owner; slipped deals.
3. Conversion: Stage-to-stage conversion; win rate by pipeline and source;
abandoned vs. lost.
4. Velocity: Median cycle length; time-in-stage; deal velocity; aging.
5. Activity: Tasks/events by owner; activities per opportunity; overdue tasks.
Filters: Pipeline, Stage, Owner, Lead source, Date range.
Reuse the models Metabase auto-created from uploaded CSVs, or (for a warehouse)
create reusable models: modeled_insightly_opportunities,
modeled_insightly_stage_history, modeled_insightly_pipelines,
modeled_insightly_organisations, and modeled_insightly_activities.
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. Reconcile totals against
Insightly's own reports. Keep it practical, dense, and executive-readable.How do you sync Insightly data into a database or warehouse?
For dashboards that need history and reliability, land Insightly data in a database first, then connect Metabase to that database.
Connector options
- Insightly API (raw) — the source of truth; pull opportunities, pipelines, pipeline stages, organisations, contacts, leads, and activities.
- dlt (code) — write a Python pipeline against the Insightly API for full control of schema and incremental loads.
- Managed ETL (Airbyte / Fivetran) — check the connector catalogs for an Insightly source; where one exists it can land the core objects on a schedule.
- Change tracking — snapshot opportunities regularly (or capture stage changes) so you don't lose transitions between syncs.
Notes
- Land raw tables first, then build clean models on top.
- Join
STAGE_IDto the pipeline stages table for readable, ordered stage names — stages are pipeline-specific. - Capture stage changes (snapshots or an event stream) for cycle length, time-in-stage, and conversion.
- Convert
BID_AMOUNTto a single reporting currency.
How should you model Insightly data in Metabase?
Core tables
| Table | Grain | Key columns |
|---|---|---|
opportunities | one row per opportunity | opportunity_id, organisation_id, opportunity_state, bid_amount, probability, pipeline_id, stage_id, date_created, actual_close_date, owner_user_id |
pipeline_stages | one row per stage | stage_id, pipeline_id, stage_name, stage_order |
organisations | one row per organisation | organisation_id, organisation_name |
leads | one row per lead | lead_id, lead_source_id, lead_status_id, date_created |
tasks / events | one row per activity | id, owner_user_id, status, due_date |
users | one row per user | user_id, first_name, last_name |
Modeling advice
- Build a
modeled_insightly_opportunitiestable with cleanopportunity_state,bid_amount(one currency),probability, andactual_close_date. - Join stages once into a
modeled_insightly_pipelineslookup with orderedstage_orderfor conversion charts. - Derive
modeled_insightly_stage_historyfrom snapshots or an event stream for time-in-stage and cycle length. - Convert BID_AMOUNT to a single reporting currency.
- Reconcile modeled pipeline and win rate against Insightly's own reports before anyone trusts the numbers.
Which Insightly metrics should you track in Metabase?
| Metric | Definition | Notes |
|---|---|---|
| Open pipeline | Sum of BID_AMOUNT for OPEN opportunities. | Segment by stage, owner, pipeline. |
| Weighted forecast | Sum of BID_AMOUNT × probability. | Read alongside unweighted pipeline. |
| Win rate | WON ÷ decided opportunities. | Fix the denominator (decided vs. created) first. |
| Sales cycle length | Created → won, in days. | Report median and p90; it's right-skewed. |
| Stage conversion | Opportunities reaching stage N+1 ÷ reaching stage N. | Needs stage-change history. |
| Average deal size | Won BID_AMOUNT ÷ won opportunities. | Report the median too; outliers distort the mean. |
What SQL powers Insightly dashboards in Metabase?
These assume the modeled tables above (PostgreSQL dialect). Adjust identifiers to match your warehouse.
WON as a share of decided opportunities over the last 12 months.
SELECT
date_trunc('month', o.actual_close_date) AS month,
COUNT(*) FILTER (WHERE o.opportunity_state = 'WON') AS won,
COUNT(*) FILTER (WHERE o.opportunity_state IN ('WON', 'LOST')) AS decided,
ROUND(
100.0 * COUNT(*) FILTER (WHERE o.opportunity_state = 'WON')
/ NULLIF(COUNT(*) FILTER (WHERE o.opportunity_state IN ('WON', 'LOST')), 0),
1
) AS win_rate_pct
FROM modeled_insightly_opportunities o
WHERE o.opportunity_state IN ('WON', 'LOST')
AND o.actual_close_date >= CURRENT_DATE - INTERVAL '12 months'
GROUP BY 1
ORDER BY 1;The current funnel — open opportunities and value by pipeline stage.
SELECT
s.pipeline_name,
s.stage_name,
s.stage_order,
COUNT(*) AS open_opps,
ROUND(SUM(o.bid_amount), 2) AS pipeline_value
FROM modeled_insightly_opportunities o
JOIN modeled_insightly_pipelines s ON s.stage_id = o.stage_id
WHERE o.opportunity_state = 'OPEN'
GROUP BY s.pipeline_name, s.stage_name, s.stage_order
ORDER BY s.pipeline_name, s.stage_order;Days from created to won; medians beat averages here.
-- Median days from created to won, by month closed
SELECT
date_trunc('month', o.actual_close_date) AS month,
percentile_cont(0.5) WITHIN GROUP (
ORDER BY EXTRACT(EPOCH FROM (o.actual_close_date - o.date_created)) / 86400.0
) AS median_cycle_days,
percentile_cont(0.9) WITHIN GROUP (
ORDER BY EXTRACT(EPOCH FROM (o.actual_close_date - o.date_created)) / 86400.0
) AS p90_cycle_days
FROM modeled_insightly_opportunities o
WHERE o.opportunity_state = 'WON'
GROUP BY 1
ORDER BY 1;