Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Latest commit

 

History

History
75 lines (44 loc) · 3.93 KB

README.md

File metadata and controls

75 lines (44 loc) · 3.93 KB

THIS REPO IS DEPRECATED

Please visit our new Rivet sample app.


Catbot

Use of this sample app is subject to our Terms of Use.

This is a sample Chatbot app using the Zoom Chatbot CLI NPM Package.

Zoom Chatbot Message Action

To create this Chatbot from scratch with the Chatbot CLI, click here to follow the step by step tutorial on our docs.

To run the completed Chatbot code locally, continue reading below.

Local/Development Setup

To run the completed Chatbot locally, follow these steps,

  1. In terminal:

    $ git clone https://github.com/zoom/catbot.git

    $ cd catbot

    $ npm install

    $ ngrok http 3000

  2. If you haven't already, head over to https://marketplace.zoom.us/develop/create and create a Chatbot named catbot.

  3. Add your https Ngrok URL and slash command to your Chatbot app in the Zoom App Marketplace:

    Input Description Example Value
    Development Redirect URL for OAuth It can be found in marketplace under App Credentials. https://{{subdomain}}.ngrok.io/auth
    Whitelist URL It can be found in marketplace under App Credentials. https://{{subdomain}}.ngrok.io
    Deauth Endpoint URL It can be found in marketplace under Information. https://{{subdomain}}.ngrok.io/deauth
    Development and Production Bot Endpoint URL It can be found in marketplace under Features. https://{{subdomain}}.ngrok.io/command
    Slash Command How you address your Chatbot. Currently slash commands need to be globally unique, so you won't be able to use the word catbot. It can be found in marketplace under Features. catbot123

    NOTE: Make sure to click "Save" after entering the Development and Production Bot Endpoint URL and the Slash Command.

  4. Open the .development.env file and fill in the following values:

    Key Description Example Value
    zoomClientId Development Client ID of your Chatbot. It can be found in marketplace under App Credentials. UD20wEqgQMyNmiR5IhinXA
    zoomClientSecret Development Client Secret of your Chatbot. It can be found in marketplace under App Credentials. zlqppuDRGzQzW9j2eBpbUmyREPSbuTSU
    zoomVerifyCode Verification Token of your Chatbot. It can be found in marketplace under Features. uaJs0IZvTIC0aP_Vs6d6IQ
    zoomBotJid Development Bot JID of your Chatbot. It can be found in marketplace under Features. v1wjk1u1acrraq_mhwf2gclg@xmpp.zoom.us
    zoomRedirect_uri Your ngrok URL with the auth path appended to the end. https://{{subdomain}}.ngrok.io/auth
    catApiKey Get your Cat API Key here. 71c45d-530d-4280-96f8-6ec16f2315

    Save and close the .development.env file.

  5. In terminal:

    $ npm run start

  6. On your App Marketplace Dashboard, go to the Local Test page and click Install. After you click the Authorize button, you should be taken to your redirect url.

  7. Now that your Chatbot is installed on your Zoom account, go to a Zoom Chat channel and type,

    /catbot picture

    You should see a picture of a cat!

Need help?

If you're looking for help, try Developer Support or our Developer Forum. Priority support is also available with Premier Developer Support plans.