![]() ![]() ![]() Return f'Request received on local port /people/me', headers=self.headers).json(). For this we use Flask, a web framework module written in Python that lets you develop web applications easily. This flow does the following: Make an API call. When the bot receives a message and Webex Teams POSTs to the API, a flow is triggered. You create a webhook that makes Webex Teams POST to that API when the bot receives a message. You create an API on Node-RED for Webex Teams to POST to. The chatbot.py application is a http server used to listen for http GET/POST requests received from a WebEx bot. How does it work The idea is as follows: You create a Bot. You can even sync relevant news and updates with your entire team by connecting the bot to a space where you can discuss posts together in real-time. Log in to add app + Never miss a post from your favorite feeds by deploying the RSS bot for Webex Teams. Open Visual Studio Code and create the Python code for a service to listen for http requests that are received from a bot Get instant updates on any web feed with the RSS bot for Webex Teams. We wish to write an app than can receive and handle notifications received from WebEx Teams. Create application to listen for http requests received from a bot You can now send messages to the bot (but because we have not yet set up our code it will not yet respond.)ģ. Go back into and create a new Space using the username you just created. Save it somewhere given that this will be lost on closing the browser (though you can always generate and use a new one.) In the dashboard select visit help centre.Ĭopy the bot access token and store it somewhere. Here is a useful link on getting started with this topic if you find the Cisco documentation / training somewhat confusing, as I did:īasically this example shows you how to create a python application to listen for incoming messages coming from WebEx chat bot, and on receiving a message, create a new POST REST API to send a reply to the Chat Op. You need an active WebEx Teams account if you have not already set one up: ChatOps enables you to perform operation tasks on the infrastructure. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |