webMethods.io ChatGPT Connector!
Tags: chatgpt, webmethods, api, integration
Published: 2023-01-20 13:01:09

---
title: webMethods.io ChatGPT Connector!
published: true
date: 2023-01-19 19:53:34 UTC
tags: chatgpt, webmethods, api, integration
canonical_url: https://tech.forums.softwareag.com/t/webmethods-io-chatgpt-connector/268371
---

## [webMethods.io](http://webMethods.io) ChatGPT Connector

[![07](https://aws1.discourse-cdn.com/techcommunity/original/3X/a/b/ab06d3c378349db7d9e1c72592b0f25963b1c8c2.jpeg)](https://tech.forums.softwareag.com/c/feedback/hecktoberfest/140)

I’m very pleased to welcome ChatGPT into the world of [webMethods.io](http://webMethods.io) Integration and no-code with our brand new ChatGPT connector released today!

Hopefully, by now everybody is familiar with ChatGPT, but if not, you can try it here: [https://chat.openai.com/](https://chat.openai.com/) before you try to build integrations using the connector.

The ChatGPT connector has great coverage of the ChatGPT APIs, with “completions” being the one most people are probably familiar with, allowing you to get ChatGPT generate text content based on your input!

Here’s a simple, but powerful example, before I tell you how to do it yourself!

**We want to send automated emails from an NPS survey, but want these to sound human**  
This example uses a webhook, which is called after completion of an NPS survey.  
The name, email and score are passed into the webhook, and we simply ask ChatGPT to  
“`create me a thank you email for scoring NPS of <score>`”

[![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/d/2/d26feb540dccddc76da3950d083ca77f9945a80f_2_690x431.png)](https://aws1.discourse-cdn.com/techcommunity/original/3X/d/2/d26feb540dccddc76da3950d083ca77f9945a80f.png "image")

ChatGPT does its thing, introducing an element of randomness, and creates a response which feels very personal!

## So how can you do this?

You’ll need an account over at OpenAI.

Head on over and Login to OpenAI here [Overview - OpenAI API](https://beta.openai.com/overview)

One you login, you’ll need to upgrade your account - the free-trial whilst you can create an API key doesn’t have any credit with which you can call the API.  
This will ask you to provide a credit card, but right now **you get $18 of free credit to use within the first 3 months** so you can test this out and see if it adds value to you and your organization.

Once you’ve upgraded the account, you can create an API key from the account menu:

[![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/c/e/ce37e61ffdb8ef85f24ec3af4d3464ed92887aa7_2_690x492.png)](https://aws1.discourse-cdn.com/techcommunity/original/3X/c/e/ce37e61ffdb8ef85f24ec3af4d3464ed92887aa7.png "image")

Then all you need to do is add the ChatGPT connector to a workflow and configure the action.  
Provide you API key, and then configure the input, e.g. in the example above it looks like this:

[![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/2/6/26955bd34d915c984185e9d8b9d05bda0c03b3c0_2_690x482.png)](https://aws1.discourse-cdn.com/techcommunity/original/3X/2/6/26955bd34d915c984185e9d8b9d05bda0c03b3c0.png "image")

If you want to understand more of the inputs the documentation is here:  
[Text completion - OpenAI API](https://beta.openai.com/docs/guides/completion/introduction)

I found the ‘playground’ very useful:  
[Playground - OpenAI API](https://beta.openai.com/playground/p/default-adv-tweet-classifier)

[![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/2/a/2aa83c7d893fa6f111871afbff378267a3000beb_2_690x364.png)](https://aws1.discourse-cdn.com/techcommunity/original/3X/2/a/2aa83c7d893fa6f111871afbff378267a3000beb.png "image")

If you look at the properties on the right, they give you great descriptions about each, e.g.  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/f/9/f96204ba4198fc55a5bfdb7321213cb4c9a5fc82.png)

Armed with this knowledge, you can quickly create your own workflow examples using ChatGPT!

My reponse from the engine for my NPS email was:

> Dear Dave,
> 
> Thank you for taking the time to provide your feedback and scoring a 10 on our Net Promoter Score (NPS). We are so pleased to hear that you are happy with our services and that you would recommend us to others.
> 
> Your feedback is invaluable to us, and we will use it to continue to improve our services and make sure that we are providing the best possible experience for all of our customers.
> 
> Once again, thank you for your feedback and for your continued support.
> 
> Sincerely,  
> Software AG

Hope you have fun and find some great use-cases with the ChatGPT connector!


[Read full topic](https://tech.forums.softwareag.com/t/webmethods-io-chatgpt-connector/268371)