Making a Chatbot by Streamlit

The chatbot is an automation tool to reduce customer service costs and increase satisfaction. It becomes feasible due to the breakthrough of natural language processing techniques nowadays.

In this post, I’ll make a simple chatbot by open-source resource on the internet. There is a package that can make a chat list in the streamlit referred to this link. And there is a free conversation API that can respond to user messages. Then combining these two tools, you can make a fun chatbot.

A short demo.

You can access it by clicking the link

First, install the package for message block in the streamlit. How to install the package and run the streamlit package, you can check this post and the demo code is on my Github.

Second, I found a platform that provides different kinds of AI models API including the model from Facebook, Google, etc. The link.

If you want to use the API, you need to register and create a token. The process is following.

Go to the link and register.

After the registration, go to the setting page and add a token.

Then paste your access token to your python script.

Now, you can access the service.

Now, you can use these elements to build your chatbot. It’s very cool. Isn’t it?