> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firstpromoter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Slack app

> Ask about your affiliate program and make changes from Slack, with your own FirstPromoter permissions.

> [!NOTE]
>
> The FirstPromoter Slack app is in **beta**. Add it from **Settings › Integrations › Slack** in FirstPromoter.

The FirstPromoter Slack app brings FirstPromoter's AI assistant into your Slack workspace. Your team asks about promoters, referrals, commissions, payouts and reports right in Slack, answered from your live program data, and can make changes, each only after they approve it.

## Example prompts

* "Who are my top 10 promoters by revenue this month?"
* "Which promoters are waiting for approval?"
* "How much commission is pending right now, per campaign?"
* "How is the Spring campaign doing compared with last month?"
* "Block [alex@example.com](mailto:alex@example.com) in the Affiliate Program."

## Add it to Slack

1. In FirstPromoter, open **Settings › Integrations** and find **Slack** under **Communication**.
2. Click **Add to Slack**, pick your workspace and click **Allow**.
3. You're back in FirstPromoter with **Connected to \<your workspace>**.

You need permission to update integrations. One Slack workspace connects to one FirstPromoter account. On Enterprise Grid, the app can be installed on the whole org; an org admin then adds it to workspaces, and each workspace connects from FirstPromoter.

## Link your account

Each person links their own FirstPromoter account once. The first time you ask the app something, it sends you a private **Link my FirstPromoter account** button:

1. Click it. FirstPromoter opens (sign in if asked).
2. **Sign in with Slack** as yourself. Slack confirms you are the person the button was sent to, so a forwarded button can't link anyone else.
3. Back in Slack, your question is answered.

The app answers with your FirstPromoter permissions: it shows only what your role and campaign access let you see in FirstPromoter. Unlink yourself anytime from the app's **Home** tab.

## Ask

* **Direct message**: open **FirstPromoter** in Slack's sidebar (the agent's **Messages** tab) and ask. Suggested prompts are built from your program, such as promoters waiting for approval.
* **In a channel**: invite `@FirstPromoter` to the channel, then mention it. Answers appear in a thread under your message and are visible to everyone in the channel. Mention it again for a follow-up. It doesn't answer in channels shared with other companies (Slack Connect); to stop it answering in a channel, remove it from that channel in Slack.

While it works, the thread shows **Working…** with a **Stop** button. Send `help` for a reminder of what it can do.

> [!NOTE]
>
> The agent's Messages tab needs a paid Slack plan. On free plans, mention `@FirstPromoter` in a channel or use its Home tab. Workspace guests can't use agent apps.

## Make changes

Ask for a change ("block this promoter", "accept these applications", "update the campaign's reward") and the app shows an approval card first: exactly what will change, by name. It runs only when you click the button, as you, and appears in your Activity Log like a change made in the dashboard.

* Only the person who asked can approve or cancel the card. In a channel, the card is visible only to you.
* If nobody answers within 5 minutes, or you press Stop, nothing changes.
* Payouts are never sent from Slack.

## Manage

In FirstPromoter, **Settings › Integrations › Slack › Manage** shows:

* **Workspace**: what's connected, by whom and when.
* **Affiliates**: whether affiliates in the workspace may ask about their own account (off by default).
* **Linked members**: who has linked which Slack user, with **Unlink** (for example when someone leaves). Affiliates are marked as such.

## Affiliates

Turn on **Affiliates** in **Manage** to let affiliates who are members of your Slack workspace ask about their own account. When they first message FirstPromoter, they click **I’m an affiliate**, sign in to your affiliate portal and confirm with Slack. Then they can ask, in a direct message, about their referrals, commissions, payouts, links and promo codes.

* They see only their own data, exactly as in your affiliate portal: columns you hide and details you mask stay hidden.
* FirstPromoter can't change anything for them, and doesn't answer them in channels.
* Their questions count toward your AI assistant's usage.
* Slack doesn't let workspace guests use agent apps, and FirstPromoter doesn't answer in channels shared with other companies, so affiliates must be full members of your workspace.

## Notifications

FirstPromoter can post program events to a channel, like a [webhook](https://docs.firstpromoter.com/webhooks-v2/overview.md): new promoters, referrals, commissions, payouts and the rest of the webhook events. They live in **Settings › Email & Notifications**, in the **Slack** panel. Click **New notification**:

**1. What to send**

Pick the events and, optionally, the campaigns (all by default).

**2. Channel**

Pick the channel. Every public channel is listed; a private channel shows up once you invite `@FirstPromoter` to it (then click **Refresh channels**).

**3. Review**

Check the details and click **Create notification**. FirstPromoter posts a short message in the channel right away, so you can see it arrives.

* Each message says what happened, to which promoter, for how much, what changed and who did it, and links to the promoter in FirstPromoter.
* If the channel is archived or deleted, or the app is removed from a private channel, the notification stops and the **Slack** panel says why. Fix it, then turn it back on.

**Disconnect** stops it at once and deletes the workspace's connection, links, notifications and its Slack conversations. The app then can't do anything in Slack; to remove it from the workspace's app list too, a Slack admin removes **FirstPromoter** under **Apps** in Slack. Removing the app in Slack first disconnects it the same way.

## AI and your data

* Answers are generated with Anthropic's Claude, from your live FirstPromoter data. Answers can be inaccurate: check important figures in FirstPromoter.
* Your questions and our answers are kept as assistant conversations, like in-app assistant chats, and are deleted when the workspace disconnects. Slack and FirstPromoter data are never used to train AI models.
* The app reads only messages sent to it: direct messages and messages that mention it.
* It uses the company's AI assistant setting and monthly quota, the same as the in-app assistant.

## Troubleshooting

| You see | What to do |
| - | - |
| "This link has expired" | Ask `@FirstPromoter` again for a new Link button (they last 15 minutes). |
| "This link isn't yours" | Each person uses their own button: ask the app yourself. |
| "This link is for another FirstPromoter account" | Switch to the company the workspace is connected to, then open the link again. |
| "The AI assistant is not available for your account" | Your role can't use the AI assistant, or it's turned off for the company. |
| No answer in a channel | Invite `@FirstPromoter` to the channel and mention it (it hears only mentions in channels). It doesn't answer in channels shared with other companies. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.