> For the complete documentation index, see [llms.txt](https://docs.floui.io/guia/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.floui.io/guia/conectores/categorias/filas-e-eventos/subflow-input.md).

# Subflow Input

Inicia um subfluxo interno para execução no fluxo atual.

{% hint style="info" %}
O conector Subflow Input faz parte de um conjunto de conectores para chamada de subfluxos e retorno de dados para o fluxo principal. Acesse a documentação dos conectores [Subflow Call](/guia/conectores/categorias/filas-e-eventos/subflow-call.md) e [Subflow Output](/guia/conectores/categorias/filas-e-eventos/subflow-output.md) para saber mais sobre como utilizá-los em seu ambiente.
{% endhint %}

{% tabs %}
{% tab title="Parâmetros" %}

<figure><img src="https://215079342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F226k0cnPTn1PWu9xHcK8%2Fuploads%2F0Mh7VVpRGHamm5icXmh9%2Fimage.png?alt=media&amp;token=b7e83b95-5a42-424f-9266-195399205fb7" alt=""><figcaption><p>Parâmetro de configuração</p></figcaption></figure>

<table><thead><tr><th width="207">Campo</th><th width="154">Tipo</th><th>Descrição</th></tr></thead><tbody><tr><td>Descrição</td><td>Campo de texto</td><td>Elemento visual usado para descrever a funcionalidade do conector dentro do fluxo. </td></tr><tr><td>Identificador do subfluxo</td><td>Campo de texto</td><td>Define um identificador do subfluxo. O identificador inserido nesta configuração deverá também ser inserido no conector Subflow Call dentro do mesmo fluxo.</td></tr></tbody></table>
{% endtab %}

{% tab title="Payload" %}

## Sucesso

O conector Subflow Input, através do seu identificador, irá dar início a execução do subfluxo, chamado pelo conector Subflow Call.&#x20;

No exemplo abaixo, um fluxo percorre uma lista de usuários e chama um subfluxo responsável por verificar se cada usuário está cadastrado em um banco de dados interno. Se o usuário já existir, seus dados serão atualizados; caso contrário, um novo registro será criado. Após isso será retornado para o fluxo principal, onde os demais conectores serão executados.

Quando o subfluxo é acionado, o conector irá receber objeto msg do fluxo principal, o objeto msg é repositório de dados contendo os dados de execução do fluxo até este momento.&#x20;

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdGgc7GMX8tf3gz2G1G2ryHiH4CqVg_j_JM5ZX5BUQOrBHTgEHfr5v8gLrP3poAJofbWH5AKlyBegfTby0pbJuyZv5cgj1Yi7djHJ5V8VB6FawiQofeEGA5cv3fWjbchLbrAw0zeg?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Exemplo de subfluxo</p></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.floui.io/guia/conectores/categorias/filas-e-eventos/subflow-input.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
