# IBM Watson Assistant Detection Action

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

![](https://2678899722-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-M60QAODgAM6sm8Wb3QU%2F-M60QW3ChsThse11CKzu%2Fimage.png?alt=media\&token=a2244bab-9a6b-4f82-8e4d-bef6b0df6362)

### Settings

The action uses the following settings:

| Setting                       | Description                                                                                                             | [Parsed](https://docs10.xenioo.com/actions-and-operations/dynamic-parsing) |
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| API Version                   | Choose the IBM Watson API Version to use                                                                                | :no\_entry:                                                                |
| Username                      | The IBM Watson integration username                                                                                     | :white\_check\_mark:                                                       |
| Password                      | The IBM Watson integration password                                                                                     | :white\_check\_mark:                                                       |
| Workspace Id or Workspace Url | Set here the full workspace id or the full workspace url of your IBM Watson assistant API integration                   | :white\_check\_mark:                                                       |
| Intent                        | The full name of the intent you want to be parsed. Use asterisk (\*) to accept 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 with the text you've specified as possible intent reply on IBM Watson. | :no\_entry:                                                                |

### Remarks

When used inside an [interaction](https://docs10.xenioo.com/basic-concepts/the-chatbot-designer/interactions_concepts) or [behavior](https://docs10.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 [IBM Watson Assistant Input](https://docs10.xenioo.com/actions-and-operations/input/ibm-watson-assistant/xenioo.bots.actions.ibmwatson.ibmwatsonassistantinputaction).

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

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

If required, instead of the standard Workspace Id, the Legacy v1 Workspace URL can be found the API Details page you can see in the following picture:

![](https://2678899722-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-LfOBrDsNuPduQ9R3ojP%2F-LfOEAM-70vDFBol9Fj4%2Fimage.png?alt=media\&token=11684453-220e-49a8-a081-85417bec429e)

###

### 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                             |
| --------------------- | --------------------------------------- |
| wat\_detected\_intent | The intent detected during last input   |
| wat\_reply            | The intent reply received by Dialogflow |

Every [entity](https://docs10.xenioo.com/ai/entities) specified in the detected [expression ](https://docs10.xenioo.com/ai/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            | Fully Available. |
| Google Assistant | Fully Available. |
| Slack            | Fully Available. |
| API              | Fully Available. |

This action can be used only at [Bot Global level](https://docs10.xenioo.com/execution#global-and-local-actions) or [Behavior level.](https://docs10.xenioo.com/execution#global-and-local-actions) This action is available only to [Premium Accounts](https://docs10.xenioo.com/basic-concepts/your-account/the-free-plan).

### Further Reading

{% embed url="<https://www.xenioo.com/en/integrating-ibm-watson-assistant-nlp-with-xenioo/>" %}
