---
title: "Action get_user_input"
description: "Reads text, files, and bot mentions from the current user message."
---

# Action `get_user_input`

> **System ID:** `action_get_user_input`

## Description

Processes the current message: stores text, file/image links, and user data in constants. Detects a bot mention in a group (`@botname …`). Useful when you need to capture input immediately without a separate wait for a reply.

## Events (scenario branches)

| Event | When it occurs |
|-------|----------------|
| **bot_mentioned** | The text contains a bot mention (`@…Bot …`); text after the mention is in `mentioning_text` |
| **raw_input** | There is message text without a bot mention |
| **no_input** | No message text |

## Parameters

No parameters (`{}`).

## Constants the action may write

| Constant | When |
|----------|------|
| `user_input` | There is message text |
| `users_file_link` | There is a file or image |
| `user_display_name` | There is a display name |
| `user_name` | There is a username |
| `user_id` | There is a user ID |
| `mentioning_text` | The bot is mentioned in the message |

## Configuration example

```json
{}
```

## Related docs

- [Actions reference](/en/actionjail/reference/actions-reference.md)
