> For the complete documentation index, see [llms.txt](https://docs.goless.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.goless.com/blocks/premium/chatgpt.md).

# ChatGPT Block

<figure><img src="/files/owHE1j1KiPSEmuB3ey5Q" alt=""><figcaption></figcaption></figure>

To use the chatGPT block in your workflow, you must purchase a [subscription](https://goless.com/pricing).

When inserting the chatGPT block into the workflow, you must choose the AI version that best suits your purposes (only version 3.5 turbo is available for now).

<figure><img src="/files/J9Fdy40pL1JSrQpjWeEm" alt="" width="321"><figcaption></figcaption></figure>

For further use in our example, set the [Get text](https://docs.goless.com/blocks/web-interaction/get-text-block) block before the chatGPT block to send text to the chatGPT block.

In the [Get text](https://docs.goless.com/blocks/web-interaction/get-text-block) block, set the parameters of the text you want to pass to the chatGPT block, and store the data in a [variable](https://docs.goless.com/workflow/variables).

<figure><img src="/files/ldkRTl8SK9nW9TtM3YZ3" alt="" width="321"><figcaption></figcaption></figure>

Next, use a [variable](https://docs.goless.com/workflow/variables) from the [Get text](https://docs.goless.com/blocks/web-interaction/get-text-block) block and pass it to chatGPT and add an explanation of what the neural network should do with the text it received from the variable: e.g. "Rewrite: {{ globalData.key }}".

<figure><img src="/files/68n4BJ11rk1bBiu8u7CP" alt="" width="316"><figcaption></figcaption></figure>

Next, you need to save the chatGPT response in a [variable](https://docs.goless.com/workflow/variables) and pass it to the next [Forms](https://docs.goless.com/blocks/web-interaction/forms-block) block.

{% hint style="info" %}
Example: the data transfer will take place in the [Forms](https://docs.goless.com/blocks/web-interaction/forms-block) block, but you can use any block that can accept parameters.
{% endhint %}

<figure><img src="/files/P6t1QibW3zlslYs1oK1W" alt="" width="563"><figcaption></figcaption></figure>

In the [Forms ](https://docs.goless.com/blocks/web-interaction/forms-block)block you need to pass the data via a [variable](https://docs.goless.com/workflow/variables) from chatGPT and insert it into the desired form, in your workflow.

<figure><img src="/files/rMdXEEWOG623ak1G791z" alt="" width="325"><figcaption></figcaption></figure>


---

# 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://docs.goless.com/blocks/premium/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.
