# IBM Watson Assistant

> IBM Watson Assistant Skills Localization

URL: https://store.crowdin.com/ibm-watson-assistant
Identifier: ibm-watson-assistant
Category: File Formats
Type: App
Author: Crowdin

With this app you can translate IBM Watson Assistant in Crowdin and keep the app multilingual.

## File Format Details

| Attribute | Value |
| --------- | ----- |
| File Extension | .json |
| [API Type](https://developer.crowdin.com/api/v2/#operation/api.projects.files.post) | ibm-watson-assistant |
| Source can be edited in Crowdin | No |
| Generating translated files via [Bundles](https://support.crowdin.com/bundles/) | [Search Crowdin Store](https://store.crowdin.com/tags/string-exporter) |
| Supports pluralization | No |
| WYSIWYG Preview in the editor | Yes |
| Supported types of contextual information | WYSIWYG |
| Custom attributes | No |
| Existing translations import possibility | Key-value mapping (trivial) |

## Sample File

```json
{
  "intents": [
    {
      "intent": "Hello-messages",
      "examples": [
        {
          "text": "Hello"
        }
      ],
      "description": "This contains hello, hi messages."
    }
  ],
  "entities": [],
  "metadata": {
    "api_version": {
      "major_version": "v2",
      "minor_version": "2018-11-08"
    },
    "from-sample": true
  },
  "dialog_nodes": [
    {
      "type": "standard",
      "title": "Anything else",
      "output": {
        "generic": [
          {
            "values": [
              {
                "text": "I didn't understand. You can try rephrasing."
              },
              {
                "text": "Can you reword your statement? I'm not understanding."
              },
              {
                "text": "I didn't get your meaning."
              }
            ],
            "response_type": "text",
            "selection_policy": "sequential"
          }
        ]
      },
      "conditions": "anything_else",
      "dialog_node": "Anything else",
      "previous_sibling": "node_5_1600512941197",
      "disambiguation_opt_out": true
    },
    {
      "type": "standard",
      "output": {
        "generic": [
          {
            "values": [
              {
                "text": "Hi ! How can I help you ?"
              }
            ],
            "response_type": "text",
            "selection_policy": "sequential"
          }
        ]
      },
      "conditions": "#Hello-messages",
      "dialog_node": "node_5_1600512941197",
      "previous_sibling": "Welcome"
    },
    {
      "type": "standard",
      "title": "Welcome",
      "output": {
        "generic": [
          {
            "values": [
              {
                "text": "Welcome to our Services"
              }
            ],
            "response_type": "text",
            "selection_policy": "sequential"
          }
        ]
      },
      "conditions": "welcome",
      "dialog_node": "Welcome"
    }
  ],
  "counterexamples": [],
  "system_settings": {
    "off_topic": {
      "enabled": true
    },
    "disambiguation": {
      "prompt": "Did you mean:",
      "enabled": true,
      "randomize": true,
      "max_suggestions": 5,
      "suggestion_text_policy": "title",
      "none_of_the_above_prompt": "None of the above"
    },
    "system_entities": {
      "enabled": true
    },
    "human_agent_assist": {
      "prompt": "Did you mean:"
    },
    "spelling_auto_correct": true
  },
  "learning_opt_out": false,
  "name": "My first skill",
  "language": "en",
  "description": ""
}
```

## Translating IBM Watson Assistant


**Notes**

 - Make sure to configure the proper export patterns for your IBM Watson Assistant files you upload to Crowdin. When downloading you should receive files named like "alarm.check_usersays_en.json", "alarm.check_usersays_fr.json". It's recommended to use Crowdin CLI or CVS integration to get translated package ready for import to the IBM Watson Assistant.

 - Every entry in Intent files woul require langauge code. This langauge code will not be set automatically, either you or a translators should put proper values using Crowdin Editor. If you enable automatic duplicates translation in your project settings, this action can be done once per every target language.
