Webex_ChatGPT

Disclaimer

Note that this repository enables interaction with third-party Generative AI platforms outside of Cisco’s control, and users should review those third-party terms and privacy statements to understand how data is processed, stored, or used, including input data.

Description

Webex Teamspace as the UI for ChatGPT. This program simply illustrates how to integrate Webex teamspace with ChatGPT and Nexus Dashboard Insights API. Whenever the user type in a message into the teamspace, it will trigger a Webex Webhook to execute. The Webhook will retrieve the message from the room and interprete it. Several operations are defined as below:

  1. "HELP" - print out the functions supported by the webhook
  2. "ChatGPT" - followed by a question; the webhook will call the ChatGPT on behalf of the user via the OpenAI ChatGPT API and send the result back to the teamspace.
  3. "Anomaly" or "Advisory" - use Nexus Dashboard Insights API to retrieve any anomlies or advisories from the designated Nexus Dashboard Insights.
  4. "Anomaly+ChatGPT" or "Advisory+ChatGPT" - on top of action 3, the webhook will call ChatGPT for the reason and resoluton of the anomalies or advisories.

Below is the logic flow diagram:

image

Installation

  1. Modify the webhook.py with the corresponding roomID, the IP address of your Nexus Dashboard Insights, the bearer tokens for Webex and OpenAI API and the credentials.
  2. Deploy your webhook in an environment so that it can be assessed by a URL.
  3. Register the webhook URL to webex teamspace.

Usage

  1. Call ChatGPT from Webex Team Space, simply type "ChatGPT " followed by the question to be asked:
    image

  2. On the webex team space UI, type "Advisory" to tell the webhook to retrieve advisories from the designated Nexus Dashboard Insights:
    image

  3. To feed the Nexus Dashboard Insights' Advisories into chatGPT, simply type "Advisory+ChatGPT":
    image

Known Issues

The question to be submitted to ChatGPT cannot include attachments.

View code on GitHub

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Please note that some of the repositories in Code Exchange may be enabled to interact with third-party Generative AI platforms outside of Cisco’s control, and users should review those third-party terms and privacy statements to understand how data is processed, stored or used, including input data.