aioChatbase is a library for Chatbase Generic Message API written in Python 3.6 with asyncio and aiohttp. It helps to integrate Chatbase with your chatbot.
python3.6 -m pip install aioChatbase
- Import Chatbase
from aiochatbase import Chatbase- Create cb instance
cb = Chatbase(API_KEY, BOT_PLATFORM)- Register handled message
await cb.register_message(user_id='123456', intent='start')- Register non-handled message
await cb.register_message(user_id='123456', intent='unknown message', not_handled=True)- Register url click
await cb.register_click(url='google.com')- Close instance on your app shutdown
await cb.close()Check more examples at the /examples folder
Feel free to read our Wiki
