ahmadfaizalbh / Chatbot

Python ChatBot 💬
https://chatbot.obbne.com
MIT License
774 stars 320 forks source link

How i can get the text of the response of the bot? #55

Closed Lawful830 closed 3 years ago

Lawful830 commented 3 years ago

So im trying to transfer this bot to window with text, but i really dont know how?

ahmadfaizalbh commented 3 years ago

If you are building application for deployment then make sure to use DB to override python data structure so that you can serve through http/https and all state, topic, conversations and memory are in DB associated with user you can checkout ChatBotAI-HTTPServer or WebBot using Django wrapper

Basically respond method takes user message (test) and session_id (text: user name) and returns a text

bot_response = chat.respond(user_message, session_id)
ahmadfaizalbh commented 3 years ago

if you are planning to use it with Microsoft bot framework then checkout Microsoft-chatbot

Lawful830 commented 3 years ago

Thanks