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')
- Close instance
await cb.close()
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.8.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for aioChatbase-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2ec107dac062f01100db1f5719860152189096866580d5ee12127ae611a0c89 |
|
MD5 | a1ed5c15e8ea79e53ee5388dbd5e3b5e |
|
BLAKE2b-256 | 640aa4b0b21d7e5dbbf6b7622ba4ec10221bd610da406acc3ac042741c5293e6 |