> ## Documentation Index
> Fetch the complete documentation index at: https://www.activepieces.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Tables

> Store data inside Activepieces and use it from flows and agents

Tables hold structured data inside Activepieces, so a flow has somewhere to put results and an agent has something to look things up in. No external database to run.

## Why they exist

Automations usually need somewhere to remember things: which leads you already contacted, which invoices are unpaid, what the agent decided last week. Without that, every flow starts from nothing.

> [card] [Fields and records](https://www.activepieces.com/docs/tables/fields.md)
>
> Five field types, and how data gets in.

> [card] [Use in flows](https://www.activepieces.com/docs/tables/in-flows.md)
>
> Read, write, and start flows when data changes.

> [card] [Use with agents](https://www.activepieces.com/docs/tables/with-agents.md)
>
> Turn a table into an agent's knowledge base.

> [card] [Import and export](https://www.activepieces.com/docs/tables/import-export.md)
>
> Bring a CSV in, take your data out.

## A shape that comes up often

1. A flow collects something, such as inbound leads, and **writes a record**
2. A **new record** trigger starts a second flow to enrich or route it
3. An **agent** uses the same table as a knowledge base when answering questions about it

The table is what lets those three share state.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.