Asyncio Chatbase API library
Project description
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.
How to install
python3.6 -m pip install aioChatbase
How to use
- 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()
Examples
Check more examples at the /examples folder
Wiki
Feel free to read our Wiki
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aioChatbase-1.0.0.tar.gz
(10.3 kB
view hashes)
Built Distribution
Close
Hashes for aioChatbase-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a68c87666a7d566f5ef466449cd276b3de177973245e7b40b6dc4b8bd04be529 |
|
MD5 | e21a9b1770771ed1932949b3e0c2f8a4 |
|
BLAKE2b-256 | fb319876350e33911079aa7fbdc8bd953b377363686bb8f38c2acea68e366470 |