# Respond to Interaction with Advanced Message

> Send a Components v2 response to an interaction (slash command, button, etc.).

- ID: `respond_interaction_advanced`
- Type: Block
- Category: [Interactions](https://inventor.bot/docs/reference/blocks/interactions.md)

- Only works in flows started by an interaction trigger (slash commands, buttons, dropdowns, modals, context menus).

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `message_components` | yes | Components of the response. | blocks: `func() { ... }` with only `advmsgcmp_layout_*`, `advmsgcmp_content_*` blocks |
| `allow_mentions` |  | Choose which mention types should notify users. Empty or None disables all pings. None overrides other selections. Unselected mentions are displayed without pinging. | `"None"`, `"Everyone/Here"`, `"Roles"`, `"Users"` |
| `update_original_message` |  | For component interactions and modals opened from a component, edit the original message instead of sending a new interaction response. Ignored otherwise. | `"true"`, `"false"` |
| `ephemeral` |  | Only visible to the user who triggered the interaction. Only applies to the initial response. | `"true"`, `"false"` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `message_id` | ID of the sent or edited interaction response message. |  |

**Example**

```go
interactionAdvanced := respond_interaction_advanced(Args{
	message_components: func() {
		advmsgcmp_layout_container(Args{accent_color: "#0099ff", spoiler: "true"})
	},
})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Message ID: " + interactionAdvanced.message_id,
})
```

## Blocks inside

These blocks can only be placed inside this one:

- [Text](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-content-text.md) (`advmsgcmp_content_text`), in `message_components`
- [Message Container](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-layout-container.md) (`advmsgcmp_layout_container`), in `message_components`
- [Section](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-layout-section.md) (`advmsgcmp_layout_section`), in `message_components`
- [Action Row](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-layout-actionrow.md) (`advmsgcmp_layout_actionrow`), in `message_components`
- [Separator](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-layout-separator.md) (`advmsgcmp_layout_separator`), in `message_components`
- [Gallery](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-layout-gallery.md) (`advmsgcmp_layout_gallery`), in `message_components`