# User agent

The user_agent object returns the user agent, that is the crawler name, for a given group in the robots.txt file.

The `user_agent` object returns the user agent, that is the crawler name, for a given [group](https://developer.versacommerce.de/articles/liquid-objects-group) in the `robots.txt` file. It consists of a `User-agent` directive and a value for the user agent name.

For example:

```text
User-agent: *
```

The `user_agent` object has the following attributes:

## user_agent.directive

Returns `User-agent`.

## user_agent.value

Returns the name of the user agent.
