> 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/triggers/queue-consumer-v2.md).

# Queue Consumer V2

Consome mensagens enfileiradas sob demanda, utilizando o padrão de filas do serviço Redis interno do Workspace.

{% hint style="info" %}
Para publicar os dados que serão consumido através deste será necessário utilizar o conector [Queue Publisher V2](https://docs.floui.io/guia/conectores/categorias/filas-e-eventos/queue-publisher-v2.md).
{% endhint %}

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

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdFvofxz12rgVB3CxFs_9ZPvY7GDJ90DXlOf-IqxLgoBenIXzXPgJ62bdBAqBw_dIybpLzCMR9Po3nbRRozz6PBl5EqOEG7GV5T6S3ZYoSnvyVeXaoZBzmvgvSf5_r24XwW6hzKsw?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Parâmetros de configuração</p></figcaption></figure>

| Campo        | Tipo           | Descrição                                                                                                               |
| ------------ | -------------- | ----------------------------------------------------------------------------------------------------------------------- |
| Descrição    | Campo de texto | Descrição visual do conector no editor de fluxo.                                                                        |
| Fila         | Seletor        | Permite selecionar uma fila, já cadastrada no painel de funcionalidades do Floui, para realizar o consumo de mensagens. |
| Output Path  | Campo de texto | Refere-se ao caminho de saída do conteúdo consumido da fila no contexto de execução do conector.                        |
| {% endtab %} |                |                                                                                                                         |

{% tab title="Payload" %}

## Sucesso

Enquanto a fila estiver ativa e possuir mensagens, o conector irá realizar o consumo de todas estas mensagens da fila de forma automática, dando início a execução do fluxo em que o conector esteja atribuído no momento.

No exemplo abaixo temos uma mensagem que foi consumida pelo conector e será usada durante a execução do fluxo.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeOGW9C1SuYqipUsh9rQxF29mXGDQKvy2ot4VhgfwrkSrguJdD9PHOsllNO88FzzvH77fCfyZQscEcdc_he4OEF4EPYtCeRr5V_qad9LnM-o3SbXgwr9SBEUspwzjZ1oryaUfwAyQ?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Conector recebe item de fila para realizar consumo</p></figcaption></figure>
{% endtab %}

{% tab title="Instruções" %}

## Criando filas para publicação

Para criar uma nova fila no seu Workspace, siga os passos abaixo:

Acesse o menu lateral esquerdo do seu Workspace e clique em Filas internas para prosseguir.

<figure><img src="https://215079342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F226k0cnPTn1PWu9xHcK8%2Fuploads%2FrV3XERn7SPiPpz1DDCne%2Fimage.png?alt=media&amp;token=13be45fa-f26a-4038-9ea0-a1e91a727545" alt=""><figcaption><p>Listagem de Filas internas</p></figcaption></figure>

Dentro da página de Filas internas, clique no botão Criar nova fila para iniciar o processo de criação da fila.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeza50P-UOiwpdMuHb3iQy-tTOZyNl2QVRVC8g3oZJ8MpwJw4kRLrQlTCsDLKE1ymBau978MrtMeetSTMkGYY6hPVkVRKTSpkkL7kA7saKsI64EjQyJgsriOeyKSSzimpvqqu0pHg?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Criação de fila</p></figcaption></figure>

* Nome da fila: Dê um nome único para sua fila que descreva de maneira clara o contexto de seu uso.
* Grupo: É possível atribuir a fila a um grupo, isto auxilia na organização de diferentes recursos em seu Workspace. [Clique aqui](https://docs.floui.io/guia/configuracoes/grupos.md) para saber mais sobre grupos.

Após ajustar todas as configurações necessárias, finalize o processo clicando no botão Salvar fila. A fila criada estará disponível para uso nos conectores Queue Consumer V2 e Queue Publisher V2.
{% 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/triggers/queue-consumer-v2.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.
