Create
Create
Create Your Own GitHub Enterprise Bot Integrated with Webex
This article explains how you can create your own Webex-integrated GitHub Enterprise bot.
anchorPrerequisites
anchorBefore continuing, you will need access to a few developer resources and the Node.js framework:
- GitHub Account: You'll need GitHub account: https://github.com/signup.
- Cisco Webex Account: You'll need a Webex developer account if you don't have one already. You can create one on the Webex Developer Portal: https://developer.webex.com/.
- Node.js: To create the Webex bot, you'll be leveraging the Webex Node Bot framework. Make sure you've got Node.js installed on your platform of choice.
anchorBuild the Bot
anchorOnce you have your accounts set up and Node.js installed, follow these steps to create your own GitHub bot:
- Login into your GitHub administrator account.
- Select the Settings menu and then select Webhooks in the left panel.
- Select the Add webhook button.
- Configure the webhook by pasting the webhook URL you've created for the bot and select Finish. Your bot listens to this webhook for triggered events.
- Set the Content type to
application/json
. - Enter additional information as needed in the other fields, make sure Active is enabled, and select Add webhook.
- Log in to Webex for Developers.
- Create your Webex bot at: https://developer.webex.com/my-apps/new/bot.
- Note down the bot's access token, which you'll use to make API requests.
anchorUse the Webex Node Bot Framework
anchorTo simplify the creation of your bot, you can use the Webex Node Bot Framework available on GitHub. This framework provides a robust and easy to use platform for handling bot interactions:
For any queries related to bot framework you can join the following Webex space: Webex-Node-Bot-Framework Support.
anchorAdditional Resources
anchorFor more information on GitHub and Webex, see:
- GitHub API Documentation: https://docs.github.com/en/rest/quickstart
- Webex API Documentation: https://developer.webex.com/docs