---
title: "Pull text and tables out of a document with an AI agent – superbot.gg"
canonical_url: "https://superbot.gg/use-cases/pull-text-and-tables-out-of-a-document"
summary: "Ask your agent to pull the text and tables out of a file your account holds. A Word table comes back as rows."
---

> Markdown of https://superbot.gg/use-cases/pull-text-and-tables-out-of-a-document. Site index: /llms.txt.

# Pull text and tables out of a document

Point your agent at a file your account holds.
It returns the text and the tables.

[Get the app](https://superbot.gg/download?cta%5Fid=page%5Finstall) [see the real calls](https://superbot.gg/use-cases/pull-text-and-tables-out-of-a-document#call)

## What you get

- The text and the tables of a file your account already holds, named by its artifact id.
- A table comes back as rows, with its header row.
- The two calls below build a Word file, then read it back.

## Ask your agent

Connect superbot once.
Other clients are on [the install page](https://superbot.gg/add).

```sh
claude mcp add --transport http superbot https://api.superbot.gg/mcp -s user
```

With no browser, post to the install route instead.

```sh
curl -fsS -X POST https://api.superbot.gg/mcp/install -d client=claude-code
```

Then your agent makes two calls.
The second names the file the first one made.

```
superbot({"intent": "Build a Word document titled Parts list with one table. Columns: Part, Qty, Unit price. Rows: Bolt 40 0.25, Washer 80 0.05, Bracket 6 3.50."})
```

```
superbot({"intent": "Extract the text and tables from artifact <artifact id from the first reply> and show me the table as rows."})
```

This needs an account.
An agent with none signs you in through [/auth.md](https://superbot.gg/auth.md).
You read back one emailed code.

## Two real calls

Both ran on 2026-10-18 from one test account, the second on the file the first built.
Each reply is the agent's own, with its heading cut.

ask

Build a Word document titled Parts list with one table. Columns: Part, Qty, Unit price. Rows: Bolt 40 0.25, Washer 80 0.05, Bracket 6 3.50.

reply

```
Parts list is built as a Word document with one three-part table.

[artifact (id left out) "Parts-list.docx" application/vnd.openxmlformats-officedocument.wordprocessingml.document 10669]

The table has Part, Qty and Unit price columns with Bolt 40 @ 0.25, Washer 80 @ 0.05 and Bracket 6 @ 3.50.
```

ask

Extract the text and tables from artifact (id left out) and show me the table as rows.

reply

```
Parts list (from Parts-list.docx):

| Part | Qty | Unit price |
| --- | --- | --- |
| Bolt | 40 | 0.25 |
| Washer | 80 | 0.05 |
| Bracket | 6 | 3.50 |

The only text besides that table is the heading, "Parts list".
```

The build, then the read of the same file by its id. The id is left out of both.

## Limits

Files

A file your account already holds, named by its artifact id. The calls here read a Word file.

Needs

A superbot account.

## Related

- [Build a PDF, spreadsheet or deck from a spec](https://superbot.gg/use-cases/build-a-pdf-spreadsheet-or-deck-from-a-spec)
- [Read a web page as clean text](https://superbot.gg/use-cases/read-a-web-page-as-clean-text)
- [All use cases](https://superbot.gg/use-cases)

Two live calls on a test account. Read on 2026-10-18.
