![]() ![]() ![]() In order for Webex to communicate with our bot, Webex will send REST requests to an endpoint that we have to provide for them. env files work, you can check out the documentation here. env file to define our environment variables, like that access key. Now that we’ve set up our project, we’re going to install two packages: npm install botkit dotenvīotkit is the framework that we can use to interact with Webex Teams, and dotenv allows us to use a. The “npm init” command will ask you a couple of questions, but hitting enter to accept all of the default values will be okay. mkdir welcome-bot cd welcome-bot npm init ![]() If you don’t have Node.js installed, make sure to download it here. To get started, create a new folder and initialize your project. The bot we’re creating will be powered by Node.js. Hold onto this - you’ll need it for later. This will bring you to a page where you can see your bot’s details, including its access token. Once you’re done, click “Add Bot” on the bottom. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |