# Setar valor de variável

A ação **“Setar valor de variável”** serve para **atribuir manualmente um valor a uma variável**, sem depender da resposta do usuário.

* **Direcionar caminhos diferentes** no fluxo com base em uma lógica pré-definida (tipo “marcar” internamente algo no bot)
* **Criar status internos** que guiam o comportamento do atendimento (ex: `etapa_fila`, `tipo_cliente`, `fase_do_processo`)
* **Evitar perguntas repetidas**, já que você pode armazenar e reutilizar a resposta ou decisão anterior
* **Facilitar integração com o CRM**, preenchendo automaticamente propriedades baseadas no fluxo.

<figure><img src="/files/J6yo3i2jCCfwa3036Xm8" alt=""><figcaption></figcaption></figure>

> Essa configuração é muito útil para **controlar o comportamento do fluxo**, registrar marcadores e tomar decisões automáticas com base nesses valores.


---

# 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://help.rvops.com/spread.chat/chatbot/setar-valor-de-variavel.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.
