Skip to content

Building a chatbot using Rasa and integrating it with Unity

Notifications You must be signed in to change notification settings

retrogeek46/Rasa-Unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rasa-Unity

This is a tutorial to show how one can integrate Rasa chatbots with Unity.

Currently no work on chatbot has been done except implementing the custom connector. Chatbot is trained on the Mood bot data that is created after rasa init command.

Installation

First, clone this repo using git clone https://github.com/retrogeek46/Rasa-Unity and checkout to v0.2.0.

Rasa

  • Change directory into Rasa/ and create a virtual environment using
    python -m venv venv
  • Activate the virtual environment
    Bash on Windows : source venv/Scripts/activate
    CMD : venv\Scripts\activate
    Linux : source venv/bin/activate
  • Install Rasa into the virtual environment (elevated prompt recommended for creating spacy link)
    pip install rasa[spacy]
    python -m spacy download en_core_web_md
    python -m spacy link en_core_web_md en
  • Run rasa server using
    rasa run

Unity

  • The Unity project was made using 2019.3 hence is the recommended version.
  • Open Unity Hub and choose "Add" from top right corner.
  • Select the Unity project folder located in Rasa-Unity/Unity/Rasa.
  • Press play after running the Rasa server.
  • Type your message and the bot should respond.

Docs

WIP, the source code is commented though.

Known Bugs

  1. Clicking anywhere sends empty requests

TODO

  1. Add scroll support
  2. resize chat bubbles based on size of content (text, image)
  3. Render buttons and quick replies
  4. Add support for custom data
  5. Render messages in order, wait for image loads
  6. Add docs
  7. Add delay between messages
  8. Add animations before showing messages
  9. Add voice support

About

Building a chatbot using Rasa and integrating it with Unity

Resources

Stars

Watchers

Forks

Packages

No packages published