Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Latest commit

 

History

History
52 lines (40 loc) · 1.65 KB

README.md

File metadata and controls

52 lines (40 loc) · 1.65 KB

Chatbase

Supported python versions MIT License PyPi Package Version PyPi status

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

  1. Import Chatbase
from aiochatbase import Chatbase
  1. Create cb instance
cb = Chatbase(API_KEY, BOT_PLATFORM)
  1. Register handled message
await cb.register_message(user_id='123456', intent='start')
  1. Register non-handled message
await cb.register_message(user_id='123456', intent='unknown message', not_handled=True)
  1. Register url click
await cb.register_click(url='google.com')
  1. Close instance on your app shutdown
await cb.close()

Examples

Check more examples at the /examples folder

Wiki

Feel free to read our Wiki