# Fluxo de Automação - Acionando Fluxo por ações de Webhooks

Você tem um formulário externo que envia dados para o SprintHub via Webhook. Com base nas informações recebidas, você quer configurar um fluxo que envia mensagens diferentes: uma para leads que entraram em contato por meio da URL encurtada no botão de WhatsApp do seu site, e outra para aqueles que não fizeram isso.

* Para aprender configurar uma URL encurtada,[ **clique aqui.**](https://docs.sprinthub.com/topicos/relacionar/encurtadores-de-url)

Siga o passo a passo a seguir:<br>

1 - Acesse Fluxo de Automação<br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdrhcrvhB-Lo0CxJxyqdCC9u7L9o4_Zpz4eftw2dE2u_LTIoHA_gK3VJlqGZcDLftYdAA7p-6EuPC_sCRWtf_1BhhT9z33Xl3d4MrQZvA-XIut2YzO5oqos5ZdGJjG_77yWbfpG9WbakdXjeSQKrhkHbt4?key=4Lg67sSv5hhubkRz-5AJQA" alt=""><figcaption></figcaption></figure>

2 - Clique em + Novo, adicione um&#x20;

* Nome, ative “Permitir que os leads reiniciem o fluxo?”,&#x20;
* Selecione SIM em “Publicado” para publicar o fluxo.&#x20;
* Clique em Abrir Construtor.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfziDT-Y1tB-pEiam6jlkSNy92FBsbwAr3GJLaSubKrU3QHcVpzvuphSscxQFHzhUEfQ_3ocpfFh4LjgELU-6fmo7dqhvund4NO6d8mSsLVMBdQF-1vByCG8OPgR4ZvuX8d5o-lJVVRicI7Fk7MK6Kt1T8a?key=4Lg67sSv5hhubkRz-5AJQA" alt=""><figcaption></figcaption></figure>

3 - No construtor, adicione os blocos:

* Gatilho: “O lead abriu um encurtador?”. Vale ressaltar que o gatilho aguardará o lead abrir o encurtador, ou seja, trata-se esperar de uma ação futura do lead.
* Na saída positiva do gatilho, adicione a condição: “O lead possui um atendimento no SAC?” >> SIM,&#x20;
* Ação: Adicionar uma determinada Tag, e enviar uma mensagem de WhatsApp.
* Na saída negativa do gatilho, adicione as ações: modificar as tags do lead, para adicionar uma tag específica, e enviar uma outra mensagem de WhatsApp.\
  Clique em Aplicar, e Salvar e Fechar

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfHwSis3nXvJzdSFCh17rp9xaZrPQjXUdFPoz6mrciihPAuhOqIQazmLVcTWGNFsHZK-MPPr2-wONK_ERACL1--UQGbeePjFtAM2K4pNkWT0pBO6NWbyK5iBOzFr3ao5V-hDjdiM0Kder00pG8Og0wJ0Ful?key=4Lg67sSv5hhubkRz-5AJQA" alt=""><figcaption></figcaption></figure>

Por fim, ativaremos este fluxo pelas ações de webhook.

1 - Para isso, acesse Webhooks Integrados

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdaBvP17dgkA8MJZQQ79EePKJhHl-9Y_ls5GPBfpHqGsJxq3lzQraEV4su3nh9LG196PcgA3Q5SaugHUt9ZCMTSHUy0jlZOqZZ4b5z3Qdu7gcPWHbzFbkQeFls928ybW_UfHxrYMH4_WJBL4flJn30rp_Y?key=4Lg67sSv5hhubkRz-5AJQA" alt=""><figcaption></figcaption></figure>

2 - Escolha o Webhook, clique em Editar, e na aba Ações Extras, clique em + Nova Ação, e busque por Mudar Fluxos de Automação.

Escolha o Fluxo criado anteriormente, clique em Salvar e Fechar.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfaCfCf68x42WlmoanNsNzWZjU2GDTz9nMOTT8AUD33LgFhKq9w_PKJkWN7QcdP4t2S8NJdW7EnI1GC0SPrWPkjzqbhFrjBz2v7TCjv8Lpzpyp73nmoRLasTPlaosD9o5Q0Eeq8ZKffNYkpQcNR6IXPJck?key=4Lg67sSv5hhubkRz-5AJQA" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Para aprender mais sobre Webhook, [**clique aqui.**](https://docs.sprinthub.com/topicos/analisar/webhooks-integrados/webhooks-integrados-duvidas-comuns)
{% 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://docs.sprinthub.com/topicos/relacionar/fluxos-de-automacao/duvidas-comuns/fluxo-de-automacao-acionando-fluxo-por-acoes-de-webhooks.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.
