{"__v":0,"_id":"5845a4aa9f6fbb1b00430826","category":{"version":"5845a4a89f6fbb1b004307b7","project":"54d3007669578e0d002730c9","_id":"5845a4a89f6fbb1b004307be","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-07-30T07:08:52.789Z","from_sync":false,"order":6,"slug":"domains","title":"Domains"},"parentDoc":null,"project":"54d3007669578e0d002730c9","user":"55bafe141b0d663700781682","version":{"__v":1,"_id":"5845a4a89f6fbb1b004307b7","project":"54d3007669578e0d002730c9","createdAt":"2016-12-05T17:32:24.708Z","releaseDate":"2016-12-05T17:32:24.708Z","categories":["5845a4a89f6fbb1b004307b8","5845a4a89f6fbb1b004307b9","5845a4a89f6fbb1b004307ba","5845a4a89f6fbb1b004307bb","5845a4a89f6fbb1b004307bc","5845a4a89f6fbb1b004307bd","5845a4a89f6fbb1b004307be","5845a4a89f6fbb1b004307bf","5845a4a89f6fbb1b004307c0"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"25.0.0","version":"25"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-08-04T09:10:16.205Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":12,"body":"[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Domains are being deprecated\",\n  \"body\": \"Domains are being deprecated. If you're currently using domains, please consider using our new [Prebuilt Agents](https://docs.api.ai/docs/prebuilt-agents).\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"This domain is supported in the following languages:\\n* English\\n* Italian\"\n}\n[/block]\n## Action\n\nName| Description  \n---|---  \nlanguage.switch| Requests about the languages the user and the app speaks\n  \n## Data\n\nName| Parent| Data type| Required / Optional| Description| Request examples\n---|---|---|---|---|---\nrequest_type| _data_| string| optional| Defines the type of question. Available values: _assistant_, _user_, _switch_| I speak German. (request_type=user)\nlanguage| _data_| object| optional| Object to store lang &amp; langCode.|  \nlang| _language_| string| requierd| Defines the name of the language.| Speak German. (lang=German)\ndialect| _language_| string| requierd| Specifies the name of the language dialect.| Speak European Portuguese. (dialect=European)  \nlangCode| _language_ | string | requierd | Language two-letter language code.| Speak German. (langCode=de)</br>**Note:** Language names and two-letter codes are in ISO 639-1 format.","excerpt":"","slug":"language-selection","type":"basic","title":"Language Selection"}

Language Selection


[block:callout] { "type": "warning", "title": "Domains are being deprecated", "body": "Domains are being deprecated. If you're currently using domains, please consider using our new [Prebuilt Agents](https://docs.api.ai/docs/prebuilt-agents)." } [/block] [block:callout] { "type": "info", "body": "This domain is supported in the following languages:\n* English\n* Italian" } [/block] ## Action Name| Description ---|--- language.switch| Requests about the languages the user and the app speaks ## Data Name| Parent| Data type| Required / Optional| Description| Request examples ---|---|---|---|---|--- request_type| _data_| string| optional| Defines the type of question. Available values: _assistant_, _user_, _switch_| I speak German. (request_type=user) language| _data_| object| optional| Object to store lang &amp; langCode.| lang| _language_| string| requierd| Defines the name of the language.| Speak German. (lang=German) dialect| _language_| string| requierd| Specifies the name of the language dialect.| Speak European Portuguese. (dialect=European) langCode| _language_ | string | requierd | Language two-letter language code.| Speak German. (langCode=de)</br>**Note:** Language names and two-letter codes are in ISO 639-1 format.