# Slack

With Slack, your bots can send various types of messages to your Slack group or contacts mainly for notification purpose for now. However, we are working on building Slack flow. So there will be more functions with Slack shortly.

### Setup Slack <a href="#setup-slack" id="setup-slack"></a>

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2Fs3lwW1gO5azYC5YFYJBW%2Ftempsnip.png?alt=media&#x26;token=a3c7c802-ec73-4c20-a358-f11cf2003e18" alt=""><figcaption></figcaption></figure>

To send out notifications to your Slack group or personal channel, you will need incoming webhooks first.:

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FPmoQDPw6Bf8BgymFhsYd%2FCapture.PNG?alt=media&#x26;token=fc02e474-9072-49cf-bcc7-34f45977dab8" alt=""><figcaption></figcaption></figure>

There are 2 ways to get an incoming webhook URL:

* from Slack Incoming Webhooks App
* from your own Slack App

#### [#](https://help.flochat.ai/platform/introduction/integrations/broken-reference) Get an Incoming Webhook URL from Slack Incoming Webhooks App <a href="#get-an-incoming-webhook-url-from-slack-incoming-webhooks-app" id="get-an-incoming-webhook-url-from-slack-incoming-webhooks-app"></a>

Visit [Incoming WebHooks](https://sendly-workspace.slack.com/apps/A0F7XDUAZ-incoming-webhooks?tab=more_info) (opens new window), login yourself, then:

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2F4xkR6FvdXdIKB745wUyX%2Fslack_incom_app1.eadb9dd1%20(1).png?alt=media&#x26;token=ffcd3666-1f73-498b-8fa9-0ceca2c4b0a1" alt=""><figcaption></figcaption></figure>

click "Add to Slack".

Pick a channel you would like your bot to send notifications to, then click "Add".

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FuJX3uR3sFWy6rQYtUhph%2FCapture.PNG?alt=media&#x26;token=f72b4c08-8e8d-4e8d-af35-c419c136b8f8" alt=""><figcaption></figcaption></figure>

Ta-da! Here you are the URL.

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FQhQ64GwGKgEMkwoNERot%2Ftempsnip.png?alt=media&#x26;token=8a6fcabe-f696-463d-adf3-e2968dce7562" alt=""><figcaption></figcaption></figure>

#### Get an Incoming Webhook URL from Your Own Slack App <a href="#get-an-incoming-webhook-url-from-your-own-slack-app" id="get-an-incoming-webhook-url-from-your-own-slack-app"></a>

Select view Slack Documentation

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FPmoQDPw6Bf8BgymFhsYd%2FCapture.PNG?alt=media&#x26;token=fc02e474-9072-49cf-bcc7-34f45977dab8" alt=""><figcaption></figcaption></figure>

#### 2, Create your Slack App

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2F8bdumaIAspIydQe1VxAy%2Ftempsnip.png?alt=media&#x26;token=c99c2689-7488-4801-937d-c59c9d1c0fbf" alt=""><figcaption></figcaption></figure>

#### 3, Name app and select workspace

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FJWspb6VA0t0HgB7rDPzq%2FCapture.PNG?alt=media&#x26;token=6c4dd9b7-9eb0-4c76-9757-1f2134ccc56c" alt=""><figcaption></figcaption></figure>

#### 4, Select: Incoming Webhooks

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FnGmi67oWeK8TR6Xwxe8f%2Ftempsnip.png?alt=media&#x26;token=49955cb7-7b39-4a7d-a653-58c508040733" alt=""><figcaption></figcaption></figure>

#### 5, Turn On then select 'Add new webhook to workspace'

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2F6LXsZtVdWv0aA5RNPKO3%2Ftempsnip.png?alt=media&#x26;token=57e33ba3-0fba-4121-868d-7791cd119a51" alt=""><figcaption></figcaption></figure>

#### 6, App is now created!

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FZrCawTzqHTu9tvIQofph%2FCapture.PNG?alt=media&#x26;token=c85f0034-e116-4f79-9a5a-b5ddde6c3483" alt=""><figcaption></figcaption></figure>

#### Once you select the 'Allow' Button a new screen will display. Displaying your webhook URL 'At the bottom'

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FriUTq5mDYWGr5wQ4lrNT%2FCapture.PNG?alt=media&#x26;token=84051398-96b4-4dea-b8bc-7f1451771755" alt=""><figcaption></figcaption></figure>

### Paste the webhook URL into your incoming webhook

* Add an app icon
* Name your app

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FU95tlPnm1c5wtpvwRsPm%2FCapture.PNG?alt=media&#x26;token=1718c7c8-aaf5-492c-bf0e-7128710bcfca" alt=""><figcaption></figcaption></figure>

#### Select create and your webhook will be created

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FVM7Mm8bhgRs6gfoCE77u%2FCapture.PNG?alt=media&#x26;token=20afc244-85a3-4402-977e-05c131cd1ea1" alt=""><figcaption></figcaption></figure>

More information click -> [Slack API (opens new window)](https://api.slack.com/messaging/webhooks)

#### Send Slack Notification <a href="#send-slack-notification" id="send-slack-notification"></a>

A common usage for slack integration is to send slack notification. For example, to back up your bot, set a "Talk to Human" button. And when user press it, send a slack notification to a support channel or a support staff. Check how to [send slack notification](https://help.flochat.ai/flow-builder/steps/send-notification).
