> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/topicos/relacionar/fluxos-de-automacao/duvidas-comuns/fluxo-de-automacao-iniciando-chatbot-em-oportunidades-importadas.md).

# Fluxo de Automação - Iniciando Chatbot em oportunidades importadas

Imagine que você deseja importar oportunidades e enviar mensagens para estes leads via chatbot. Para isto, siga os passos abaixo:

Nesta estratégia você vai precisar de:

* Um segmento. [Para aprender a criar segmentos clique aqui.](https://docs.sprinthub.com/topicos/relacionar/segmentos)
* Uma tag. [Para aprender a criar tags clique aqui.](https://docs.sprinthub.com/topicos/configuracoes/tags)

Agora vamos configurar nosso Fluxo de Automação:

1 - Acesse Fluxos de Automação, e clique em +Novo

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdmmaW2QTrMscL8IlaOXzCAkeQnARH2atN4-2ZpS8mCQXhVwP_vBt9YpU9ZnBPaZSa87cyUcJDCHtZAnHMbEXqFL285Nl92iOWrLeSK_XpLssmHLM1mMRpgdQp6H9ILujheoR87HiqfBEo0AKvohqQ__vdY?key=kBfnYrXDoyqIkjwQKonTpA" alt=""><figcaption></figcaption></figure>

2 -  Adicione um Nome, indique o segmento para que os leads que entrarem neste segmento passem por este fluxo. Clique em “Abrir Construtor”.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdX1lCJrz9DWKfgGBSjmUpCOgF3VNKlnbt9_snjUQiF7Frz_u6roRcQqpuL328VLKh-hffBe82Gp-ACgwWJkO_XuD7FlMcdPJ2w3GstMQAA__48GXJ2_Yj1EOK3UcevTqFHgKIHI7CIRLu9usfpD68_WBQ?key=kBfnYrXDoyqIkjwQKonTpA" alt=""><figcaption></figcaption></figure>

3 - Configure a automação da seguinte forma:\
\
**Condição**: “O lead possui uma tag?” >> Sim, mas incluindo uma das tags >> Indique a tag.

**Ação**: Iniciar chatbot >> Indique o chatbot, o tipo de conta, e qual a conta de WhatsApp.\
Clique em Aplicar e Salvar e Fechar.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcS-4Z9C-9oz6RmV-X9cBTEWWsHQe6mMCXkrc1jVnb5rURLaY8bDCQFKtwus75IT--3cagYubdiLSgRKhhqnLhz68xRc98UKTsEmhq5tGU89wmN5GU7lGHIq5m2Gn8kFGGcVkFV9VVOj4TMj4cbNTerYvE?key=kBfnYrXDoyqIkjwQKonTpA" alt=""><figcaption></figcaption></figure>

**O próximo passo é importar as oportunidades já incluido os leads no segmento e contendo a tag configurados anteriormente.**

Para isso, siga o passo a passo a seguir:

1 - Acesse as configurações de CRM, em seguida clique em Importar Oportunidades

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXegdakdGnMUSaiRV6QjXB8OiS4oMuNONNcEE65FFm5JJZMFt8-EgTGCI0oPpNUqI4qWPg9-E3T9FE3QEyVMzjrEvxTMsmSvVYvBcYM1NSoCIlwOz_7C5kvObMLtYD6iJx5Js0N6NLU8eVGUSCn5blTjjdmQ?key=kBfnYrXDoyqIkjwQKonTpA" alt=""><figcaption></figcaption></figure>

2 - A planilha de oportunidades deve conter as informações corretas referente às colunas que se relacionam com as etapas, e o responsável. Estas informações serão relacionadas por meio do ID. Confira os IDs nos botões indicados abaixo.

{% hint style="info" %}
É obrigatório que haja a coluna de título, e que sua planilha não tenha linhas em branco.
{% endhint %}

Selecione o arquivo que será mapeado clicando no tipo de arquivo.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcz6b5IzXU1AAKvVy_W_VplyfgOpWBJkeZMZlJz9LlVGUEcbsNI8BtueeGa_PcQK28ElZ8nAgDQ9E4wObYtDQ68KkKZ70CumdivlnmCj3IlzqhYwl3XPr3rfjunZHoxj_7GIO0XxM5kcEPpcjzcWef7ML4?key=kBfnYrXDoyqIkjwQKonTpA" alt=""><figcaption></figcaption></figure>

3 -  No momento da importação você pode adicionar o funcionário responsável, o segmento, a tag, e os usuários que poderão visualizar as oportunidades e atendimento.

\
**É importante que** você adicione o segmento e a tag configurada na automação acima, para que estas sejam atendidas a fim de acionar o chatbot.

\
Em seguida você verá os campos mapeados.&#x20;

* Na primeira parte verifique se os campos das colunas das oportunidades estão corretos.&#x20;
* Na segunda parte atente-se aos campos das informações dos leads.\
  Por fim, clique em importar oportunidades.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfqqV4d4f9O7HUldUbZB_SXv74_9WodG7f6b0u7dbOITjnEMgu74pW4nfte6SxSqP5I91nDhnGcxsLwBFMy24ikjNuHGALdwllB8RQX6r3WhV-4gHcQxbcQCYkpCVNMvuMhPVGDt9ONbTLv3cCnvk-PRtUf?key=kBfnYrXDoyqIkjwQKonTpA" alt=""><figcaption></figcaption></figure>

\ <br>


---

# 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.sprinthub.com/topicos/relacionar/fluxos-de-automacao/duvidas-comuns/fluxo-de-automacao-iniciando-chatbot-em-oportunidades-importadas.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.
