> 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ê passará disto:

| NomeCompleto | Email |
| ------------ | ----- |
|              |       |

Para isso:

| NomeCompleto | Email                  |
| ------------ | ---------------------- |
| **Agatha**   | **<agatha@email.com>** |

## Inserir um registro

Para inserir um registro na sua tabela:

1. Certifique-se de que você criou uma tabela com a estrutura apropriada. Para este exemplo, usaremos uma tabela de geração de leads que captura:&#x20;
   * **NomeCompleto:** Captura o nome completo do lead.
   * **Email:** 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. Estas são as variáveis que queremos adicionar à nossa tabela de geração de leads, ou seja, `nome_do_cliente` e `email_do_cliente`.
3. [Adicione 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 **Geração de leads**.

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

6. Para relembrar, nossa tabela de geração de leads de exemplo tem 2 colunas: `NomeCompleto` e `Email`. Em **Configuração da Operação**, vincule o **NomeCompleto** campo para ser preenchido com a variável {`nome_do_cliente}.`
7. Faça o mesmo para **Email** e {email\_do\_cliente}.

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

8. Clique **Salvar**.
9. Teste seu bot no emulador. Execute seu fluxo de bot dentro do emulador para simular a experiência do usuário e acionar o **Inserir registro** ação.

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

10. Após os testes, navegue até sua tabela para confirmar que as informações do lead foram registradas e armazenadas com precisão.

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

***

{% hint style="success" %}
Procurando um modelo de bot rápido e fácil para brincar com Tabelas? O [bot da academia](/chatlayer-documentation-pt-br/comece-rapidamente/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.
