> For the complete documentation index, see [llms.txt](https://software-help-docs.gitbook.io/knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://software-help-docs.gitbook.io/knowledge-base/software-guide/workflows/premium-triggers-and-actions/workflow-ai-chatgpt.md).

# Workflow AI - ChatGPT

**Workflow AI is powered by** [**ChatGPT**](https://openai.com/chatgpt) **from** [**OpenAI**](https://openai.com/)**. You can now utilize the power of ChatGPT in your workflows.**

<br>

<img src="https://t8631005.p.clickup-attachments.com/t8631005/80aaba3f-d0ee-4bea-b8f3-5e2a14fee2c8/workflow-ai-chatgpt-logo.png" alt="" width="415">

<br>

<img src="https://t8631005.p.clickup-attachments.com/t8631005/1ae25435-34ce-47d1-9ebf-8e923ce6d927/Screenshot%202023-06-15%20at%201.25.14%20PM.png" alt="" width="417">

<br>

<br>

### How can you get access to Workflow AI?

Please contact your support or administrator to enable this feature in your account.

<br>

Please note that once Workflow AI is enabled on your account, it can not be disabled again. However, you may stop using them any time you wish to.

<br>

### **Pricing**

All Workflow AI Actions are charged with a usage-based pricing per execution.

<br>

**The first 100 executions** are FREE for each account.

<br>

### How to setup ChatGPT?

<br>

**Prompt:**

Ask ChatGPT for anything to generate completions for. E.g. Generate a response for customer message.

<br>

<img src="https://t8631005.p.clickup-attachments.com/t8631005/b7044c84-8af4-4f66-82c8-6f40acc1a500/chatgpt%20copy.png" alt="" width="411">

<br>

Dynamic prompts can be created by utilizing custom values

<img src="https://t8631005.p.clickup-attachments.com/t8631005/38598adf-8bf3-4ee8-9af1-c9334387b9cc/Screenshot%202023-06-15%20at%202.24.29%20PM.png" alt="" width="416">

<br>

You can begin by attempting the prompt that has already been loaded into the examples.

<img src="https://t8631005.p.clickup-attachments.com/t8631005/15673012-ab20-441e-9ecd-d27d8cd6c635/Screenshot%202023-06-15%20at%201.29.47%20PM.png" alt="" width="416">

<br>

**Temperature:**

What sampling temperature to use, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.

<br>

<img src="https://t8631005.p.clickup-attachments.com/t8631005/83ab9884-6e8d-41cd-a177-6932f0a20fc1/chatgpt%20copy%202.png" alt="" width="417">

<br>

**Output**

After setting up the ChatGPT, you can use the results in further actions in your Workflow. {{chatgpt.1.response}}

<br>

<img src="https://t8631005.p.clickup-attachments.com/t8631005/ffaa6680-f83e-4765-ad55-279af5cbc5c5/Screenshot%202023-06-15%20at%201.52.30%20PM.png" alt="" width="423">

<br>

### Sample Prompts

**1. Generate response**

Reply to customer message

<br>

Prompt:

```
Your name is {{user.name}}. You are a helpful, creative, clever, and very friendly assistant. Generate a best response email to {{contact.name}} from {{user.name}} for the below message.

{{message.body}}Copy
```

<br>

**2. Generate Email/SMS content**

Dynamic content for emails/sms

<br>

Prompt:

```
Generate email content without subject to promote the product in this link YOUR_WEBSITE to {{contact.name}} from {{user.name}}Copy
```

<br>

<br>

**3. Check Intent**

To check whether the message has positive or negative intent with the power of Workflow AI and take actions accordingly

<br>

Prompt:

```
Just reply only with POSITIVE, if the below message has POSITIVE INTENT and negative if the message has NEGATIVE INTENT

{{message.body}}Copy
```

<br>

**4. Translate**

Translate your default content to contact's language

<br>

Prompt:

```
Translate the below content from English to DESIRED_LANGUAGE

Hey {{contact.full_name}}, Thanks for reaching us. Let us know how we can help you!Copy
```

<br>

### Usage with Triggers and Actions

<br>

Workflow AI - ChatGPT Action can be widely used around the following triggers and actions,

* Customer Replied Trigger
* Inbound Webhook Trigger
* Other triggers like Form/ Order form/ Membership, to generate a custom message for the contact based on a custom field (Eg. translate the default content to customer's language)
* If/else to run different scenarios based on custom field condition or ChatGPT response data (Eg: if intent is POSITIVE?)
* Send the ChatGPT response to slack, email, sms, google sheet or update notes, update custom field, etc,. (Eg: if intent is POSITIVE, send slack message notification)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://software-help-docs.gitbook.io/knowledge-base/software-guide/workflows/premium-triggers-and-actions/workflow-ai-chatgpt.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
