# Lookup table

> Upload a list that rarely changes and your AI agent looks up the matching row, with no API needed.

Source: https://askmavis.co/help/lookup-table  
Collection: Actions and procedures  
Last updated: 2026-12-05

A **Lookup table** lets your AI agent answer from a list you upload. It's made for information that rarely changes, for example:

- stockists or delivery zones by postcode
- warranty or serial number checks
- size, fit and compatibility charts
- price lists
- course or event dates
- member numbers

You don't need an API: export a CSV, upload it, and the agent finds the matching row.

A table only knows what you last uploaded. For things that change every day, like order status, use a [template](https://askmavis.co/help/action-templates) that asks your store directly instead.

## Set it up

1. Open your agent, go to **Actions**, click **Add action** and choose **Lookup table**.
2. Describe **When to use** it, for example "When the visitor asks whether their kettle is still under warranty".
3. Click **Upload CSV**, or paste rows straight from a spreadsheet and click **Use these rows**. The first row must hold the column names.
4. Under **Look up by**, choose the column the visitor gives you, like **Serial number**.
5. Under **Also check**, choose a second column the visitor must also give, like **Email**. We recommend this for anything personal.
6. Under **Columns the AI can share**, pick what the agent may tell the visitor.
7. Save, then publish your agent.

A table can have up to 2,000 rows and 12 columns, and up to 100 KB. Uploading again replaces the whole table, so keep your spreadsheet as the master copy.

## Keep it up to date

The editor shows when the rows were **Last updated**. Hover over the date to see the exact time. When your list changes, upload it again.

## How matching works

- Matching ignores capital letters, spaces, dashes, dots, slashes and a leading `#`, so `#nw 10021` finds `NW-10021`.
- With **Also check**, the visitor must give both values and both must match the same row. A wrong value looks the same as no match, so nobody learns whether a row exists.
- The check column is never shared with the visitor.

If nothing matches, the AI agent asks the visitor to check what they typed. It never guesses an answer.

## Related

- [Start a custom action from a template](https://askmavis.co/help/action-templates)
- [What actions do](https://askmavis.co/help/actions-overview)
