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-0.1.0.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for aioChatbase-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0374594e27bc6056995c2792679ff6e0240a72be35ac5fe9f26c6e166326d35b |
|
MD5 | 25cf3217f5f918038a52dc246aeb002f |
|
BLAKE2b-256 | a40784acd24fedaa3f2f9904a6729e2652e42ec5359bf7e1717f9a0be699db30 |