# GPT formula

## Using the =GPT() Formula

With GPT for Sheets, you can effortlessly craft attention-grabbing ad copy, taglines, and subject lines that perfectly align with your brand, captivating and retaining your customers' interest.

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

To get started, select a cell and input then use the following formula

**`=GPT(prompt, value, temperature, model, cache)`**

<table><thead><tr><th width="191">Parameter</th><th width="446">Description</th><th>Default</th></tr></thead><tbody><tr><td><code>prompt</code></td><td>the prompt describing the data you want to generate. (ex: "write a tagline for a waterproof t-shirt brand")</td><td>""</td></tr><tr><td><code>value</code></td><td>The cell you are referring to in your prompt (ex: A1)</td><td>null</td></tr><tr><td><code>temperature</code></td><td>Between 0 (not creative) and 2 (very creative)</td><td>0</td></tr><tr><td><code>model</code></td><td><code>standard</code> or <code>advanced</code> (gpt-4o-mini or gpt-4o)</td><td><code>standard</code></td></tr><tr><td><code>bypassCache</code></td><td>Bypass the cache and query openai again. The results will be differents than before.</td><td>false</td></tr></tbody></table>


---

# Agent Instructions: 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:

```
GET https://support.gpt.space/products/gpt-for-google-sheets/formulas/gpt-formula.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
