webMethods.io Embed ChatGPT Bot for Cisco Webex Teams
Tags: chatgpt, webmethods, cisco, integration
Published: 2023-03-08 15:30:45

---
title: webMethods.io Embed ChatGPT Bot for Cisco Webex Teams
published: true
date: 2023-02-15 05:23:27 UTC
tags: ChatGPT, webmethods, cisco, integration
canonical_url: https://tech.forums.softwareag.com/t/webmethods-io-embed-chatgpt-bot-for-cisco-webex-teams/272682
---

## [webMethods.io Embed](https://www.softwareag.cloud/site/extend/webmethods-io-embed.html#/) ChatGPT<sup><strong>®</strong></sup> Bot for Cisco<sup><strong>®</strong></sup> Webex Teams

 

## AI Driven Innovations

[![hackathon-illustration-right](https://global.discourse-cdn.com/techcommunity/optimized/3X/b/a/ba91535fed439aedd1a83108cc1c6ad20438a4ff_2_375x375.jpeg)](https://global.discourse-cdn.com/techcommunity/original/3X/b/a/ba91535fed439aedd1a83108cc1c6ad20438a4ff.jpeg "hackathon-illustration-right")

**Are you looking for driving your innovations around Artificial Intelligence with ChatGPT by**

- Building out of the box integration capabilities with ChatGPT<sup><strong>®</strong></sup>  
for your own products or applications and/or any 3rd party applications

- Ecosystem driven innovations and solutions(integrations) developed by your partners to drive further revenue growth.

All this “**WITH YOUR OWN BRAND EXPERIENCE and EMBEDDED into your own applications, dev portals and integration marketplaces** ”

## Use Case

Here is an **example** showcasing how you can achieve the same with our [webMethods.io Embedded iPaaS](https://www.softwareag.cloud/site/extend/webmethods-io-embed.html#/) capabilities.

We built a **ChatGPT<sup><strong>®</strong></sup> Bot for Cisco<sup><strong>®</strong></sup> Webex Teams** where in user can ask **ChatGPT<sup><strong>®</strong></sup>** to generate text content based on any input leveraging the **[OpenAI<sup><strong>®</strong></sup> Completions API](https://platform.openai.com/docs/api-reference/completions) along with the Davinci model under the GPT-3 AI models family.**

We say “ **Hi** ” to **ChatGPT<sup><strong>®</strong></sup> Bot in Cisco® Webex Teams** and **ChatGPT<sup><strong>®</strong></sup>** asks **How Can I help you? Ask me a Question.**

[![Cisco Webex Teams ChatGPT Bot - 1](https://global.discourse-cdn.com/techcommunity/optimized/3X/9/6/968a365405f70d81851d7a181f51dc3e5260d70c_2_690x274.png)](https://global.discourse-cdn.com/techcommunity/original/3X/9/6/968a365405f70d81851d7a181f51dc3e5260d70c.png "Cisco Webex Teams ChatGPT Bot - 1")

We asked **ChatGPT<sup><strong>®</strong></sup>** to **Write an essay on Artificial Intelligence** and below is the response ![:slight_smile:](https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12 ":slight\_smile:")

[![Cisco Webex Teams ChatGPT Bot - 2](https://global.discourse-cdn.com/techcommunity/optimized/3X/9/8/9801e71675613efa96248647e17351dabb139c15_2_690x451.png)](https://global.discourse-cdn.com/techcommunity/original/3X/9/8/9801e71675613efa96248647e17351dabb139c15.png "Cisco Webex Teams ChatGPT Bot - 2")

## How To?

To achieve the same, we have done the following:

### Create a Bot in Cisco Webex

- Login to [https://developer.webex.com/](https://developer.webex.com/)  
  
- Select [My Webex Apps](https://developer.webex.com/my-apps) from the menu under your avatar at the top of this page, click “Create a New App” then “Create a Bot” to start the wizard.   
  
- You’ll be asked to provide some basic information about the bot: bot name, bot username, and an icon. These fields  
are end-user facing, so make them as descriptive as possible.  
  
- Once you’ve filled out the registration form click “Add Bot”, and if everything goes smoothly you’re all set! You’ll be given an access token for the new bot. **And your Bot username will be your Bot email.**  
  

[![ChatGPT Bot Cisco Webex Add Bot](https://global.discourse-cdn.com/techcommunity/optimized/3X/e/7/e7eec8596cd0cd0eaeb953c044d01ab3ac49c40a_2_596x500.png)](https://global.discourse-cdn.com/techcommunity/original/3X/e/7/e7eec8596cd0cd0eaeb953c044d01ab3ac49c40a.png "ChatGPT Bot Cisco Webex Add Bot")

### Get Cisco Webex Bot Person ID

- Open Browser and Go to the Webex API [People - List People | Webex for Developers](https://developer.webex.com/docs/api/v1/people/list-people) and in the email field enter bot email and click on Run.

- You will get a response and inside the response copy the iteam[0].id value. This will be your bot person id. We will need this id to configure the bot in our embed portal

[![image](https://global.discourse-cdn.com/techcommunity/optimized/3X/4/4/44741795ccc678249107df6096b93aaecbf36194_2_510x500.jpeg)](https://global.discourse-cdn.com/techcommunity/original/3X/4/4/44741795ccc678249107df6096b93aaecbf36194.jpeg "image")

### Bot Configuration on [webMethods.io Embed](https://www.softwareag.cloud/site/extend/webmethods-io-embed.html#/) Portal   
  

- Login to your [webMethods.io Embed](https://www.softwareag.cloud/site/extend/webmethods-io-embed.html#/) tenant.   
  
- Navigate to **Settings > Bots**.  
  
- Click on the **Add Bot** button.

[![image](https://global.discourse-cdn.com/techcommunity/optimized/3X/5/6/561945a4796c4c8d2775a74d15bf1e6d84165e40_2_690x98.png)](https://global.discourse-cdn.com/techcommunity/original/3X/5/6/561945a4796c4c8d2775a74d15bf1e6d84165e40.png "image")

- The **Add New Bot** Dialog appears   

- Provide the Bot Details as below as well as any other relevant details 

  - Bot Name: Provide a suitable name for the bot.

  - Bot Description: Provide a short description about the bot.

  - Bot Type: the type of bot you want to add. Select this field as adaptive cards bot.

- As soon as you select a bot type, other fields related to the selected bot are rendered in the window. Enter details for the additional fields that appear.

  - Bot Token: Bot access token

  - Bot Email ID: Bot username

  - Bot Person ID: The Cisco Webex Bot Person ID we got in the Get Cisco Webex Bot Person ID step

  - Click **Add** to create a new bot.

[![image](https://global.discourse-cdn.com/techcommunity/optimized/3X/7/5/759d4bd94b079ae5c9ccdc51704c5a358a2b8e83_2_526x500.png)](https://global.discourse-cdn.com/techcommunity/original/3X/7/5/759d4bd94b079ae5c9ccdc51704c5a358a2b8e83.png "image")

### Integrations or Workflows

We built 3 Integrations or Workflows

#### ChatGPT Hi Command Workflow

This workflow gets triggered when a user types in hi command in the ChatGPT bot and responds with the adaptive card for asking a question JSON by using the Cisco<sup><strong>®</strong></sup> Webex Teams Bot connector. The adaptive card you can design using the Microsoft<sup><strong>®</strong></sup> [Designer | Adaptive Cards](https://adaptivecards.io/designer/) and in the submit button action you provide the name of the **ChatGPT Submit Command Workflow**.

- **Cisco Bot Adaptive Card**

[![ChatGPT Bot Ask Question Adaptive Card](https://global.discourse-cdn.com/techcommunity/optimized/3X/2/7/27a0810783b8784e0902340080f99f1412b0469c_2_690x377.png)](https://global.discourse-cdn.com/techcommunity/original/3X/2/7/27a0810783b8784e0902340080f99f1412b0469c.png "ChatGPT Bot Ask Question Adaptive Card")

- **Cisco Bot Adaptive Card Code Snippet**

```
let content= {
    "body":[ {
        "items": [
          {
              "type": "ColumnSet",
              "columns": [
                  {
                      "type": "Column",
                      "width": "stretch",
                      "items": [
                          {
                              "text": " **Hello! I am a bot powered by Chat Gpt**", 
                              "type": "TextBlock",
                              "wrap": true
                          }
                      ]
                  }
              ]
          },
          {
              "type": "ColumnSet",
              "columns": [
                  {
                      "type": "Column",
                      "width": "stretch",
                      "items": [
                          {
                              "text": "How can I help you?",
                              "type": "TextBlock",
                              "wrap": true
                          }
                      ]
                  }
              ]
          },
          {
              "type": "ColumnSet",
              "columns": [
                  {
                      "type": "Column",
                      "width": "10px"
                  },
                  {
                      "type": "Column",
                      "width": "stretch",
                      "items": [
                          {
                              "text": "Type **"+"hi"+"** For asking a question",
                              "type": "TextBlock",
                              "wrap": true
                          }
                      ]
                  }
              ]
          },
          {
              "type": "ActionSet",
              "actions": [
                {
                    "type": "Action.ShowCard",
                    "title": "Ask me a question",
                    "card": {
                        "type": "AdaptiveCard",
                        "body": [
                      
                            {
                                "type": "Input.Text", "id": "t1",
                                "placeholder": "type your question here"
                            },
                       
                            
                              {
            "type": "ActionSet", "spacing": "Small", "actions": [
            {
            "type": "Action.Submit",
            "title": "Submit",
             "data": {
                            "command": "chatgptsubmitcommand"
                        }
            }
            ]
            }
                        ]
                    },
                   
                }
            ],
          },
          {
              "type": "ColumnSet",
              "columns": [
                  {
                      "type": "Column",
                      "width": "stretch",
                      "items": [
                          {
                              "text": "Head to my listing in [App Hub](apphub.webex.com) for more info.\n Need a human? Reach out to [our support team](devsupport@webex.com).",
                              "type": "TextBlock",
                              "wrap": true,
                              "size":"Small"
                          }
                      ]
                  }
              ]
          }
        ],
        "type": "Container"
      }]
 
,
    
    "type": "AdaptiveCard",
    "version": "1.2",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
};
var card = [{
    "contentType": "application/vnd.microsoft.card.adaptive",
    "content" : content
}]

 

 

$export(null, { card });

```

- **ChatGPT Hi Workflow**

[![chatgpthi workflow](https://global.discourse-cdn.com/techcommunity/optimized/3X/8/4/84b5953f9428b5a5b352a0f12580619e6ae095c4_2_690x341.png)](https://global.discourse-cdn.com/techcommunity/original/3X/8/4/84b5953f9428b5a5b352a0f12580619e6ae095c4.png "chatgpthi workflow")

#### ChatGPT Submit Command Workflow

This workflow takes the requests of any user asking questions and captures the user question and user room id and invokes the **Cisco Webex teams ChatGPT integration Workflow**.

[![image](https://global.discourse-cdn.com/techcommunity/optimized/3X/1/9/19d9ccb19db5315ffb3b2dc210bc583dc67cbd7e_2_690x339.png)](https://global.discourse-cdn.com/techcommunity/original/3X/1/9/19d9ccb19db5315ffb3b2dc210bc583dc67cbd7e.png "image")

[![image](https://global.discourse-cdn.com/techcommunity/optimized/3X/0/5/05af585c8ce19d5acf7a5227436fe39503b00fc0_2_690x383.png)](https://global.discourse-cdn.com/techcommunity/original/3X/0/5/05af585c8ce19d5acf7a5227436fe39503b00fc0.png "image")

#### Cisco Webex teams ChatGPT integration Workflow

This workflow is where we have passed the question asked by the user to the ChatGPT using the ChatGPT<sup><strong>®</strong></sup> connector and then map the response from ChatGPT as a messages to the Cisco<sup><strong>®</strong></sup> Webex Teams Bot connector to show in the Cisco Webex teams bot

[![ChatGPT Cisco Webex Teams Integration](https://global.discourse-cdn.com/techcommunity/optimized/3X/6/0/60bb180126c5db4fd7146aeefe6e056e75352ea2_2_690x388.png)](https://global.discourse-cdn.com/techcommunity/original/3X/6/0/60bb180126c5db4fd7146aeefe6e056e75352ea2.png "ChatGPT Cisco Webex Teams Integration")

- We configured a Webhook trigger to get the payload from Cisco Webex Teams Bot when user asks a Question and clicks on Submit button. The payload contains “the question” and the “Person ID” details  
  
  

- We Configured the ChatGPT Connector by
  - Configuring the ChatGPT account with the API key and then
  - Selected the Completions action which invokes the OpenAI completion API and
  - Mapped & Set the following values
       - Mapped the Webhook trigger payload text value which is the question asked by the user to the prompt input field
       - model field as “text-davinci-003”
       - temperature as “0.4”
       - max_tokens as “4000”

to pass the question to ChatGPT connector

[![image](https://global.discourse-cdn.com/techcommunity/optimized/3X/0/1/014ecce51e6807e6ca983f2591de41dda65eb636_2_690x382.png)](https://global.discourse-cdn.com/techcommunity/original/3X/0/1/014ecce51e6807e6ca983f2591de41dda65eb636.png "image")

- We configured Cisco<sup><strong>®</strong></sup> Webex Teams<sup><strong>®</strong></sup> Bot connector by
  - Configuring the Cisco<sup><strong>®</strong></sup> Webex Teams<sup><strong>®</strong></sup> Account using Access Token
  - Selecting the Post New Message Action
  - Mapping the response from ChatGPT Connector to the Cisco<sup><strong>®</strong></sup> Webex Teams<sup><strong>®</strong></sup> Bot  
Post Message action.

[![image](https://global.discourse-cdn.com/techcommunity/optimized/3X/b/b/bb0526d873f449b7d552e0df428783c682c2813f_2_690x305.png)](https://global.discourse-cdn.com/techcommunity/original/3X/b/b/bb0526d873f449b7d552e0df428783c682c2813f.png "image")

## Want to learn more

- How to create integrations using ChatGPT<sup><strong>®</strong></sup> connector @ [webMethods.io ChatGPT API Connector Available Now!](https://tech.forums.softwareag.com/t/webmethods-io-chatgpt-api-connector-available-now/268371)

- [Visit our website](http://softwareag.com/embed) to learn more about [webMethods.io](http://webMethods.io) Embed and request a custom demo.

- Know more about our [webMethods.io Embedded iPaaS](https://www.softwareag.cloud/site/extend/webmethods-io-embed.html#/)
 - [webMethods.io Embed Intro](https://docs.webmethods.io/embed/quickstart/overview/#gsc.tab=0)
 - [Why Embedded Integration is a Game Changer](https://www.softwareag.com/content/dam/softwareag/global/marketing-material/en/whitepaper/webmethods/wp-webmethods-io-embed-saas-vendors-en.pdf.sagdownload.inline.1632340701382.pdf)
 - [webMethods.io Embed Bots Development](https://docs.webmethods.io/embed/bots/working_with_bots/#gsc.tab=0)
 - [webMethods.io Embed Documentation](https://docs.webmethods.io/embed/landing/home/#gsc.tab=0)

[Read full topic](https://tech.forums.softwareag.com/t/webmethods-io-embed-chatgpt-bot-for-cisco-webex-teams/272682)