Skype - Weather bot
Clone "WeatherBot" folder
Folder contains WeatherBot process. It accepts webhooks.
Sends information about Bot to the new contact.
Receives air temperature by city name and sends a message.
In case if message does not contain city name or city is specified incorrectly, also if there is some error in process, bot sends appropriate message.
Also WeatherBot defines bot remove action and sends to
Bot removed. node.
Webhook set up
1) Create the app. Receive
2) Connect WeatherBot process to Skype Bot by specifying
AppSECRET of your application
2) Receive WeatherBot process url for Skype Bot
AppSECRET are specified correctly) in your Corezoid account will be automatically added
Skype token folder with two processes -
Get token and
After successful connection
Get token- receives access_token for Skype API and renews it after expiration date, transfers valid access_token to Token storage state diagram.
Skype Token- state diagram is designed for receiving access_token through construction:
3) Create a bot
Microsoft App ID field, specify
Messaging endpoint field - received url of WeatherBot process.
4) Publish your Bot (button
Integration with OpenWeatherMap
Get weather by city node replace test OpenWeatherMAP API key by the one you received in APPID parameter's value.
Testing and launch
Switch to View or Debug mode to see request flow, their transit and process nodes distribution.
As long as your Bot is not published (Status = In review), its functionality is available for the limited amount of users.