简体   繁体   中英

making a Django chatbot application interact with multiple users

i have a django chatbot application on web faction shard host. the idea is : the chatbot application simulate the customer service in chatting with the customers.

Basically the conversation will be exchanged through the API using GET and POST, where it first POST the input then GET calls the python file to SELECT the input form the DB and process it then update the database with the retrieved out put.Finally a GET is used to fetch the out put and display it.

so far it is working for one user at a time, what i am considering now is that i want it to chat with multiple customer at the same time an isolating each user.

Do i have to use Redis just for the chatting part, if yes how i can merge it in my project? other there are other solution out there?

i have developed it using:

python3: for the chatbot code.

Django: for the website.

Mysql: for the data base, that hold the knowledge based for the chatbot such as a table that include number of input and it correspond output.

Thank you,

You can use Redis,Celery,Python RQ,Rabbit MQ as a queue for distributed tasks(chatting tasks) in your Django app. But this will increase complexity in your project. I will recommend you to Develop Python based multi client chat server.

There is a whole chatbot solution based on Python 3 + Django + Mongo/sqlite. Its github link is https://github.com/gunthercox/ChatterBot . Hope it can help you. This repository also contains Django application example: https://github.com/gunthercox/ChatterBot/tree/master/examples/django_app

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM