> 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>
