> 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-output.md).

# Subflow Output

Finaliza um subfluxo interno no fluxo atual e retorna a mensagem para o iniciador do subfluxo.

{% hint style="info" %}
O conector Subflow Output 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](https://docs.floui.io/guia/conectores/categorias/filas-e-eventos/subflow-call.md) e [Subflow Input](https://docs.floui.io/guia/conectores/categorias/filas-e-eventos/subflow-input.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%2FlSAyrkXzuIVOQ3RFQ11f%2Fimage.png?alt=media&amp;token=a3ecd1a6-2560-4270-9cbb-f8cc9639fdd0" alt=""><figcaption><p>Parâmetro de configuração</p></figcaption></figure>

<table><thead><tr><th width="207">Campo</th><th width="154" align="center">Tipo</th><th>Descrição</th></tr></thead><tbody><tr><td>Descrição</td><td align="center">Campo de texto</td><td>Descrição visual do conector na construção do fluxo.</td></tr></tbody></table>
{% endtab %}

{% tab title="Payload" %}

## Sucesso

O conector Subflow Output, irá finalizar a execução do subfluxo, iniciado pelos conectores Subflow Call e Subflow Input.&#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 é finalizado, o objeto msg do subfluxo é enviado para o fluxo principal, contendo todos os dados da execução do fluxo.

<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-output.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.
