# Global Detection Action

This action will parse every text sent to the current [interaction ](https://docs.mylinkconnect.com/basic-concepts/the-chatbot-designer/interactions_concepts)by the user. This action will not hold the conversation and wait for an answer but will be triggered anywhere during an interaction flow.

![](https://content.gitbook.com/content/tZEstFBYh3uMutlup6ku/blobs/HYeS1FfrRuDaILhvtug7/image.png)

### Settings

The action uses the following settings:

| Setting                  | Description                                                                                                                                                                                                                                                           | [Parsed](https://docs.mylinkconnect.com/actions-and-operations/dynamic-parsing) |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| NLP or Text              | Set the type of detection that should be performed                                                                                                                                                                                                                    | :no\_entry:                                                                     |
| NLP Intent               | The name of the intents that should be detected. Only [global ](https://docs.mylinkconnect.com/artificial-intelligence/nlp/nlp-master)or [manually activated](https://docs.mylinkconnect.com/artificial-intelligence/nlp/intents#activation) intents are listed here. | :white\_check\_mark:                                                            |
| Detection Confidence     | The minimum detection confidence that need to be reached to trigger this action                                                                                                                                                                                       | :no\_entry:                                                                     |
| Append Detected Entities | If enabled will append detected entities values to the current runtime variables that already hold entity values                                                                                                                                                      | :no\_entry:                                                                     |
| Control Expression       | A simple text or full Regular Expression match string                                                                                                                                                                                                                 | :white\_check\_mark:                                                            |
| Target Variable          | The variable that will hold the user text that triggered the action.                                                                                                                                                                                                  | :white\_check\_mark:                                                            |

### Remarks

This action **is not blocking.** The conversation is not halted and the user can continue freely. If you want to stop the user until the question requirements have been met you should use input actions.

Text detection can happen in two different ways: using simple text or using a Regular Expression.&#x20;

* Simple text\
  The text you enter in Control Expression is directly matched with the user input. For example entering *this is awesome* will match any sentence containing that exact text.\
  You can use a pipe (|) symbol to match multiple sentences. So to match *this is awesome* and *this is great*, you can enter *this is awesom&#x65;**|**&#x74;his is great* in Control Expression.<br>
* Regular Expression\
  Xenioo supports standard [Regular Expression notation](https://docs.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-language-quick-reference). The input text will be matched against the regular expression specified in Control Expression.

Regardless or the selected method, text detection is always case insensitive.

If multiple intents are selected, only the best one will be checked against the given confidence.

### Trigger

On User Input Detected. This action will trigger any child operation as soon as the user input is matching the specified Control Expression or the selected intent.

### Variables

This action produces the following variables after being triggered:

| Variable               | Description                                                   |
| ---------------------- | ------------------------------------------------------------- |
| last\_detected\_intent | The intent detected during last input                         |
| detected\_locale       | The locale of the intent detected                             |
| last\_entity           | The full list of all entities values separated by a semicolon |

Every [entity](https://docs.mylinkconnect.com/artificial-intelligence/nlp/entities) specified in the detected [expression ](https://docs.mylinkconnect.com/artificial-intelligence/nlp/expressions)will be translated to a runtime variable named after the entity name.

### Availability

Channel specific availability follows the table below:

| Channel          | Availability                                                           |
| ---------------- | ---------------------------------------------------------------------- |
| Facebook         | Fully Available.                                                       |
| WhatsApp         | Fully Available.                                                       |
| Telegram         | Fully Available.                                                       |
| Web              | Fully Available.                                                       |
| Alexa            | **Not Available. Out of AI Detection is not supported inside skills.** |
| Google Assistant | Fully Available.                                                       |
| Slack            | Fully Available.                                                       |
| API              | Fully Available.                                                       |

This action can be used only at [Bot Global level](https://docs.mylinkconnect.com/execution#global-and-local-actions) or [Behavior level.](https://docs.mylinkconnect.com/execution#global-and-local-actions)&#x20;
