Skip to main content

Asyncio Chatbase API library

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for aioChatbase, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size aioChatbase-1.0.0-py3-none-any.whl (17.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size aioChatbase-1.0.0.tar.gz (10.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page