# Workflow Table

A workflow table aims to keep the extracted data from a website. It is analogous to a spreadsheet. However, every column in the table is a strict data type.

## Adding Columns

Before you insert data in the table, you need to set a column for the table.

Open a workflow, then click the table icon () in the upper right corner. Enter the column name, then select the Add button. Next, you can choose the type of column data near the column you added.

There are 4 types of data you can choose from: `Text`, `Number`, [`Boolean`](https://en.wikipedia.org/wiki/Boolean_data_type), [`Array`](https://en.wikipedia.org/wiki/Array_data_type), and `Any`.

![Workflow table](https://res.cloudinary.com/chat-story/image/upload/v1666068922/automa/chrome_e9ZIOvxldR_pbauzp.png)

## Entering Data

You can enter data into the table using blocks used to extract data from a website: Get Text and Attribute Value blocks. To enter data using these blocks, click the Edit button, enable the "Insert in Table" option, and choose one of the columns.

![Select column](https://res.cloudinary.com/chat-story/image/upload/v1666076448/automa/chrome_05KtZ48UEI_oyrlmp.png)

Each time you enter data in the table, it will be pushed to the end row of the column. For instance, it happens when you fill a table with such data:

| `title`    | `price` | `urls`                                          | `available` |
| ---------- | ------- | ----------------------------------------------- | ----------- |
| Car        | 4000    | \["<https://en.wikipedia.org/wiki/Car>"]        | true        |
| Motorcycle | 2000    | \["<https://en.wikipedia.org/wiki/Motorcycle>"] | false       |

The table would look like this when the workflow runs a Get Text block and inserts the data into the title column:

| `name`     | `price` | `urls`                                          | `available` |
| ---------- | ------- | ----------------------------------------------- | ----------- |
| Car        | 4000    | \["<https://en.wikipedia.org/wiki/Car>"]        | true        |
| Motorcycle | 2000    | \["<https://en.wikipedia.org/wiki/Motorcycle>"] | false       |
| Boat       |         |                                                 |             |

In the workflow, the table kept an array of objects.

```json
[
  {
    "name": "Car",
    "price": 4000,
    "urls": ["https://en.wikipedia.org/wiki/Car"],
    "available": true
  },
  {
    "name": "Motorcycle",
    "price": 2000,
    "urls": ["https://en.wikipedia.org/wiki/Motorcycle"],
    "available": false
  },
  {
    "name": "Boat"
  }
]
```

## Exporting Table Data

Use the Export Data block to export the table to a file. You can choose to export the table in "Text", "CSV", or "JSON" file format.


---

# Agent Instructions: 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:

```
GET https://docs.goless.com/workflow/workflow-table.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
