Blog

  • Learning Chatbot from Scratch: Rasa Open Source 3.x Installation and Set up on macOS

    I started to explore chatbot design two weeks ago and decided go with Rasa for my first chatbot development. As a leading open source chatbot platform, Rasa recently upgraded from 2.x to 3.x. While users are encouraged to upgrade to the latest version, I encountered some hiccups during installation and fortunately all got resolved through Rasa forum and googling. In this article, I am going to guide you through the installation process step by step, and also include all the tricks leading towards running your first chatbot example on macOS.

    TLDR: Hiccups I encountered and how to fix them

    Problem 1: ImportError when running “rasa init” after successfully installed Rasa 3.0

    ImportError in sanic package

    Solution: downgrade sanic to 21.9.3 via running “pip3 install sanic==21.9.3”. Credit to nik202 on Rasa community forum.

    Problem 2: Trying to install Rasa X on my local machine to enable conversation driven development, but encountered a series of errors during installation (see my post on rasa forum for details).

    Solution: Basically, Rasa X is designed for server deployment. If you are new to chatbot, I’d recommend to test your chatbot logics in command lines or use other front end deployment on a single machine. I’ve tried the Chatbot Widget from git, and it works perfectly for single machine deployment.

    Problem 3: After running “rasa init” and training the first model, you may want to modify the example moodbot and test your own logic. How to ensure all the logics comply to Rasa underlying training mechanism and train your own model?

    Solution: Here are some commands you want to run:

    rasa data validate: to ensure no conflicts in the stories and domain file

    – rasa train: to train your own model

    – rasa shell — debug: test the responses while you can track the states of the intent prediction and entity values

    Problem 4: After modified the stories and intents, and trained a few models, the responses started to divert from the design. For example, the response should be text but it always showed buttons in the previous design.

    Solution: Try to delete the old models and run “rasa train” again.

    Trending Bot Articles:

    1. How Conversational AI can Automate Customer Service

    2. Automated vs Live Chats: What will the Future of Customer Service Look Like?

    3. Chatbots As Medical Assistants In COVID-19 Pandemic

    4. Chatbot Vs. Intelligent Virtual Assistant — What’s the difference & Why Care?

    Step-by-Step Installation Guide

    If you are new to python or Rasa, the steps below could help lead to your first chatbot running on a single machine. The commands used in the follwing steps are slightly different from Rasa installation page or their Youtube installation guide, and I am listing the ones worked for me.

    Step 1: Check your python version — 3.7 or 3.8 supported

    It is recommended to install and run Rasa in a virtual environment with python 3.7 or 3.8. You can jump to Step 3 if you already have python 3.7/3.8 and virtualenv installed.

    Otherwise, you need to first install python via pip or the binary file from python Download page. I will recommend using the binary file if you are new to python. After downloading, just double click on the .pkg file and follow the installation wizard.

    Step 1.1: Install Python 3.7 or 3.8

    Installation Wizard of Python 3.8.1

    I’ve followed the youtube guide and installed python 3.7.9. Once installation is done, you can check the python version in terminal by running the command below.

    Step 2: Install virtualenv and create a virtual environment

    • Install virtualenv: run “pip3 install virtualenv
    • Create a project directory if it does not exist: run “mkdir rasa-init-demo”
    • Create a virtual environment in the project directory by running:

    cd rasa-init-demo

    virtualenv venv

    • activate venv: run “source venv/bin/activate”. To exist the virtual environemnt later, run “deactivate”
    “(venv)” would appear after activation

    Step 3: Install Rasa Open Source in venv and initialize an example project

    • install Rasa in venv: run “pip3 install rasa”. Note that Rasa X is not supported with Rasa 3.0, so you need to downgrade to Rasa 2.8.x (e.g.: “pip3 install rasa==2.8.13)if planning to run with Rasa X.
    • initialize the first Rasa bot: run “rasa init
    • optional: downgrade sanic if encoutered any ImportError: run “pip3 install sanic==21.9.3”. Then rerun “rasa init”
    Successfully initialized the example project (credit: Rasa Youtube Installation Guide)

    At this point, we should see the welcome message and guiding questions in the terminal. As a new user, one may proceed with “Yes” for the two questions and start training an initial model (mood bot). In case you prefer to pause here and train the model with your own data, you may reponse “N” to the second question. You can start to modify the data, action and config file, and train your own model later.

    I will continue with the modification and creation of your own bot in next post.

    References:

    Rasa 3.x Docs

    Rasa Community Forum: very helpful source

    Conversational AI with Rasa Open Source 3.x: Youtube Playlist

    Don’t forget to give us your 👏 !


    Learning Chatbot from Scratch: Rasa Open Source 3.x Installation and Set up on macOS was originally published in Chatbots Life on Medium, where people are continuing the conversation by highlighting and responding to this story.

  • A Rising Trend: Benefits of Chatbot for Recruiters

    It’s a known fact that the lifeblood of a company is its employees. Recruiters in the HR department have a large responsibility to bring in the best people to make the business run smoothly.

    And, off the recruiter goes to find that perfect unicorn.

    Chatbots are super-powered virtual assistants who simulate human conversations. These conversational agents engage with prospective candidates and follow them through the onboarding phase of a typical job hiring process. Read more.

    submitted by /u/impiger_technologies
    [link] [comments]

  • What’s going on with my my dialogflow chatbot

    I’ve been using a web demo link to try to train my bot. It’s been going well on the laptop but when I share to other parties for testing me inclusive it doesn’t seem to work. I’m getting a 404 error. Says the requested url isn’t found on the server Below is the link to the bot. Kindly assist Kay bot

    submitted by /u/Historical-Youth6448
    [link] [comments]

  • 10 Essential Slack Bots for Remote Workers

    Image Source: Pixabay

    Managing remote teams can be extremely challenging. When team members are scattered in different locations, building a tight connection among team members can be hard.

    Tools like Slack are becoming the preferred tool to communicate with teams that are in the office together, as well as remote.

    In this article, we’ll discuss 10 best Slack apps and bots to keep your remote team happy and productive.

    1. EngageWith

    EngageWith is an employee recognition and rewards platform that enriches your company culture. It virtually brings recognition and fun within your Slack and MS Teams workspace. With EngageWith, everyone across your organization can publicly recognize everyone else by giving points that add up to valued rewards (employees can redeem their points).

    2. Trivia

    Trivia is the new way to connect with your remote team while playing exciting quizzes and remote games on Slack and Microsoft Teams! Get summarised results at the end of every Trivia quiz and find your very own Quizzard!

    Trending Bot Articles:

    1. How Conversational AI can Automate Customer Service

    2. Automated vs Live Chats: What will the Future of Customer Service Look Like?

    3. Chatbots As Medical Assistants In COVID-19 Pandemic

    4. Chatbot Vs. Intelligent Virtual Assistant — What’s the difference & Why Care?

    3. Giphy

    Giphy app allows you to search from the world’s largest library of animated GIFs, making it easy to find and share them on Slack. Want to display a cat gif? Just typing “/giphy cats” will display a cat GIF in your channel.

    4. HeyTaco!

    HeyTaco lets you recognize a team member by giving them tacos when they accomplish something great! Then, that teammate can redeem their tacos for custom rewards. It sparks conversations and builds stronger relationships with its fun and unique kindness currency…tacos!

    5. TINYpulse

    TINYpulse bot is a feedback-based app that encourages the whole team to provide input. Customizable weekly queries that can range from “How valued do you feel at work?” to “Where should we hold the company holiday party?”.

    This provides actionable, specific data for executives to reference in decision-making.

    6. Zoom for Slack

    Zoom for Slack allows you to instantly share video, audio, and screens from any Slack channel or group. From any channel in Slack, you can start an instant meeting by entering the /zoom command.

    7. ToDoBot

    ToDoBot is a task management app for slack. It assigns tasks during conversations and set due dates. That way, instead of creating a 15-minute task in your project management tool, you can monitor it straight from Slack.

    8. Pocket

    Pocket for Slack helps you capture and save all of the interesting articles, links, and videos your teammates share in Slack throughout the day — right to Pocket.

    9. Monday.com

    Sync conversations across both platforms, receive updates, and track changes instantly to ensure everyone is on the same page. Monday enables teams to manage work, meet deadlines, and build a culture of accountability and inclusion.

    10. Standuply

    Start your day with a Standuply meeting in Slack, to prompt teammates to share what they’re working on, what’s blocking them and what they’ve completed.

    Don’t forget to give us your 👏 !


    10 Essential Slack Bots for Remote Workers was originally published in Chatbots Life on Medium, where people are continuing the conversation by highlighting and responding to this story.

  • Human vs chatbot: Decide in which scenarios they are more effective

    Can you help me out with a study? Here’s a short survey:

    https://tidiosurveys.typeform.com/to/c5maPfPO

    I’ll share the results soon.

    submitted by /u/KazRainer
    [link] [comments]

  • In your opinion which company currently has the best customer service chatbot?

    To be honest I was never big into chatbots, and I have yet to run into a chatbot that has legitimately solved my customer support issues, but I will likely have to develop a chatbot for my next project at work. I was hoping I could interact with the best chatbot out in the wild, just to get some inspiration as to what the user experience should feel like when done properly.

    I know chatbots can have a lot of variety so the chatbot I’m looking for would strictly be handling things like:

    • Canceling an order

    • Dispute bill

    • Payment Plans

    • Membership upgrades

    So far the best chatbot I have seen is Amazon’s. Mainly because it has me specify my order that I’m contacting about before starting the support chat session. However, I’d be curious to get everyone’s input in case there’s something better.

    TLDR; What’s the best chat bot encounter you’ve had and what made it so pleasant?

    submitted by /u/YouLostMeThere43
    [link] [comments]