|
|
# Intro
|
|
|
In the previous examples, we have been working with our personal bearer token. If we want to create a real service, maybe we do not want to interact with other people in our very own name, but want some kind of proxy: **a bot**.
|
|
|
|
|
|
As the functionality of a bot might be a little bit more complicated, we are not going to use the API directly anymore, we are going to use a framework.
|
|
|
|
|
|
A framework is a wrapper of code wrapped around the API. So we do not need to build and send out HTTP-Requests directly anymore, we can use premade functions that will take care of the details.
|
|
|
For example, to send a message you can simply use the code `bot.say("Hello World");`, and the framework will take care of the rest.
|
|
|
|
|
|
The basic API framework provided by Cisco to use the API with JavaScript ist the [Webex JS SDK](https://github.com/webex/webex-js-sdk).
|
|
|
This SDK can be wrapped with yet another framework on an even higher level: [The Webex Node Bot Framework](https://github.com/WebexSamples/webex-node-bot-framework).
|
|
|
|
|
|
We are going to use the latter.
|
|
|
|
|
|
|
|
|
# Create a bot
|
|
|
* Visit https://developer.webex.com/my-apps and click `Create a New App`
|
|
|
* Choose `Create a Bot` on the next page
|
... | ... | |