In this lab, we will be creating our own fake news bot on Spark.
Be sure you are familiar with the architecture of the environment that all of this is taking place in.
First make sure you have everything necessary to continue:
- Laptop
- A GitHub account
- A Spark developer account
- API documentation: https://docs.umbrella.com/developer/investigate-api/
The lab is then broken into three sections
First head over to http://www.developer.ciscospark.com and sign in. Sign-up if you don't already have access!
-
Click My Apps in the top right.
-
Click the + in the right to create a new bot and select the option to create a bot.
- You can now choose your display name as well as bot username.
Note: the bot username is how you will actually invite your bot to join a Spark room. It will be [email protected]
Add an icon but be sure it is at least 512x512 pixels large. Google Image search may come in handy here.
- Click
- You will then see an Access Token. This is very important as you can only copy this once. COPY YOUR ACCESS TOKEN If you don't do this, you may have to regenerate it later. Put this somewhere you can copy it again later.
- Head on over to http://www.ciscopipeline.io
- Click Sign in to begin
- Login with your GitHub credentials
- Login at http://www.ciscopipeline.io
- Click New SparkBot at the top right
- Provide a unique bot name
- Paste in your token from CiscoSpark
- Provide a description for your bot
Your bot can consist of static text actions or be based on Python. We will be using Python for this exercise.
- Click the Code tab
- You will see a Code Library to the right.
- Click Append to Code next to the Cisco Umbrella; Fake News Detector
Refresh the page and you should see your new bot
- In Cisco Spark, Web version or thick client, Create a new Space