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.4.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for aioChatbase-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b32530c1422cb09d3fb0f4edfda1506f89d11ac85f8993e0ca75575cc05e272 |
|
MD5 | 0bc900d780b3541899d22dbcda3a68e1 |
|
BLAKE2b-256 | 9d2c04ea0218e3d73ae3792948bbf6fb3b5053a81f0a58d9144ea26ce8df1548 |