> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.rabbitmq.platform.NewMessage

- Component: `appmixer.rabbitmq.platform.NewMessage`
- Kind: Trigger
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.rabbitmq 1.0.6](https://connectors.appmixer.com/connector/appmixer.rabbitmq/1.0.6.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.rabbitmq/1.0.6/component/appmixer.rabbitmq.platform.NewMessage>

Consume messages from a queue.

## Properties

| Field | Type | Description |
| --- | --- | --- |
| Queue (`queue`) | text | The name of the queue to consume from. |
| Consumer Tag (`consumerTag`) | text | A name which the server will use to distinguish message deliveries for the consumer; mustn’t be already in use on the channel. It’s usually easier to omit this, in which case the server will create a random name and supply it in the reply. |
| No Ack (`noAck`) | toggle | If set, the broker won’t expect an acknowledgement of messages delivered to this consumer; i.e., it will dequeue messages as soon as they’ve been sent down the wire. Defaults to false (i.e., you will be expected to acknowledge messages). |
| Exclusive (`exclusive`) | toggle | If set, the broker won’t let anyone else consume from this queue; if there already is a consumer, there goes your channel (so usually only useful if you’ve made a ‘private’ queue by letting the server choose its name). |
| Priority (`priority`) | number | Gives a priority to the consumer; higher priority consumers get messages in preference to lower priority consumers. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Content (`content`) | string | - |
| Fields (`fields`) | object | - |
| Properties (`properties`) | object | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.rabbitmq.platform.NewMessage",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Consume messages from a queue.",
  "private": false,
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:rabbitmq"
  },
  "properties": {
    "schema": {
      "type": "object",
      "properties": {
        "queue": {
          "type": "string"
        },
        "consumerTag": {
          "type": "string"
        },
        "noAck": {
          "type": "boolean"
        },
        "exclusive": {
          "type": "boolean"
        },
        "priority": {
          "type": "integer"
        }
      },
      "required": [
        "queue"
      ]
    },
    "inspector": {
      "inputs": {
        "queue": {
          "type": "text",
          "label": "Queue",
          "tooltip": "The name of the queue to consume from.",
          "index": 0
        },
        "consumerTag": {
          "type": "text",
          "label": "Consumer Tag",
          "index": 1,
          "tooltip": "A name which the server will use to distinguish message deliveries for the consumer; mustn’t be already in use on the channel. It’s usually easier to omit this, in which case the server will create a random name and supply it in the reply."
        },
        "noAck": {
          "type": "toggle",
          "label": "No Ack",
          "index": 2,
          "defaultValue": false,
          "tooltip": "If set, the broker won’t expect an acknowledgement of messages delivered to this consumer; i.e., it will dequeue messages as soon as they’ve been sent down the wire. Defaults to false (i.e., you will be expected to acknowledge messages)."
        },
        "exclusive": {
          "type": "toggle",
          "label": "Exclusive",
          "index": 3,
          "defaultValue": false,
          "tooltip": "If set, the broker won’t let anyone else consume from this queue; if there already is a consumer, there goes your channel (so usually only useful if you’ve made a ‘private’ queue by letting the server choose its name)."
        },
        "priority": {
          "type": "number",
          "label": "Priority",
          "index": 4,
          "tooltip": "Gives a priority to the consumer; higher priority consumers get messages in preference to lower priority consumers."
        }
      }
    }
  },
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Content",
          "value": "content",
          "schema": {
            "type": "string",
            "example": "{\"orderId\":1001,\"status\":\"created\"}"
          }
        },
        {
          "label": "Fields",
          "value": "fields",
          "schema": {
            "type": "object",
            "example": {
              "consumerTag": "amq.ctag-appmixer-orders",
              "deliveryTag": 1,
              "redelivered": false,
              "exchange": "orders",
              "routingKey": "orders.created"
            }
          }
        },
        {
          "label": "Properties",
          "value": "properties",
          "schema": {
            "type": "object",
            "example": {
              "contentType": "application/json",
              "contentEncoding": "utf-8",
              "headers": {
                "source": "webshop"
              },
              "deliveryMode": 2,
              "priority": 0,
              "correlationId": "order-1001",
              "replyTo": "orders.replies",
              "messageId": "msg-1001",
              "timestamp": 1718000000,
              "type": "order.created",
              "appId": "webshop"
            }
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
