> 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

{% 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](/guia/conectores/categorias/filas-e-eventos/subflow-call.md) e [Subflow Input](/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="/files/DgX1oVw01xtz8pYzksLm" 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 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.floui.io/guia/conectores/categorias/filas-e-eventos/subflow-output.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.
