# O que são variáveis ​​de modelo

Quando você cria uma mensagem com variáveis, a AtendChat a traduz para o valor apropriado.

<figure><img src="/files/tDzb48ouZvnqZIHzw5io" alt="" width="563"><figcaption></figcaption></figure>

Se enviarmos uma mensagem **Olá {{ contact.name }}, como posso te ajudar?**, a AtendChat escolherá o nome do contato e enviará uma mensagem como **Olá Júlia, como posso te ajudar?**. Isso permite que você envie mensagens personalizadas para o usuário final.

> Nota: AtendChat suporta variáveis ​​em atalhos/respostas pré definidas.

<figure><img src="/files/Ay1At5uznGr2P10nRlXH" alt="" width="563"><figcaption></figcaption></figure>

Para usar uma variável, digite dois colchetes duplos  **{{** ao redigir uma nova mensagem ou criar uma resposta automática. As variáveis ​​aparecerão e você poderá selecionar aquela que deseja usar.

A lista atual de variáveis ​​de modelo é:

* **conversation.id:** Versão numérica do ID da conversa
* **contact.id:** Versão numérica do ID do contato
* **contact.name:** Nome completo do contato
* **contact.first\_name:** Primeiro nome do contato
* **contact.last\_name:** Sobrenome do contato
* **contact.phone\_number:** Telefone de contato
* **agent.name:** Nome completo do agente
* **agent.first\_name:** Primeiro nome do agente
* **agent.last\_name:** Sobrenome do agente
* **agent.phone\_number:** Número de telefone do agente

#### E se a variável não existir?

Se você tentar enviar uma variável indefinida, a AtendChat mostrará um aviso.

<figure><img src="/files/dUGgclHmYcFddE3bep7F" alt="" width="563"><figcaption></figcaption></figure>

#### Como adicionar texto alternativo?

Ao definir um texto alternativo, certifique-se de colocá-lo entre aspas simples.

**{{ contact.first\_name || 'there'}}**


---

# 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://ajudachat.hotmobile.com.br/o-que-sao-variaveis-de-modelo.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.
