> For the complete documentation index, see [llms.txt](https://docs.chatlayer.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chatlayer.ai/chatlayer-documentation-pt-br/navegacao/tables/operate-on-your-records/insert-record.md).

# Inserir registro

Inserir um registro na sua tabela significa que você criará uma nova linha na sua tabela.

Isso significa que você vai sair deste:

| Nome completo | E-mail |
| ------------- | ------ |
|               |        |

Para isso:

| Nome completo | E-mail                 |
| ------------- | ---------------------- |
| **Agatha**    | **<agatha@email.com>** |

## Insira um registro

Para inserir um registro na sua tabela:

1. Certifique-se de ter criado uma tabela com a estrutura apropriada. Para este exemplo, usaremos uma tabela de geração de leads que captura:
   * **Nome completo:** Captura o nome completo do lead.
   * **E-mail:** Armazena o endereço de e-mail do lead.

<figure><img src="/files/14de7aa6a0625f2bb7a52209408a4e7c21c78d7b" alt=""><figcaption><p>Um exemplo de tabela para geração de leads</p></figcaption></figure>

2. Certifique-se de capturar as variáveis relevantes na sua conversa. No nosso exemplo, capturamos o nome do usuário e o e-mail em [Coletar entrada](/chatlayer-documentation-pt-br/buildabot/flow-logic/dialog-state/user-input-bot-dialog.md) blocos. Essas são as variáveis que queremos adicionar à nossa tabela de geração de leads, ou seja, `customer_name` e `customer_email`.
3. [Adicionar uma operação de Tabela](https://docs.chatlayer.ai/bot-answers/tables-beta/perform-operations-on-your-records#add-a-table-operation-to-your-flow) no seu fluxo.

<figure><img src="/files/0bf4f45da7a16ad7dcbe1b3423248f4d9716c305" alt=""><figcaption><p>Adicione uma operação de Tabela ao seu fluxo.</p></figcaption></figure>

4. Selecione **Inserir registro.**

<figure><img src="/files/54339dd381ac0549b3b4f3edd7b29567a87d1faa" alt="" width="375"><figcaption><p>Selecione a operação de tabela Inserir registro</p></figcaption></figure>

5. Selecione a tabela na qual você gostaria de trabalhar. Para este exemplo, chamamos nossa tabela de **Geração de leads**.

<figure><img src="/files/309604c04084bc45e4978f9df909bd892098d4db" alt="" width="375"><figcaption><p>Selecione sua tabela.</p></figcaption></figure>

6. Só para relembrar, nossa tabela de geração de leads de exemplo tem 2 colunas: `Nome completo` e `E-mail`. Em **Configuração da operação**, vincule o **Nome completo** campo a ser preenchido com a variável {`customer_name}.`
7. Faça o mesmo para **E-mail** e {customer\_email}.

<figure><img src="/files/66d669bf5495bd5150f7a3c8f2a9dabe3bcf05fc" alt=""><figcaption><p>Insira um registro na sua tabela.</p></figcaption></figure>

8. Clique em **Salvar**.
9. Teste seu bot no emulador. Percorra o fluxo do seu bot no emulador para simular a experiência do usuário e acionar o **Inserir registro** acionada.

<figure><img src="/files/c0e1d3a30ec9dfdcdb1981514535ab2bd1904583" alt="" width="375"><figcaption></figcaption></figure>

10. Após o teste, navegue até sua tabela para confirmar que as informações do lead foram registradas e armazenadas corretamente.

<figure><img src="/files/731b050c62ccd239af51a32bb942ede0fe563872" alt=""><figcaption></figcaption></figure>

***

{% hint style="success" %}
Procurando um template de bot rápido e fácil para brincar com Tabelas? O [bot Gym](/chatlayer-documentation-pt-br/comece-rapido/bot-templates/gym.md) é um caso de uso representativo.
{% endhint %}


---

# 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.chatlayer.ai/chatlayer-documentation-pt-br/navegacao/tables/operate-on-your-records/insert-record.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.
