> For the complete documentation index, see [llms.txt](https://docs.myalice.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.myalice.ai/myalice-guide-arabic/data-lab-and-analytics/advanced-datalab/collect-and-store-data-in-data-lab.md).

# Add, Collect or Store Data in Data Lab

## Store Data in a Datalab

There are three ways you can add data to your Datalab.

### 1. Add Data Manually

Go to Datalab and choose the form you'd like to add data manually. For this tutorial, we choose the Order Form created for the previous lessons.

1\. Now click on **Insert New Data**. You will find a pop-up of your form.

2\. Fill up the form and click on **Update**.

![](/files/NeIrRFhbSAr39w9cdvv0)

3\. You should now have a new row in your Datalab.

### 2. Use Datalab Entry Block

Please refer to the [Datalab Entry Block](/myalice-guide-arabic/chatbot-and-automation/advanced-blocks/datalab-entry-block.md) page to learn how to collect user information automatically using chatbots.

{% content-ref url="/pages/-MhdKMN29SM59\_rg2x7w" %}
[Datalab Entry Block](/myalice-guide-arabic/chatbot-and-automation/advanced-blocks/datalab-entry-block.md)
{% endcontent-ref %}

### 3. Use Chatbots to Collect Data

You can use button blocks to redirect a user to a Datalab Form. Read more on creating custom sequences using Button Blocks on this page.

{% content-ref url="/pages/-MhbcdCK9B0nUZw3jt3I" %}
[Button Block](/myalice-guide-arabic/chatbot-and-automation/advanced-blocks/button-block.md)
{% endcontent-ref %}

Let's show you another example as well. Say you sell cakes and muffins on Facebook Messenger.

You need the following information from a customer to place an order.

1. Name (Text)
2. Address (Text Area)
3. Flavor (Single Select)
4. Cake Size (Single Select)
5. Delivery Date (Date)

We [create a new Datalab sheet](/myalice-guide-arabic/data-lab-and-analytics/advanced-datalab/create-datalab.md) with the following fields and name it "Cake Orders."

Now, we create a sample welcome message and place the Redirect block to redirect users to a new sequence called Order Sequence.

![](/files/O1UTee4sjAgKEbWhTo60)

We also create a new sequence called **Order Placed**. Here, we place a simple text block and add a thank-you message if the user submits the form.

Now under the **Order Sequence**, we place a Button Block and type a message for the Button Block. For example: How can we help you today?

![](/files/KXgyg0gKO72yQfRUvnWk)

Now click on **Create a Button.** We name the button "Place an Order". If the user clicks on the button, they will be redirected to our newly created Datalab form called Cake Order. If the user submits, they will be redirected to the **Order Placed Sequence**.

{% hint style="info" %}
You can also create other buttons too. But for this tutorial, we are focusing on placing orders via form only.
{% endhint %}

![](/files/6o4xI3axyV0wXJqE8CYx)

This is what the customer sees when they click on the order button.

![](/files/MS287gSZ9jBCYAEPizJs)

To view this order, go to Datalab, choose the selected form and you will find all the entries.

![](/files/q4GrcPoow1Q8mEjh4z48)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.myalice.ai/myalice-guide-arabic/data-lab-and-analytics/advanced-datalab/collect-and-store-data-in-data-lab.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
