> For the complete documentation index, see [llms.txt](https://docs.overleaf.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overleaf.com/writing-and-editing/generating-and-inserting-tables/ai-table-generator.md).

# 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 %}

{% hint style="success" icon="graduation-cap" %}
To learn more about how to use the Table generator in your writing, enroll in our free, self-paced course [Leveraging Overleaf AI](https://learn.overleaf.com/leveraging-overleaf-ai).
{% endhint %}


---

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