# Send Notification

This action allows your bot to send notification through various channels, including

* Email
* Slack
* SMS
* Phone Call
* WhatsApp
* Telegram
* Viber
* Live Agent

It's all in the "Notification" of your Action step.

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FFlr3ZRmf0cD5gt6sYKcW%2FCapture.PNG?alt=media&#x26;token=5e1cf0eb-d14c-4115-8530-026f81166807" alt=""><figcaption></figcaption></figure>

### Email Notification <a href="#email-notification" id="email-notification"></a>

To send an email notification, you will need to setup your email integration first. Check [how to setup email integration](https://help.flochat.ai/platform/email-templates)?

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2Ffu04mZhf48zWfsgZHFlC%2FCapture.PNG?alt=media&#x26;token=9d9645b0-eb84-4164-a62b-8a972b75b923" alt=""><figcaption></figcaption></figure>

Unlike "Send Email" step, email notification only supports text message type. Check "[Send Email](#email-notification)" step in "Email Integration" page if you need more message types like images, buttons, files, etc.

Put the sender's address at "Email Profile" and the receiver's address at "To Email".

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

Similarly, to send a slack notification, you will need to setup your slack integration first. Check how to setup slack integration?

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2F72ETEB7KGzMs6M3M3Qbc%2FCapture.PNG?alt=media&#x26;token=58abfa01-c9ca-4497-a6a5-2b2e23316ab3" alt=""><figcaption></figcaption></figure>

In the pop-up window,

1. choose a Webhook
2. choose a default channel or name another one
3. pick a message type, add as many as needed
4. for example, "Section" type, put your message at area 4 and add photo or field value if needed
5. use the "Test" button to send the message for test and adjust accordingly
6. once finished, click "Save".

### SMS Notification <a href="#sms-notification" id="sms-notification"></a>

Setup a sender number before you make a SMS notification. Check how to add [phone number](https://help.flochat.ai/platform/connect-to-channels#whatsapp-sms-voice-bot)?

You can use the "generate random text" operation with text variable to get a random security code and send out for verification purpose.

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FBIMeRRMn5KX1aSPtRBkJ%2FCapture.PNG?alt=media&#x26;token=37827937-fae9-4f13-a497-c6f1a6c0255d" alt=""><figcaption></figcaption></figure>

Choose a sender and receiver, put message and here you go!

### Make Phone Call <a href="#make-phone-call" id="make-phone-call"></a>

Same as SMS notification, a phone number is needed to make a phone call. Check how to add phone number?

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FPGtfvu024gJEhpscwrFX%2Fnotification5.c0ce6875.png?alt=media&#x26;token=f109a530-db7d-4696-98ec-d4247a1e5574" alt=""><figcaption></figcaption></figure>

Moreover, you must make a voice flow connected to this phone number otherwise your voice bot don't know what to say.

### Ref Payload <a href="#ref-payload" id="ref-payload"></a>

**Ref payload** is used to passing on a message to the voice bot.

For example, set the payload to "support" here in the notification action and in your voice flow:

<figure><img src="https://2836971782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FCvOrYMc3bVk6j7cRveEk%2Fnotification6.9db9e112.png?alt=media&#x26;token=bb3a53cc-7463-44a2-a690-e29c0582fb67" alt=""><figcaption></figcaption></figure>

Goto the **Start Step** in your **Main Flow** and save the ref payload in a custom field.

{% hint style="info" %}
You can pass on a JSON variable in the ref payload but base64 encode and decode are needed before and after this. See base64 operations in **Set Custom Field**.
{% endhint %}
