> ## Documentation Index
> Fetch the complete documentation index at: https://fossabot.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# $(autoreason)

`$(autoreason)` is a special variable **only available in keywords**. It resolves which phrase group within a given keyword was matched: `Matched phrase group {x} in Keyword {y}`.

This is particularly useful if you have made a keyword for moderation, and would like to know which specific phrase group triggered a timeout, for debugging etc.

You can add this in the `Keyword response` section, for example in a moderation keyword like so:

![autoreason example](https://mintcdn.com/fossadev/CPTmXSRcXIGlG-eS/img/keywords/autoreason-example.png?fit=max\&auto=format\&n=CPTmXSRcXIGlG-eS\&q=85\&s=d57631433db91caadabf15314e32a91e)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.