# Actions

```lua
Config.Actions = {
    {
        phrases = {
            "recognition test",
            -- Make as much phrases for this action you want.
        },

        allowRecognitionInReverse = true,

        --[[ 
            Reverse Recognition is a setting that affects how phrases are recognized. If you turn on Reverse Recognition, saying any part of the phrase can trigger the action. 
            For instance, if the phrase is 'Buy some stuff', just saying 'stuff' is enough to trigger it.
            But if you turn off Reverse Recognition, you need to say the whole phrase exactly as it is, and in the right order. 
            In the previous example, you'd need to say 'Buy some stuff', not just 'stuff' or 'some stuff'.
        ]]-- 

        shouldBreak = true,
        
        --[[ 
           The "break" parameter in this context determines how the script behaves after finding an action that matches the spoken phrase. If "break" is set to true, the script will stop searching for additional matching actions and end the check loop once it finds a match. In contrast, if "break" is set to false, the script will continue scanning for more matching actions, even after finding the first match. It essentially controls whether the script should 'break' out of the loop after the first match or continue iterating through possible actions.
        ]]-- 

        blockInVehicle = true,

        actionType = "event",
        eventType = "client",
        eventName = "17mov_SpeechRecognition:TestPhrase",
        arguments = {
            arg1 = "17movement.net",
        },

        -- actionType = "executeCommand",
        -- commandString = "e flip",

        -- actionType = "custom",
        -- actionFunction = function(recognizedSentence)
        --     -- Add here ur custom code
        -- end,
    },
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.17movement.net/speech-recognition/actions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
