Simple ringcentral chatbot framework python extension that add `bot info` command support.
Project description
ringcentral-chatbot-python-ext-bot-info
Simple ringcentral chatbot python extension that add bot info
command support.
Table of contents
Use
Just follow ringcentral-chatbot-python#use-extensions, set EXTENSIONS=ringcentral_bot_framework_extension_botinfo
Prerequisites
- Python3.6+ and Pip3
- Create the bot App: Login to developer.ringcentral.com and create an
public
Server/Bot
app with permissions:ReadContacts, ReadMessages, ReadPresence, Contacts, ReadAccounts, SMS, InternalMessages, ReadCallLog, ReadCallRecording, WebhookSubscriptions, Glip
Quick start
# use virtualenv
pip3 install virtualenv # might need sudo
# init virtual env
virtualenv venv --python=python3
# use env
source ./venv/bin/activate
# install deps
pip install -r requirements.txt
npm i
# run ngrok proxy
# since bot need https server,
# so we need a https proxy for ringcentral to visit our local server
./bin/proxy
# will show:
# Forwarding https://xxxxx.ngrok.io -> localhost:8989
# create env file
cp .sample.env .env
# then edit .env, set proper setting,
# and goto your ringcentral app setting page, set OAuth Redirect URI to https://https://xxxxx.ngrok.io/bot-oauth
RINGCENTRAL_BOT_SERVER=https://xxxxx.ngrok.io
## for bots auth required, get them from your ringcentral app page
RINGCENTRAL_BOT_CLIENT_ID=
RINGCENTRAL_BOT_CLIENT_SECRET=
# run local dev server
./bin/start
Test bot
- Goto your ringcentral app's bot section, click 'Add to glip'
- Login to https://glip-app.devtest.ringcentral.com, find the bot by searching its name. Talk to the bot.
- Edit config.py to change bot bahavior and test in https://glip-app.devtest.ringcentral.com
License
MIT
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
Built Distribution
Close
Hashes for ringcentral_bot_framework_extension_botinfo-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c23e8bc582549d3cdc5b49ee6a65bc6b289960bc55ce866bc8d06a101d0753a2 |
|
MD5 | 23b4263fccc6afa692470fb26fb34a48 |
|
BLAKE2b-256 | c64bb4ddc68bd970002c527b13fab557bb29e95c536f88714c5a5584b37a5076 |
Close
Hashes for ringcentral_bot_framework_extension_botinfo-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dd2d5312f0c769addf9559a14a1ed502ee5cfc77f0e1a51d624bcac010f15e3 |
|
MD5 | 7334e6328487949e42281663bcdff16f |
|
BLAKE2b-256 | 4982d5aef11a1e7ba9545de8c02921a3900ecc5e470ec66ba52d41a61831017b |