Slack

Learn how to set up integration with Slack to be notified every time a revenue event occurs

Slack is a workplace messenger and productivity platform that probably needs no introduction.

With this integration, you'll be able to be notified in Slack each time a revenue event is tracked by Adapty. This can be helpful if you like to cherish every moment your MRR increases or if you'd like to be on the lookout for trial cancellations, billing issues, refunds, and more.

How to set up Slack integration

You'll need to:

  • create an app in your Slack workspace
  • give it permission to post messages
  • and then provide the necessary info to Adapty in Integrations → Slack.

1. Create an app in Slack

Go to https://api.slack.com/apps and create an app like so:

Give it any name ("Adapty" for example) and add it to your workspace:

2. Give permission to post and get a token for your app

You'll be redirected to your app's page in Slack. Scroll down and press Permissions:

After the redirect, scroll down to Scopes and press "Add an OAuth Scope":

Give chat:write, chat:write.public and chat:write.customize permissions. Those are needed to post in your channels and customize the messages:

Scroll back to the top of the page and press "Install to Workspace":

Press "Allow" here:

After this, you'll be redirected to the same page, but you'll have an OAuth Token available (xoxb-...). This is exactly what's needed to complete the setup:

3. Configure the integration in Adapty

Go to IntegrationsSlack:

Paste the xoxb-... token from the previous step and choose which channels the app will post to. You can set up the integration to receive events only on production, sandbox or both. You can also choose which currency to post in (original or converted to USD).

📘

Note that if you'd like to post messages from Adapty in a private channel, you'll need to manually add the "Adapty" app you've created in Slack to that channel. Otherwise it would not work.

Finally, you can choose which events you'd like to receive under "Events":

👍

You're all set!

The events will be sent to the channels you've specified. You'll be able to see the revenue where applicable and view the customer profile in Adapty: