--- alias: user-guide-automation-task-core-messagebus-send tags: - automation tasks description: "This task broadcasts messages to a message bus topic, potentially with a reply" --- # Message Bus Send :iot-messagebus-send-lg: The Message Bus Send task will broadcast a message to a particular message bus topic. ![Screenshot showing a message bus send interface with fields for "Message" and "MessageType".](../images/messagebus_send.png) ## Inputs | Name | Data Type | Description | |-------------|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | MessageType | `Notification` | Type of message bus message to send. If the message is of type `Notification` it will be a fire and forget, if it is `Request` it will expect a reply back in the alloted time. | | Subject | `String` | Message bus topic to send the message to. | | Reply | `any` | Reply message to the `sendRequest`. | | Activate | `any` | Activates the task | ## Outputs | Name | Data Type | Description | | ------- | --------- | --------------------------------------------------------------------------------- | | Success | `Boolean` | If there was no problem emits a true. | | Error | `Error` | Error that occurred during the processing of this task. | ## Settings | Name | Data Type | Default | Description | | ----------- | --------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | MessageType | `String` | `Notification` | Type of message bus message to send. If the message is of type `Notification` it will be a fire and forget, if it is `Request` it will expect a reply back in the alloted time. | ## Behavior The Message Bus Send task send broadcast a message to a message bus topic. It also supports sending a message and expecting a reply, when it receives the reply it will emit it as an output. ## Remarks There is no particular remark to be made.