# Dialogflow Detection Action

This action will parse any user text through Dialogflow engine. The conversation will not hold as a direct input. This action will trigger whenever the user text matches the configured intent.

![](https://2532694803-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-LfOFL9iV-oXE79iRpTJ%2F-LfOFzhQaEOHiypFqbUu%2Fimage.png?alt=media\&token=9061484c-e9cf-4e6f-995f-7af32b3afb61)

### Settings

The action uses the following settings:

| Setting                      | Description                                                                                                                   | [Parsed](https://docs.xenioo.com/actions-and-operations/dynamic-parsing) |
| ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| API Version                  | Choose either V1 or V2, depending on the version of your Dialogflow Agent.                                                    | :no\_entry:                                                              |
| API Access Token             | The API Token required to integrate your Version 1 Dialogflow Agent or the full Google Auth Json authorization file contents. | :white\_check\_mark:                                                     |
| Project Id                   | The Dialogflow Project Id                                                                                                     | :white\_check\_mark:                                                     |
| Language                     | The language of your agent. Make sure to select the same language you've configured on your agent.                            | :white\_check\_mark:                                                     |
| Intent Name                  | The full name of the intent that will trigger this action. Use an asterisk (\*) to trigger on any intent                      | :white\_check\_mark:                                                     |
| Detection Confidence         | The minimum confidence required to trigger this action                                                                        | :no\_entry:                                                              |
| Display intent reply in chat | If enabled, Xenioo will display a message bubble witht the text you've specified as possible intent reply on Dialogflow.      | :no\_entry:                                                              |

### Remarks

When used inside an [interaction](https://docs.xenioo.com/basic-concepts/the-chatbot-designer/interactions_concepts) or [behavior](https://docs.xenioo.com/basic-concepts/the-chatbot-designer/behaviours_concepts), 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 can use the [Dialogflow Input action](https://docs.xenioo.com/actions-and-operations/input/dialogflow/xenioo.bots.actions.dialogflow.dialogflowinputaction).

{% hint style="info" %}
Use \* (asterisk) in the Intent Name field to catch any DialogFlow intent instead of a specific one.
{% endhint %}

This action is optimized to use Dialogflow only once per user input. Even using multiple Dialogflow Detection actions will result in a single Dialogflow API Call. Every Dialogflow API call will count as an [additional chatbot message](https://docs.xenioo.com/basic-concepts/your-account/messages-count#integrations).

The Language field is [fully parsed](https://docs.xenioo.com/actions-and-operations/dynamic-parsing) to be dynamic so you can set your Dialogflow language dynamically at runtime.&#x20;

Any integration issue that Xenioo encounters during Dialogflow calls can be found inside each conversation [Execution Diagram](https://docs.xenioo.com/actions-and-operations/execution/execution-diagram) or inside the chatbot preview [Execution Diagram](https://docs.xenioo.com/actions-and-operations/execution/execution-diagram).

### Trigger

On Intent Detected. This action will trigger any child operation as soon as the user input is matching the selected intent with at least the specified confidence.

### Variables

This action produces the following variables after being triggered:

| Variable             | Description                             |
| -------------------- | --------------------------------------- |
| df\_detected\_action | The action detected during last input   |
| df\_detected\_intent | The intent detected during last input   |
| df\_reply            | The intent reply received by Dialogflow |

Every [entity](https://docs.xenioo.com/ai/nlp/entities) specified in the detected [expression ](https://docs.xenioo.com/ai/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.xenioo.com/execution#global-and-local-actions) or [Behavior level.](https://docs.xenioo.com/execution#global-and-local-actions)&#x20;
