Asyncio Chatbase API library
Project description
aioChatbase
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')
Check more examples at /examples folder
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.0.2.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for aioChatbase-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e22643f1dcae0e70064546faba5e5675fd9f55cb57691bff8a85dd2ed5cb631 |
|
MD5 | 54730d67cff655be39db8c857f5ca1ea |
|
BLAKE2b-256 | fd385750b0583b521d8d0850c15ba693c63ef659ca0508595f38fa14e88ad51c |