---
sidebar_position: 4
slug: /message_component
sidebar_custom_props: {
  categoryIcon: LucideMessageSquareReply
}
---
# Message component

A component that sends out a static or dynamic message.

---

As the final component of the workflow, a Message component returns the workflow’s ultimate data output accompanied by predefined message content. The system selects one message at random if multiple messages are provided.

## Configurations

### Status

The HTTP status code (`200` ~ `399`) to return when the entire workflow completes. Available *only* when you select **Final response** as **Execution mode** in the [Begin](./begin.md) component.

### Messages

The message to send out. Click `(x)` or type `/` to quickly insert variables.

Click **+ Add message** to add message options. When multiple messages are supplied, the **Message** component randomly selects one to send.

### Save to memory

Save the conversation to specified memories. Expand the dropdown list to either select all available memories or specified memories:


![](https://raw.githubusercontent.com/infiniflow/ragflow-docs/main/images/save_to_memory.png)

### User ID

Enabled by default, indicates whether to link the conversations with the agent app via a user ID. Once activated, you can target specific memories associated with that ID during retrieval.

:::tip NOTE
RAGFlow allows multiple users to share memory. This feature is therefore associated with **Save to memory**.
:::