# Operate on your records

Operating actions on your table records means that you will be able to change your [table records](https://docs.chatlayer.ai/navigation/tables) depending on what happens inside the conversation between your user and the chatbot.

{% hint style="danger" %}
Please note that Tables cannot be exported at[ bot export](https://docs.chatlayer.ai/navigation/settings/import-export) yet.
{% endhint %}

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FWnUtpM1ECS54jyvMXiKN%2FScreenshot%202024-06-12%20at%2010.13.05.png?alt=media&#x26;token=a41d4b02-06b0-49e2-acd6-2da1cfde2523" alt=""><figcaption><p>Table operation inside an NPS flow.</p></figcaption></figure>

{% hint style="success" %}
Looking for a quick and easy bot template to play with Tables? The [Gym bot](https://docs.chatlayer.ai/tutorials/bot-templates/gym) is a representative use case.
{% endhint %}

## Add a Table operation to your flow

To add a Table operation in your flow:

1. Add an **Action** step to your block.
2. Select **Table operation.**

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2F0TBl2qfc3A94J0I2kE8v%2FScreenshot%202024-03-13%20at%2018.22.18.png?alt=media&#x26;token=c562b25e-b1aa-41e3-bf77-57223d2dcbdc" alt="" width="375"><figcaption><p>Table operation inside of Action step</p></figcaption></figure>

3. Choose the desired **Table operation** from the options.

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FlM2ws9fKwXWkRnWV1c2Q%2FScreenshot%202024-03-12%20at%2017.37.14.png?alt=media&#x26;token=bed1a5be-53b2-4f01-a71f-5804cc384712" alt="" width="375"><figcaption><p>Choose an operation to perform on your table. </p></figcaption></figure>

4. Depending on the operation that you chose, continue with the dedicated tutorial. There are 4 different kinds of operations that you can make on your table records:
   * [**Insert record**](https://docs.chatlayer.ai/navigation/tables/operate-on-your-records/insert-record)**: u**se this operation to add new records to your table. It's perfect for the initial population of table data.
   * [**Update record**](https://docs.chatlayer.ai/navigation/tables/operate-on-your-records/update-record)**: t**his operation allows you to modify existing data within your table. It's useful for keeping your table data current.
   * [**Retrieve record**](https://docs.chatlayer.ai/navigation/tables/operate-on-your-records/retrieve-record)**: w**hen you need to fetch data from your table, use this operation. It enables you to access and use table data within your flow.
   * [**Delete record**](https://docs.chatlayer.ai/navigation/tables/operate-on-your-records/delete-record)**: t**his operation should be used with caution, as it allows for the deletion of records from your table based on specific criteria.

***

{% hint style="success" %}
Looking for a quick and easy bot template to play with Tables? The [Gym bot](https://docs.chatlayer.ai/start-quickly/bot-templates/gym) is a representative use case.
{% endhint %}
