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.6.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for aioChatbase-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa6497bfc8065a3045c4150210be11fcf08fc09d346a131a6b60cc3e2957811e |
|
MD5 | cea611218af11bc34d762aa50d6f4079 |
|
BLAKE2b-256 | 8e5623f76d037067321de42407d97df68f7523df5f0817a8532e0bb4c8db730e |