Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@
"icon": "/icons/ai.svg",
"pages": [
"docs/mixpanel-agent",
"docs/slack-bot",
"docs/agentic-automations",
"docs/root-cause-analysis",
"docs/mcp",
Expand Down
160 changes: 160 additions & 0 deletions docs/slack-bot.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
---
title: Mixpanel Agent in Slack

Check warning on line 2 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L2

Did you really mean 'Mixpanel'?
tags: [slack, slack bot, mixpanel agent, agent, ai, chatops]
---

## Overview

Mixpanel Agent in Slack brings AI-powered analysis to the place your team already collaborates. @mention the bot in any Slack channel and your whole team can ask questions, refine them together, and build on each other's findings in a single thread — without anyone leaving the conversation to go pull data.

Check warning on line 8 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L8

Did you really mean 'Mixpanel'?

It's built for shared investigations. A PM, an engineer, and a designer can all weigh in on the same thread: one asks how a launch is performing, another follows up with a question about a specific segment, a third drills into session replays for users who churned.

<Info>
Mixpanel Agent in Slack is currently available to Mixpanel Enterprise customers by request. See [Getting started](#getting-started) below.

Check warning on line 13 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L13

Did you really mean 'Mixpanel'?

Check warning on line 13 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L13

Did you really mean 'Mixpanel'?
</Info>

## What you can ask

The Slack bot queries your data through Mixpanel's [Model Context Protocol (MCP) server](/docs/mcp), so it can investigate metrics, look up numbers, or dig into user behavior from inside Slack.

Check warning on line 18 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L18

Did you really mean 'Mixpanel's'?

**Investigate a metric**
- *Why did signups drop last week?*

Check warning on line 21 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L21

Did you really mean 'signups'?
- *Walk me through the checkout funnel for mobile users in the last 30 days*

**Get a quick number**
- *How many active users did we have yesterday?*
- *What's our 7-day retention for users who completed onboarding in Q1?*

**Get up to speed**
- *Summarize the "Weekly Growth" board for me*
- *What tracking do we have on the messaging feature?*

**Investigate users**
- *This customer reported a bug — what happened in their last 3 sessions?*

Through MCP, the bot can query events, properties, reports, boards, cohorts, experiments, feature flags, and session replays in the projects you already have permission to view.

## How it works in Slack

**Mention the bot in any channel.** Once `@Mixpanel Agent` has been added to a channel, anyone in that channel can ask it a question. The bot replies in a thread, so the conversation stays organized.

<Frame>
![Asking the Mixpanel Agent a question in a Slack channel](/images/slack-bot-ask.png)

Check warning on line 42 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L42

Did you really mean 'Mixpanel'?
</Frame>

**Get real answers, grounded in your data.** Responses include the metric definition, a data table, and a link back to the live report in Mixpanel — so you can verify the numbers and dig in further.

Check warning on line 45 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L45

Did you really mean 'Mixpanel'?

<Frame>
![A Mixpanel Agent response showing metric definition, data table, and an "Open in Mixpanel" link](/images/slack-bot-answer.png)

Check warning on line 48 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L48

Did you really mean 'Mixpanel'?

Check warning on line 48 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L48

Did you really mean 'Mixpanel'?
</Frame>

**Follow up in the thread.** The Agent keeps the context of the thread, so anyone in the channel can ask follow-ups, refine the question, or drill into a specific segment without restating the setup.

<Frame>
![A teammate following up on the same thread with a related question](/images/slack-bot-followup.png)
</Frame>

**Direct message the bot.** Prefer to ask privately? Send the bot a DM and it will respond there.

**Authenticate with `/mixpanel`.** The first time you ask a question, the bot will prompt you to connect your Mixpanel account. Run the `/mixpanel` slash command in Slack to complete the one-time OAuth flow. After that, the bot queries Mixpanel using your own credentials and permissions.

Check warning on line 59 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L59

Did you really mean 'Mixpanel'?

Check warning on line 59 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L59

Did you really mean 'Mixpanel'?

## Getting started

Mixpanel Agent in Slack is available at no additional cost to Mixpanel Enterprise customers, on request. We're rolling it out account-by-account during early access.

Check warning on line 63 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L63

Did you really mean 'Mixpanel'?

Check warning on line 63 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L63

Did you really mean 'Mixpanel'?

**To enable it for your workspace:**

1. **Contact your Mixpanel account team.** Reach out to your Customer Success Manager or Account Executive and let them know you'd like to try the Slack bot.

Check warning on line 67 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L67

Did you really mean 'Mixpanel'?
2. **Your account team will share an install link.** A Slack workspace admin will need to authorize the app and the requested scopes during install.
3. **Add the bot to a channel.** Invite `@Mixpanel Agent` into any channel where you want to be able to ask questions.
4. **Authenticate.** Each user runs `/mixpanel` once in Slack to connect their own Mixpanel account.

Check warning on line 70 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L70

Did you really mean 'Mixpanel'?
5. **Ask a question.** `@Mixpanel Agent how many signups did we have this week?`

<Info>
**Adding business context improves answers.** The Agent uses your project's [Business Context](/docs/business-context) — your team's definitions, vocabulary, and how to interpret your data — to give more relevant answers. The more context you provide, the better the responses.
</Info>

## A note on shared channels

The Slack bot queries Mixpanel data using your individual permissions and posts responses publicly in the channel where it was asked. This means a response may include data that other members of the channel would not otherwise have access to in Mixpanel.

Check warning on line 79 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L79

Did you really mean 'Mixpanel'?

Check warning on line 79 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L79

Did you really mean 'Mixpanel'?

Before asking a question, consider whether the response might contain sensitive or restricted data that isn't appropriate to share with everyone in the channel. By submitting a query, you accept responsibility for any data surfaced in the bot's response.

Check warning on line 81 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L81

Did you really mean 'bot's'?

## A note on accuracy

Like all AI tools, responses generated by Mixpanel Agent in Slack may not always be accurate. Please double-check important findings.

Check warning on line 85 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L85

Did you really mean 'Mixpanel'?

## Security and data access

This section is intended for security teams reviewing Mixpanel Agent in Slack before approving installation.

Check warning on line 89 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L89

Did you really mean 'Mixpanel'?

### App distribution status

Mixpanel Agent in Slack is currently an unlisted Slack app. It is not published to the Slack App Directory. Installation is available only via a direct install link shared by your Mixpanel account team.

Check warning on line 93 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L93

Did you really mean 'Mixpanel'?

Check warning on line 93 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L93

Did you really mean 'Mixpanel'?

### Authentication

**Slack OAuth.** The bot is installed into your Slack workspace via Slack's standard OAuth 2.0 flow. A workspace admin must authorize the app and the requested scopes during installation.

**Mixpanel authentication.** Each user individually authenticates with their own Mixpanel account by running the `/mixpanel` slash command in Slack. The bot does not use a shared service account or API key — it queries Mixpanel data using the authenticated user's own credentials and permissions.

Check warning on line 99 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L99

Did you really mean 'Mixpanel'?

Check warning on line 99 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L99

Did you really mean 'Mixpanel'?

Check warning on line 99 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L99

Did you really mean 'Mixpanel'?

### How Mixpanel data is accessed

Check warning on line 101 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L101

Did you really mean 'Mixpanel'?

The bot accesses Mixpanel data entirely through the [Model Context Protocol (MCP)](/docs/mcp), using the individual user's authenticated credentials. MCP respects your existing Mixpanel organization and project-level access controls. A user can only query data they already have permission to view in Mixpanel — the bot does not elevate or bypass any access restrictions.

Check warning on line 103 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L103

Did you really mean 'Mixpanel'?

Check warning on line 103 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L103

Did you really mean 'Mixpanel'?

Check warning on line 103 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L103

Did you really mean 'Mixpanel'?

### LLM provider

The bot uses OpenAI as its LLM provider to interpret natural-language questions and generate Mixpanel queries. User questions and Mixpanel query results are sent to OpenAI for processing. Customer data is not used to train AI models — Mixpanel's contracts with third-party providers prohibit them from using your data to train or improve their models.

Check warning on line 107 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L107

Did you really mean 'Mixpanel'?

Check warning on line 107 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L107

Did you really mean 'Mixpanel'?

Check warning on line 107 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L107

Did you really mean 'Mixpanel's'?

### Slack OAuth scopes

The following bot token scopes are requested at install time. All scopes marked "Required" are necessary for core functionality. Optional scopes enable enhanced features but the bot functions without them.

| Scope | Required | What it does | Why the bot needs it |
| --- | --- | --- | --- |
| `app_mentions:read` | Yes | View messages that directly @mention the bot | Detect when a user asks the bot a question |
Comment thread
greptile-apps[bot] marked this conversation as resolved.
| `channels:history` | Yes | View messages in public channels the bot has been added to | Read conversation context in threads where it is asked questions |
| `channels:read` | Yes | View basic info about public channels | Identify which channels the bot has been added to |
| `chat:write` | Yes | Send messages as @Mixpanel Agent | Post responses to user questions |
| `commands` | Yes | Add slash commands | Powers the `/mixpanel` command used for authentication |
| `groups:history` | Yes | View messages in private channels the bot has been added to | Same as `channels:history`, for private channels |
| `im:history` | Yes | View messages in direct messages with the bot | Respond to direct messages |
| `im:read` | Yes | View basic info about direct messages with the bot | Identify DM conversations the bot is part of |
| `mpim:history` | Yes | View messages in group DMs the bot has been added to | Respond in multi-person DM threads |

Check warning on line 123 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L123

Did you really mean 'DMs'?
| `users:read` | Yes | View people in the workspace | Resolve user identities when processing requests |
| `reactions:write` | No | Add and edit emoji reactions | Acknowledge receipt of a message (e.g., adding a 👀 reaction); not required for core functionality |

### What the bot can and cannot access

**Can access:**
- Messages in channels, DMs, and group DMs where the bot has been explicitly added or mentioned

Check warning on line 130 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L130

Did you really mean 'DMs'?

Check warning on line 130 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L130

Did you really mean 'DMs'?
- Mixpanel data the authenticated user already has permission to view

Check warning on line 131 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L131

Did you really mean 'Mixpanel'?

**Cannot access:**
- Messages in channels the bot has not been added to
- Mixpanel data outside the authenticated user's organization and project permissions

Check warning on line 135 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L135

Did you really mean 'Mixpanel'?
- Any Slack content beyond the scopes listed above

### Data flow

1. A user @mentions the bot with a question in Slack.
2. The bot reads the message (via Slack OAuth scopes).
3. The question is sent to OpenAI to interpret intent and formulate a Mixpanel query.

Check warning on line 142 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L142

Did you really mean 'Mixpanel'?
4. The bot queries Mixpanel via MCP using the user's own authenticated credentials.

Check warning on line 143 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L143

Did you really mean 'Mixpanel'?
5. Results are sent back through OpenAI to generate a natural-language response.
6. The bot posts the response in the Slack thread.

## Privacy

Mixpanel Agent in Slack is covered by Mixpanel's standard privacy and data handling policies.

Check warning on line 149 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L149

Did you really mean 'Mixpanel'?

Check warning on line 149 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L149

Did you really mean 'Mixpanel's'?

- [Mixpanel Privacy Policy](https://mixpanel.com/legal/privacy-policy/)
- [Mixpanel Privacy Hub](https://mixpanel.com/legal/privacy-hub/)
- [Mixpanel Data Processing Addendum](https://mixpanel.com/legal/dpa/)
- [Mixpanel Agent Beta Service Addendum](https://mixpanel.com/legal/supplemental-terms/#mixpanel-agent-beta-service-addendum)

AI features, including Mixpanel Agent in Slack, are disabled by default for customers enrolled in EU or India Data Residency, but can be enabled by your Mixpanel admin. AI features are not available for accounts with a signed Business Associate Addendum (BAA) with Mixpanel.

Check warning on line 156 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L156

Did you really mean 'Mixpanel'?

Check warning on line 156 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L156

Did you really mean 'Mixpanel'?

Check warning on line 156 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L156

Did you really mean 'Mixpanel'?

## Support and feedback

Have feedback, hit a bug, or want to request a capability? Reach out to your Mixpanel account team or [contact Mixpanel support](https://mixpanel.com/get-support).

Check warning on line 160 in docs/slack-bot.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mixpanel-edb78807) - vale-spellcheck

docs/slack-bot.mdx#L160

Did you really mean 'Mixpanel'?
Binary file added images/slack-bot-answer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/slack-bot-ask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/slack-bot-followup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.