Skip to content

zxdong262/ringcentral-at-all-bot

Repository files navigation

ringcentral-at-all-bot

Add @all function to glip chatgroup with this bot. This is @linjunpop's idea, posted at Good ideas for new bots

Prerequisites$

  • Python3.6+ and Pip3
  • Create the bot App: Login to developer.ringcentral.com and create an public Server/Bot app with permissions: ReadAccounts, Edit Extensions, WebhookSubscriptions, Glip(or more as you may need)

Development & Quick start

# init
bin/init
source ./venv/bin/activate

# 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:9890

# create env file
# .env already created from .sample.env
# just edit .env, set proper setting,
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=

# and goto your ringcentral app setting page, set OAuth Redirect URI to https://https://xxxxx.ngrok.io/bot-oauth

# run local dev server
./bin/start

Test bot

Create your own bot logic

And we have examples bots you can check out as examples:

  • date-time-chatbot : Simple ringcentral chatbot which can tell time/date.
  • assistant-bot : Simple assistant Glip bot to show user/company information, this bot will show you how to access user data.
  • survey-bot : Example survey bot, this bot will show you how to create/use custom database wrapper.

Advanced topics

License

MIT

About

Add AT all function to glip with this bot

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published