# AI Table Generator

{% hint style="info" %}
We don’t store any of your prompts, images, or text, nor do we use any of your data to train our language models. As this feature uses GPT, your prompts and images *will be* sent to the OpenAI GPT API. The OpenAI’s API service doesn’t use your data to train its models, unlike some versions of ChatGPT. To learn more, visit [OpenAI’s Privacy page](https://openai.com/enterprise-privacy) (section ‘API Platform FAQ’).
{% endhint %}

Our AI can generate LaTeX tables from natural language prompts or an image you upload. You can try this for free. For higher daily use, upgrade to a Standard or Pro plan.

{% stepper %}
{% step %}
**Access this feature by clicking on the table icon in the toolbar.**

<figure><img src="/files/BHohM2irjVrIumBAQ3M9" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Enter your table requirements as a prompt or drag and drop a table image.**

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

The image you upload can be a simple screenshot; for example, from a spreadsheet with your own data, or from an existing article.
{% endstep %}

{% step %}
**Click 'Generate'**

Overleaf AI then automatically generates the LaTeX code for your table.

<figure><img src="/files/V3BUDb1rlWt8xjzwjKaO" alt="" width="479"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Click ‘Insert’ to add the table to your source code.**

If needed, click ‘Regenerate’ to refine the result.
{% endstep %}
{% endstepper %}


---

# 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://docs.overleaf.com/writing-and-editing/generating-and-inserting-tables/ai-table-generator.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.
