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.

Source Distribution

aioChatbase-1.0.0.tar.gz (10.3 kB view hashes)

Uploaded Source

Built Distribution

aioChatbase-1.0.0-py3-none-any.whl (17.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page