Deprecated: Creation of dynamic property ElementPack\Element_Pack_Loader::$_modules_manager is deprecated in /home/bi/public_html/wp-content/plugins/bdthemes-element-pack/loader.php on line 702
How to integrate a Bot in Rocketchat using RASA - Axxonet Analytics

How to integrate a Bot in Rocketchat using RASA

This is the 2nd in our series of articles on using RocketChat as an Open Source Enterprise Communication

Platform as an alternative for Slack or Microsoft Team and enhancing the capabilities by integrating one 
of the most popular Open Source Chat Bots RASA to simplify and enhance customer engagement as one of the steps to accelerate Digital transformation of the organization.

Do you get a ton of questions from your clients? A lot of queries and doubts? A bunch of text messages?

Replying to each one of them takes a lot of time. For this purpose, you need to employ a devoted customer support crew. Eventually, it augments extra resources to your team to be paid, which is certainly a big issue.

What can be a feasible solution? It’s super easy!

Develop an efficient, conversational AI chatbot for your business. You only need to capitalize on it once,
but it functions for your whole customer support squad.

RASA is an incredibly powerful open-source framework used by developers worldwide for building AI
chatbots and contextual assistants that can be incorporated into other chat platforms. This can enhance
customer support and empower your business.

As RASA supports various channels to incorporate, the Rocketchat service is one of them. For this, we
should have to understand how the RASA chatbot functions. To follow this article adequately, we should
have a RASA bot in good working condition.

Aim: To merge the RASA Chatbot with Rocketchat.
Objective :
● Setup the Rocketchat in the system.
● Configure the administration and New Integration.
● Configure the RASA Bot side.
● Provide the Intents in Rocketchat

Procedure
➔ How to SetUp RocketChat?
Wondering how, to begin with, the setting up on RocketChat? Here’s a step by step guide to steer the
way through the entire process!

Step-1: First and foremost, you need to install, set up, and log in to Rocket. Chat in your system, which is
running to 3000 port (by default).

Step-2: Upon successful installation, enter the essential administrator information and create a users and credentials login. It is advised to allow notifications via Show notifications dialogue.

Step-3: Now, create a user that will be used to post the message, and set its credentials at credentials file. This user will act as a Bot  in the Rocket.Chat and will answer back to the end-users (from the bot side).

Note: We have described in our earlier article here how we can enable SSO ( Single Sign On) and integrate Enterprise User management in Rocket Chat using SAML with WSO2 (a leading open source Identify Access Provider IdP)

Step-4: Next, develop a Rocket.Chat outgoing webhook and go to Administration -> Integration and choose the new Integration.

Step-5: After that select the “Outgoing Webhook Integration”.

Step-6: Set the Event Trigger message section to the value as “Message Sent”.

Step-7: Fill out the details, encompassing the channel you want the bot to listen to.
As we can give “#general”, “@specific_user”, “all_public_channels”,
“all_private_groups” and “all_direct_messages”.

Step-8: It is also possible to set the Trigger Words section with @yourbotname so that the bot doesn't
trigger on everything that is said. It will activate when you call them with @youbotname.

Step-9: In the URLs section, set the URL to “http://<host>:<port>/webhooks/rocketchat/webhook”,
replacing the host and port with the relevant values from your current operating RASA server.

Congratulations! Your Rocket.chat server is now deployed and prepared to connect your crew members, clients and partners.

➔  Configurations from the RASA side:

Step-1: Go to the RASA bot “credentials.yml” file and add the RocketChat information as ;

rocketchat:

    user: “<RASA USER NAME>”

    password: “<RASA USER PASS>”

    server_url: “<ROCKETCHAT HOST>”

Step-2: Go to “config.yml” and permit the “pipeline” and “policies”. Register the server selecting the suitable option and approving the Terms & Privacy Policy.

Step-3: After this run the ‘rasa action server’ and make the rasa server up and running.

Step-4: Then as per the general information regarding your company you have provided in the configurations of rocket chat, call it as in the chat window. The Rasa bot user will trigger from there.

Step-2: Go to “config.yml” and permit the “pipeline” and “policies”. Register the server selecting the suitable option and approving the Terms & Privacy Policy.

Step-3: After this run the ‘rasa action server’ and make the rasa server up and running.

Step-4: Then as per the general information regarding your company you have provided in the configurations of rocket chat, call it as in the chat window. The Rasa bot user will trigger from there.

Get in touch with us for more information and to help have this setup and operationalized in a short time.

Table of Contents
Table of Contents
Related Posts
How to integrate a Bot in Rocketchat using RASA

This is the 2nd in our series of articles on using RocketChat as an Open Source Enterprise Communication

Platform as an alternative for Slack or Microsoft Team and enhancing the capabilities by integrating one of the most popular Open Source Chat Bots RASA to simplify and enhance customer engagement as one of the steps to accelerate the Digital transformation of the organization.

Shopping Basket

MicroFocus Vertica Analytics Platform delivers speed, scalability, and built-in machine learning that today’s most analytically intensive workloads demand, whether in the Public Clouds, On-Premises, on Hadoop, or any Hybrid combination. Vertica’s SQL Data Warehouse is trusted by the world’s leading data-driven companies, including Cerner, Etsy, Intuit, Uber and more to deliver speed, scale and reliability on mission-critical analytics. Vertica combines the power of a high-performance, massively parallel processing SQL query engine with advanced analytics and machine learning so you can unlock the true potential of your data with no limits and no compromises. We are a certified System Integration and reseller partner of Vertica and have a strategic alliance to develop industry-specific solutions using this Award-winning Columnar Database in the APAC region.

We have extensive experience with the entire product suite having successfully completed over 50 implementations in the USA/Europe/Asia Pacific across different industries and still continue to support a few key customers Globally.

As a Future-ready and complete, enterprise-grade analytics platform, Pyramid is a compelling option for organizations. Pyramid offers an integrated suite for modern Analytics and Business Intelligence requirements. It has a broad range of analytical capabilities, including data wrangling, ad hoc analysis, interactive visualization, analytic dashboards, mobile capabilities and collaboration in a governed infrastructure. It also features an integrated workflow for system-of-record reporting. Its Augmented features such as Smart Discovery, Smart Reporting, Ask Pyramid (NLQ), AI-driven modelling, automatic visualizations and dynamic content offer powerful insights to all users, regardless of skill level and the adaptive augmented analytics platform covers the entire data life cycle out-of-the-box, from ML-based data preparation to automated insights and automated ML model building. Pyramid is especially useful for the customer who is in urgent need to get more value out of their existing SAP BW and SAP HANA investments. Without any data extraction or duplication, Pyramid offers best-in-class functionality and performance that preserves the security and governance inherent in the SAP platform. We are a Strategic System Integration and Reseller partner of Pyramid Analytics.