deploy chatbots

When creating a chatbot, you design the logic of a chatbot. To then bring it to life so your users can interact with it, you must deploy it on one of the media, which include Web pages, Facebook Messenger and Twilio phone numbers. A key advantage of SmartBot360 is that you can deploy the same bot to multiple media to meet the users on their favorite medium.

The easiest way to deploy a bot is to follow the prompts right after creating a bot and clicking “Save & Publish”.

You can also manage your deployments at a later stage. Here are the steps to deploy a chatbot that you have already created. First, go the BUILD CHATBOTS page.

deploy to facEbook Messenger

Messenger can be tricky to work with, due to the several privacy and anti-spamming measures that Facebook takes to protect it users. SmartBot360’s goal is to shield you from all this complexity and provide a super-easy interface to deploy your bots on Messenger.

To deploy a bot on one of your Facebook Pages (you may not deploy a chatbot on your Facebook homepage, you must create a Facebook Page for that), follow these steps:

First, click on “Login with Facebook” button to login with your Facebook credentials. Grant any requested permissions when prompted. Then, all your Facebook Pages will be displayed.

To deploy a bot, as seen in below image:

  1. Select the bot from the dropdown list

  2. Click on “Select” for the Page where you want to deploy it

A new row is generated for the newly deployed bot.

Advanced Facebook Options

Enable Subscription Messaging: If you want to use the SmartBot360 scheduling features on your Facebook Page, you must request permission for Subscription Messaging for your Facebook Page from Facebook. This permission will allow the chatbots to initiate chats with your users. For that, go to your Page in facebook.com and do the following:

  1. Under settings on the Page go to Messenger Platform and scroll down to Advanced Messaging Features.

  2. Click on Subscription Messaging and fill out the form that will pop up. When done save draft.

  3. Click on submit for review (this can take up to five days).

  4. If you are denied this permission you must work with Facebook to submit a request that will meet all of their policies.

Option to use your own Facebook App: To deploy a bot on Messenger, you need to first create a Facebook App. SmartBot360 typically uses its own Facebook Apps to spare you this trouble. However, if you work on a dedicated SmartBot360 server, you have the option to use your own Facebook App. In that case, SmartBot360 will provide you with concrete instructions to setup your App and submit it for Facebook review.

deploy to phone number (sms)

SmartBot360 can easily deploy a bot on a Twilio phone number. Hence, you must first create a Twilio account. Then, follow these steps:

Select any Label (name) for your deployment, and fill the rest of the fields of the first arrow in below image, which come from your Twilio account, based on the displayed instructions when you click on the “Instructions” button.

Then select a bot (2nd arrow in below image) and click “Apply”.

These actions create a new SMS bot deployment.

deploy to web page

To deploy a bot:

  1. Select a bot (1st arrow in below image)

  2. Click on “Deploy Web Bot”

  3. An HTML snippet will be automatically generated.

  4. Copy it and paste it inside your HTML page, before </body>.

  5. You can customize the looks and functionality of the Web Bot, by modifying the values of the attributes in the HTML snippet.

Here are more details on Step 4 in the above list, if you use one of the popular Web site hosting tools.

Wix:

4a. Go to Settings, then click “Tracking & Analytics”

4b. Click + New Tool and select Custom

4c. Paste the snippet, and select the page to deploy the bot on as shown below. Make sure you select “Body - end” or else the bot may be deployed on all pages. For more information, also see instructions from Wix.

 
 

Squarespace:

4a. Go to the page where you want to add the chatbot.

4b. Click on + and select a Code object.

4c. Go to the Code object and paste the snippet as below:

 
 

WordPress:

There are many variants of Wordpress, so instructions to insert HTML snippets may vary. The easiest way is to use a plugin that allows inserting HTML snippets, such as https://wordpress.org/plugins/scripts-n-styles/. Other ways are also possible as described in https://www.godaddy.com/garage/3-ways-to-insert-javascript-into-wordpress-pages-or-posts/.

hashtags

Sometimes you may want to deploy more than one bot on the same medium. For example, in the below image, we deploy two bots on the same Facebook Page. If the user types #stop at any time (even during the execution of another bot), the stopWellness bot starts (which unsubscribes the user from all scheduled bots). Else, the default bot, wellnessBot, is active. There can only be one default bot per medium (e.g. per Facebook page), that is, only one bot with empty hashtag.