Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.sourcemedium.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

The AI Analyst lets approved Slack users ask questions about your e-commerce data in plain English. It understands your question, finds the right data, writes SQL, and returns results with summaries, tables, files, and visualizations when useful.

How It Works

When you ask a question, the AI Analyst:
  1. Classifies your question — Determines whether you need data analysis, a definition, or a diagnostic check
  2. Identifies relevant tables — Finds the right data sources for your question
  3. Generates SQL — Writes a query against your BigQuery warehouse
  4. Executes and responds — Runs the query and returns a summary, table, CSV, and chart when appropriate
The AI Analyst queries your actual data in BigQuery. Results reflect your real business metrics, not sample data.

What You Can Ask

The AI Analyst handles several types of questions:

Data Questions

Questions that require querying your warehouse and interpreting the result:
  • “What was our revenue last week?”
  • “Show me top 10 products by units sold this month”
  • “How many new customers did we acquire in January?”
  • “What’s our average order value by channel?”

Raw Data Pulls

Requests where you want rows or specific fields, not interpretation:
  • “Pull order ID, order date, UTM source, UTM medium, and revenue for last week”
  • “Give me customer email, first order date, and lifetime revenue for customers acquired in March”
  • “Export line items for SKU ABC-123 from the past 30 days”
Raw data pulls skip Deep Analysis, avoid charts by default, and attach the returned data as a CSV.

Definitions, Schema & Diagnostics

Questions about metrics, tables, data structure, and how SourceMedium works:
  • “What is LTV?”
  • “How is conversion rate calculated?”
  • “Which table has order data?”
  • “What columns are in the customers table?”
  • “How does attribution work in SourceMedium?”
  • “How is my data health?” — Check table freshness and availability
  • “How is my attribution health?” — Check UTM tracking coverage
Definition and schema questions draw from SourceMedium documentation and metadata. Data Health and Attribution Health run live diagnostics.

Data Health

Understand whether your data is fresh and ready for analysis.

Attribution Health

Diagnose tracking gaps and improve attribution coverage.

Analytical Domains

The AI Analyst can query data across these domains:
DomainWhat You Can Analyze
Orders & RevenueRevenue, AOV, order counts, discounts, shipping
CustomersNew vs. repeat, cohort analysis, customer-level metrics
MarketingAd spend, ROAS, CPO, channel performance
Email & SMSCampaign performance, engagement metrics
Web AnalyticsFunnel events, page views, conversion paths
Cohort LTVLifetime value by acquisition cohort
AttributionMulti-touch attribution, channel contribution

Analysis Workflows

The AI Analyst uses different workflows depending on your question type:
Question TypeWorkflow
Specific metricsStandard Analysis
Raw rows or fieldsStandard Analysis as a data pull
Open-ended/strategicDeep Analysis
Definitions & schemaKnowledge Retrieval
Summaries and recommendationsSame-thread follow-up using prior analysis context

Learn about Workflows

Understand how different question types are routed and processed.
Follow-ups work within the same Slack thread. The AI carries context in that thread, not across different threads. Start a new thread to reset context.

Deep Analysis

For complex, open-ended questions — like “How can we improve our marketing performance?” or “What trends should we be aware of?” — the AI Analyst automatically engages Deep Analysis. In this mode, the AI breaks your question into multiple analytical perspectives, runs parallel Standard Analyses, and synthesizes the findings into a comprehensive answer.

Deep Analysis Details

Learn how Deep Analysis works, when it activates, and how to get the best results.

Thread continuity and follow-ups

Learn what carries forward in the same thread and how to reset context cleanly.

Feedback

Every response includes a feedback button. Use it to:
  • Rate whether the answer was helpful
  • Report issues or inaccuracies
  • Suggest improvements
Your feedback directly improves the AI Analyst. We review feedback regularly to refine prompts, fix edge cases, and prioritize enhancements.

Getting Started

1

Install the app

Visit https://uni.sourcemedium.com/slack/install and click “Add to Slack” to install the AI Analyst in your workspace. See Setup & Installation for details.
2

Invite to a channel

Add the bot to a channel where you want to ask questions, or send it a direct message.
3

Ask a question

Type your question in natural language. Be specific about time ranges and metrics when possible.
4

Review results

The AI Analyst returns a response with data, files, a chart if applicable, and the SQL query used.

What It Can’t Do

The AI Analyst is designed for analytics questions against your SourceMedium data. It cannot:
  • Access systems outside your BigQuery warehouse
  • Modify data or run write operations
  • Answer questions unrelated to your e-commerce analytics
  • Guarantee real-time data (see Data Health for freshness)
  • Access custom tables or customized logic built on top of SourceMedium data

Data Access & Security

Data Access Scope

Currently, the AI Analyst has access only to SourceMedium out-of-the-box transformed tables. If you have built custom tables or added customized logic on top of our data within your BigQuery instance, the agent will not have visibility into those for now.
Support for custom tables and user-defined schemas is planned for a future update.

Access Control

The AI Analyst uses a single shared Slack app with tenant-level isolation. Access is checked at install time and again when a user asks a question:
  • Domain and email gating: Users must match your tenant’s configured allowed email domain or exact allowed email.
  • Tenant isolation: Each request is routed to the matching tenant’s BigQuery project and allowed tables.
  • Multi-Store Organizations: If your tenant includes multiple stores, analysis is scoped by thread after store confirmation. Start a new thread to switch stores.
Customer-managed permissions for specific users, stores, tables, or analytical domains are not yet available.

Next Steps

Example Questions

See examples of questions across different domains.

Understanding Results

Learn how to read responses, charts, and SQL output.

Building Trust

How to validate results and establish a reliable workflow.

The AI Analyst queries the same data that powers your SourceMedium dashboards. These resources help you understand the underlying data:

Metrics Reference

Definitions for all SourceMedium metrics.

Dimensions Reference

Available dimensions for filtering and grouping.

Table Schemas

Column-level documentation for all tables.

Attribution in SourceMedium

How we attribute orders to marketing channels.

Data Transformations

How raw data becomes analytics-ready tables.