# Mudando SMS para WhatsApp QR

## O que esse script faz?

Este script altera automaticamente o texto **"SMS"** para **"WhatsApp QR"** na interface do GoHighLevel, deixando mais claro para você e sua equipe que estão usando o WhatsApp via STEVO.

***

## Local de Implementação

Acesse seu **Go High Level**:

**Settings → Company → Custom JavaScript**

Cole o código abaixo no campo disponível.

***

## Código

```html
<script>
(function() {
  function trocarTexto() {
    // Seletor 1 - Tab principal
    const smsTab = document.querySelector('#composer-textarea > div > div.flex.flex-col.flex-1.min-w-0.h-full.rounded-md.border-none > div.flex.flex-row.py-1.items-center.justify-end.rounded-t-lg.\\!h-\\[32px\\].bg-gray-50 > div.flex.gap-6.items-center.w-full > div > span');
    if (smsTab && smsTab.innerText.trim() === 'SMS') {
      smsTab.innerText = 'WhatsApp QR';
    }

    // Seletor 2 - Popover
    const smsPopover = document.querySelector('#provider-select-popover > div.hr-popover__content > div > div > div.flex.items-center.justify-between.py-2.px-2.cursor-pointer.transition-colors.duration-150.hover\\:bg-gray-50.bg-blue-50 > div > div');
    if (smsPopover && smsPopover.innerText.trim() === 'SMS') {
      smsPopover.innerText = 'WhatsApp QR';
    }
  }

  // Primeiro tenta de imediato
  trocarTexto();

  // Observa mudanças no DOM
  const observer = new MutationObserver(() => {
    trocarTexto();
  });

  observer.observe(document.body, {
    childList: true,
    subtree: true
  });
})();
</script>
```

***

## Passo a Passo

* Copie o código JavaScript acima
* Faça login na sua conta Whitelabel do GoHighLevel
* Acesse **Settings → Company → Custom JavaScript**
* Cole o código na área disponível
* Clique em **Save** para aplicar as alterações
* Atualize a página e verifique se o texto foi alterado

***

{% hint style="success" icon="lightbulb-on" %}

#### 💡 Resultado

Após aplicar, onde aparecia **"SMS"** agora vai aparecer **"WhatsApp QR"**, facilitando a identificação do canal de comunicação.
{% endhint %}


---

# 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://tutorial.stevo.chat/integracao-ghl/mudando-sms-para-whatsapp-qr.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.
