Guide FloatChat

Floatchat- User Guid

Creating a Broadcast

1. Introduction

Floatchat makes it super easy for you to create a Broadcast. Simply go to the Broadcast workflow which is accessible from the left Navigation as Broadcast.

If in case you don’t have an active WhatsApp business number readily available, you can use the “WhatsApp Sandbox” feature to test your bot flow on the WhatsApp channel. Click here to know more.

Note: It would be available only if your bot is not deployed on the WhatsApp channel

To provide you the ease of testing your broadcasts, we’ve made the ‘WhatsApp Sandbox’ and ‘Create New Broadcast’ options available in all three sections i.e. Broadcast History, Scheduled Broadcast, and Draft Broadcasts.

creating a broadcast

Floatchat makes it super easy for you to create a Broadcast. Simply go to the Broadcast workflow which is accessible from the left Navigation as Broadcast.|
If in case you don’t have an active WhatsApp business number readily available, you can use the “WhatsApp Sandbox” feature to test your bot flow on the WhatsApp channel. Click here to know more.To provide you the ease of testing your broadcasts, we’ve made the ‘WhatsApp Sandbox’ and ‘Create New Broadcast’ options available in all three sections i.e. Broadcast History, Scheduled Broadcast, and Draft Broadcasts.

2. Create New Broadcast

Once you click on the ‘Create new broadcast’ button, it would open a section as below –

While creating a new Broadcast, you must provide the following details –

  • Broadcast NameProvide a name related to the context of your broadcast, it would be useful for your future reference.
  • Target Channels Select the deployed channel that you want to use to send the broadcast.
creating a broadcast
  • Broadcast Type You get the following options to personalize your broadcast message:
  1. Send a Message: This type of broadcast is non-interactive. The receiver will see a Message
  2. Send Message with options: This type of broadcast allows the sender to receive input from the receiver
  3. Trigger a path: This option takes the receiver through all the flows defined in a path. While creating a new Broadcast, think of it as a way of re-engaging your users and getting them to start interacting with your chatbot again. This means that avoid triggering paths to just deliver a lot of content to users.
  4. Send template message (Only for WhatsApp channel – Click here)
  • Broadcast Message – For the Send Message and Send Message with options broadcast type, you can add a text message.
creating a broadcast
  • Target segment There are two options available for selecting your target user group:
  1. Contact list (Only for WhatsApp channel) – Select the contact list that you’ve already uploaded or you can upload a new contact list by clicking on the ‘Import Contact List’ option.
  2. Segment – Using ‘all users’ option you can include all the users that have previously interacted with your bot or you can select the custom segment created.
  • ScheduleAs the title suggests, this option allows you to define a set schedule for when you want the broadcast to be initiated/published. You could publish a broadcast as a one-time or recurring occurrence. If recurring you can opt to select the frequency and the time period during which the broadcast will continue to be active.
creating a broadcast

This feature is available if you have an active WhatsApp setup with – 360Dialog, Kaleyra. Navigate to ‘Configure’ and ‘WhatsApp’ to set up your WhatsApp account. Visit the detailed documentation here, to know how to send WhatsApp template messages to the new and existing users.

Note: Template messages are charged on a per message basis. Please contact your WhatsApp provider or Floatchat support team (support@Floatchat.ai) for more information on the same.

4. Broadcast APIs

4.1 Segment Basic Usage

Navigate to Users page and create a segment.

Click here to learn more about segments

HTTP Method :  Post

Request URL   :  https://api.floatchat.ai/bot-api/v1.0/customer/<customerId>/bot/<botkey>/broadcast

(Customer ID, Bot key and Authorization token are available in the Integrations -> Floatchat API) 

Headers:

Content-Type : Application/json Authorization : Basic <Auth token>

Body : 

Dynamic parameters

“broadcastTitle”: Identifier name for the broadcast “channels”: Channels such as Web users, WhatsApp users, and mobile apps. “segment name”: Broadcast will publish to users satisfying the attribute condition under this segment. “payload”: The message type to be sent,  ‘Send message’, ‘Send a message with options’ …

Sample Curl Request 

creating a broadcast

4.2 Usage Rules

While defining the Broadcast Segment using an API, the below rules have to be kept in mind – Specifying Channels are mandatory If we are sending a DIRECT message on WhatsApp, and LastActiveAfter is 24hrs. For the web LastActiveAfter is 48hrs.

4.3 Direct Message

See an example below of a Broadcast API request for a Direct Message to be sent to users

Direct Message with Options

See an example below of a Broadcast API request for a Message with options sent to users

creating a broadcast

4.4 Set an attribute and send a message (optional)

See an example below of a Broadcast API request to set an attribute and send a message

creating a broadcast

4.5 Trigger a Path and send a message (optional) 

See an example below of a Broadcast API request to trigger a path and send a message

creating a broadcast

4.6 Template Message on Whatsapp

Whatsapp typically supports in session messages that are messages, sent to a user who was active with the chatbot in the last 24 hours. For initiating a conversation or notification beyond that time window, you need to send what’s called a message with a defined template. Floatchat supports sending template messages for Whatsapp using the below API structure. The below API is for Nexmo.

creating a broadcast

4.7 Template Message on 360dialog

URL: https://api.floatchat.ai/bot-api/v2.0/customer/<customerId>/bot/<botkey>/broadcast HTTP Method: POST

Header – Authorization: Basic <API Key>

Note: Navigate to Floatchat APIs to find the customer id, and bot key and generate the API Key

creating a broadcast

Below is the explanation of the attributes used above,

For broadcast creation

  • broadcastTitle – Broadcast will be created using this name
  • publishedOn – Time stamp when broadcast is to be scheduled. Provided time here in UTC, this will be taken as a scheduling time.

For a new user creation

  • phoneNumber – Whatsapp number with + and country code – ‘+91979093071’. This is a mandatory field
  • email – Email of the user will be set. This is an optional field
  • organization – Organization of the user will be set. This is an optional field
  • title – Title of the user will be set. This is an optional field
  • lastName – Last name of the user will be set. This is an optional field
  • firstName – First name of the user will be set. This is an optional field
  • userName – Username of the user will be set. This is an optional field

Parameters used will also have to be provided under TEXT.

For media templates you can provide URLs for images, documents and flow keys (5.5 Trigger a path) for buttons, if applicable, like the below script,

creating a broadcast

5. Tracking broadcast status

creating a broadcast

As a part of the Broadcasts, users will be able to download the target user and failed users list by clicking on their respective statistics number as highlighted in the image. The downloaded file will be available as a CSV and will have the following information,

  • User id
  • User name
  • Email
  • Contact number
  • Platform/channel (on which the broadcast was sent)
  • Timestamp
  • Status
  • Reason for failure (available only for WhatsApp – 360dialog)

For the sent broadcasts, you get the following options such as:

a. View Broadcast

b. Copy Broadcast

c. Export Broadcast

d. Retry Broadcast

creating a broadcast

a. View Broadcast -

Once you click on the ‘View Broadcast’ option, it will open a window as shown below

  1. Channel – a specific icon for the chosen channel will be displayed.
  2. Completion time – It displays the date and time when the broadcast was sent.
  3. Target Users – It indicates the count of valid phone numbers or users included in your broadcast’s target segment or contact group.
  4. Failed Users – It indicates the count of invalid phone numbers or users that are excluded from the target segment or contact group for your broadcast.
  5. CTA (URL Clicks) – It shows the count of clicks made by your targeted user group on the CTA (Call-to-Action) button.
  6. Sent – The message acknowledged as sent by the channel to the number of users.
  7. Delivered – The message acknowledged as delivered by the channel to the number of users.
  8. Read – Messages read by the number of users and acknowledged by the channel.
  9. Click rate – Messages on which buttons were clicked by your target audience (only button clicks with type as quick reply are captured by WhatsApp)

You also get an option to Retarget the broadcast, Click here to learn more…

b. Copy Broadcast -

You can choose this option if you want to edit and reuse the same broadcast for a different group of users.

Once you click on the ‘Copy Broadcast’ option, it would open a window as shown below – 

creating a broadcast

c. Export Broadcast -

If you require a detailed report for the sent broadcast, you can generate it by clicking on the ‘Export Broadcast’ option. This action will trigger the download of a zip file that contains an Excel sheet of your broadcast report. The Excel sheet will provide you with comprehensive information on the broadcast, allowing you to analyze the data and gain insights into the performance of your message.

creating a broadcast

A downloaded report would look like this –

d. Retry Broadcast - 

In the event that there are any failed users in your sent broadcast, you will have the option to retry the broadcast for those users. To retry the broadcast, simply click on the ‘Retry Broadcast’ option. This action will allow you to re-initiate the broadcast for the failed users, ensuring that they receive the message as intended.

Click on the ‘confirm’ button to retry the broadcast –

creating a broadcast

Once you click on the ‘Create new broadcast’ button, it would open a section as below

While creating a new Broadcast, you must provide the following details –

  • Broadcast NameProvide a name related to the context of your broadcast, it would be useful for your future reference.
  • Target Channels Select the deployed channel that you want to use to send the broadcast.
    • Broadcast Type You get the following options to personalize your broadcast message:
    1. Send a Message: This type of broadcast is non-interactive. The receiver will see a Message
    2. Send Message with options: This type of broadcast allows the sender to receive input from the receiver
    3. Trigger a path: This option takes the receiver through all the flows defined in a path. While creating a new Broadcast, think of it as a way of re-engaging your users and getting them to start interacting with your chatbot again. This means that avoid triggering paths to just deliver a lot of content to users.
    4. Send template message (Only for WhatsApp channel – Click here)
      • Target segment There are two options available for selecting your target user group:
        1. Contact list (Only for WhatsApp channel) – Select the contact list that you’ve already uploaded or you can upload a new contact list by clicking on the ‘Import Contact List’ option.
        2. Segment – Using ‘all users’ option you can include all the users that have previously interacted with your bot or you can select the custom segment created.
        • ScheduleAs the title suggests, this option allows you to define a set schedule for when you want the broadcast to be initiated/published. You could publish a broadcast as a one-time or recurring occurrence. If recurring you can opt to select

          This feature is available if you have an active WhatsApp setup with – 360Dialog, Kaleyra. Navigate to ‘Configure’ and ‘WhatsApp’ to set up your WhatsApp account. Visit the detailed documentation here, to know how to send whatsapp template messages to the new and existing users

           

4. Broadcast APIs

4.1 Segment Basic Usage

Navigate to Users page and create a segment.

Click here to learn more about segments

HTTP Method :  Post Request URL   :  https://api.engati.com/bot-api/v1.0/customer/<customerId>/bot/<botkey>/broadcast

Headers:

Content-Type : Application/json Authorization : Basic <Auth token>

Body : 

Dynamic parameters

“broadcastTitle”    : Identifier name for the broadcast “channels”              : Channels such as Web users, whatsapp users, mobile app. “segmentName”    : Broadcast will published to users satisfying the attribute condition under this segment. “payload”                : The message type to be sent,  ‘Send message’, ‘Send message with options’ …

4.2 Usage Rules

While defining the Broadcast Segment using an API, the below rules have to be kept in mind – Specifying Channels is mandatory If we are sending a DIRECT message on whatsApp , LastActiveAfter is 24hrs. For web LastActiveAfter is 48hrs.

4.3 Direct Message

See an example below of a Broadcast API request for a 

.4.4 Set an attribute and send a message (optional) See an example below of a Broadcast API request to set an attribute and send a messageDirect Message to be sent to users
4.5 Trigger a Path and send a message (optional) See an example below of a Broadcast API request to trigger a path and send a message.
4.5 Trigger a Path and send a message (optional) See an example below of a Broadcast API request to trigger a path and send a message

4.7 Template Message on 360dialog

URL: https://api.engati.com/bot-api/v2.0/customer/<customerId>/bot/<botkey>/broadcast HTTP Method: POST

Header – Authorization: Basic <API Key>

Note: Navigate to Engati APIs to find customer id, bot key and generate API Key

Below is the explanation of the attributes used above,

For broadcast creation

  • broadcastTitle – Broadcast will be created using this name
  • publishedOn – Time stamp when broadcast is to be scheduled. Provided time here in UTC, this will be taken as a scheduling time.

For a new user creation

  • phoneNumber – Whatsapp number with + and country code – ‘+91979093071’. This is a mandatory field
  • email – Email of the user will be set. This is an optional field
  • organization – Organization of the user will be set. This is an optional field
  • title – Title of the user will be set. This is an optional field
  • lastName – Last name of the user will be set. This is an optional field
  • firstName – First name of the user will be set. This is an optional field
  • userName – Username of the user will be set. This is an optional field

5. Tracking broadcast status

As part of the Broadcasts, users will be able to download the target user list by clicking on the target user count as highlighted in the image. The downloaded file will be available as a csv and will have the following information,

  • User id
  • User name
  • Email
  • Contact number
  • Platform/channel (on which the broadcast was sent)
  • Time
  • Status

    The downloaded file will also be available on the export history tab for user’s reference as shown in the image.

     

Scroll to Top