{"_id":"5845a4aa9f6fbb1b0043081e","__v":0,"category":{"_id":"5845a4a89f6fbb1b004307be","project":"54d3007669578e0d002730c9","__v":0,"version":"5845a4a89f6fbb1b004307b7","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-07-30T07:08:52.789Z","from_sync":false,"order":6,"slug":"domains","title":"Domains (Deprecated)"},"project":"54d3007669578e0d002730c9","version":{"_id":"5845a4a89f6fbb1b004307b7","project":"54d3007669578e0d002730c9","__v":2,"createdAt":"2016-12-05T17:32:24.708Z","releaseDate":"2016-12-05T17:32:24.708Z","categories":["5845a4a89f6fbb1b004307b8","5845a4a89f6fbb1b004307b9","5845a4a89f6fbb1b004307ba","5845a4a89f6fbb1b004307bb","5845a4a89f6fbb1b004307bc","5845a4a89f6fbb1b004307bd","5845a4a89f6fbb1b004307be","5845a4a89f6fbb1b004307bf","5845a4a89f6fbb1b004307c0","592deb23644f060f008e5aa6"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"25.0.0","version":"25"},"user":"55bafe141b0d663700781682","parentDoc":null,"updates":["5831e6fd0f457819008f41b7"],"next":{"pages":[],"description":""},"createdAt":"2015-08-04T08:29:21.922Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":true,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":4,"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}\n[/block]\n* [Calculator: Currency](#calculator-currency)\n* [Calculator: Tips](#calculator-tips)\n* [Calculator: Units](#calculator-units)\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Calculator: Currency\"\n}\n[/block]\n## Action\n\nName| Description  \n---|---  \ncalculator.currency| Requests to convert currencies  \n  \n## Data\n\nName| Parent| Data type| Required / Optional| Description| Request examples  \n---|---|---|---|---|---  \namount| _data_| number| optional| Defines the amount to convert| Convert 3 rubles in dollars. (amount=3)  \ncurrency_from| _data_| object| optional| Defines the source currency|  \ncode| *currency_from*| string| required| Defines currency code| Convert 3 rubles in dollars. (code=RUB)  \nname_sg| *currency_from*| string| optional| Defines currency in singular| Convert 3 rubles in dollars. (name_sg=Russian Ruble)  \nname_pl| *currency_from*| string| optional| Defines currency in plural| Convert 3 rubles in dollars. (name_pl=Russian Rubles)  \ncurrency_to| _data_| object| optional| Defines the target currency| \ncode| *currency_to*| string| required| Defines currency code| Convert 3 rubles in dollars. (code=USD)  \nname_sg| *currency_to*| string| optional| Defines currency in singular| Convert 3 rubles in dollars. (name_sg=US Dollar)  \nname_pl| *currency_to*| string| optional| Defines currency in plural| Convert 3 rubles in dollars. (name_pl=US Dollars)  \n  \n## Calculator: Currency: Service\n\n### Action\n\nName| Description  \n---|---  \ncalculator.currency_service| Requests to change default currency exchange service  \n  \n### Data\n\nName| Parent| Data type| Required / Optional| Description| Request examples  \n---|---|---|---|---|---  \nservice_name| _data_| string| optional| Defines maps service to be used by defaul. Available values: _Forex_, _Google_, _Oanda_, _WolframAlpha_, _Yahoo_| Use forex. (service_name=Forex)  \nuse| _data_| string| optional| Defines the intent to use or not to use the service. Can be_ true_ or _false._  If not set, user did not specify what service to use.| Use forex. (use=true) <br> Do not use forex. (use=false) <br> Use other service to convert currencies. ()\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Calculator: Tips\"\n}\n[/block]\n## Action\n\nName| Description  \n---|---  \ncalculator.tips| Requests to calculate tips  \n  \n## Data\n\nName| Parent| Data type| Required / Optional| Description| Request examples  \n---|---|---|---|---|---  \namount_without_tip| _data_| number| optional| Defines the amount without tip| 100 dollars plus 20% tip. (amount_without_tip=100)  \ntip_percentage| _data_| number| optional| Defines the tip percentage| 100 dollars plus 20% tip. (tip_percentage=20)  \ntip_amount| _data_| number| optional| Defines the tip amount| 100 dollars plus 30 percent tip. (tip_amount=30)  \npeople_number| _data_| number| optional| Defines the number of persons| 100 dollars plus 20% tip for 5 people. (people_number=5)  \nresult_full| _data_| number| optional| Defines the result| 100 dollars plus 20% tip. (result_full=120)  \nresult_person| _data_| number| optional| Defines the result per person| 100 dollars plus 20% tip for 5 people. (result_person=24)\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Calculator: Units\"\n}\n[/block]\n## Action\n\nName| Description  \n---|---  \ncalculator.units| Requests to convert units  \n  \n## Data\n\nName| Parent| Data type| Required / Optional| Description| Request examples  \n---|---|---|---|---|---  \namount| _data_| number| optional| Defines the amount to convert| Convert 3 miles in kilometers. (amount=3)  \nunit_from| _data_| object| optional| Defines the source unit|  \nunit_code| *unit_from*| string| required| Defines the unit code| Convert 3 miles in kilometers. (unit_code=mi)  \nunit_name_sg| *unit_from*| string| optional| Defines the unit name in singular| Convert 3 miles in kilometers. (unit_name_sg=mile)  \nunit_name_pl| *unit_from*| string| optional| Defines the unit name in plural| Convert 3 miles in kilometers. (unit_name_pl=miles)  \ncategoty| *unit_from*| string| optional| Defines the category of units to convert| Convert 3 miles in kilometers. (category=length)  \nunit_to| _data_| object| optional| Defines the target unit|  \nunit_code| *unit_to*| string| required| Defines the unit code| Convert 3 miles in kilometers. (unit_code=km)  \nunit_name_sg| *unit_to*| string| optional| Defines the unit name in singular| Convert 3 miles in kilometers. (unit_name_sg=kilometre)  \nunit_name_pl| *unit_to*| string| optional| Defines the unit name in plural| Convert 3 miles in kilometers. (unit_name_pl=kilometres)  \ncategoty| *unit_to*| string| optional| Defines the category of units to convert| Convert 3 miles in kilometers. (category=length)","excerpt":"","slug":"calculator","type":"basic","title":"Calculator"}
[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" } [/block] * [Calculator: Currency](#calculator-currency) * [Calculator: Tips](#calculator-tips) * [Calculator: Units](#calculator-units) [block:api-header] { "type": "basic", "title": "Calculator: Currency" } [/block] ## Action Name| Description ---|--- calculator.currency| Requests to convert currencies ## Data Name| Parent| Data type| Required / Optional| Description| Request examples ---|---|---|---|---|--- amount| _data_| number| optional| Defines the amount to convert| Convert 3 rubles in dollars. (amount=3) currency_from| _data_| object| optional| Defines the source currency| code| *currency_from*| string| required| Defines currency code| Convert 3 rubles in dollars. (code=RUB) name_sg| *currency_from*| string| optional| Defines currency in singular| Convert 3 rubles in dollars. (name_sg=Russian Ruble) name_pl| *currency_from*| string| optional| Defines currency in plural| Convert 3 rubles in dollars. (name_pl=Russian Rubles) currency_to| _data_| object| optional| Defines the target currency| code| *currency_to*| string| required| Defines currency code| Convert 3 rubles in dollars. (code=USD) name_sg| *currency_to*| string| optional| Defines currency in singular| Convert 3 rubles in dollars. (name_sg=US Dollar) name_pl| *currency_to*| string| optional| Defines currency in plural| Convert 3 rubles in dollars. (name_pl=US Dollars) ## Calculator: Currency: Service ### Action Name| Description ---|--- calculator.currency_service| Requests to change default currency exchange service ### Data Name| Parent| Data type| Required / Optional| Description| Request examples ---|---|---|---|---|--- service_name| _data_| string| optional| Defines maps service to be used by defaul. Available values: _Forex_, _Google_, _Oanda_, _WolframAlpha_, _Yahoo_| Use forex. (service_name=Forex) use| _data_| string| optional| Defines the intent to use or not to use the service. Can be_ true_ or _false._  If not set, user did not specify what service to use.| Use forex. (use=true) <br> Do not use forex. (use=false) <br> Use other service to convert currencies. () [block:api-header] { "type": "basic", "title": "Calculator: Tips" } [/block] ## Action Name| Description ---|--- calculator.tips| Requests to calculate tips ## Data Name| Parent| Data type| Required / Optional| Description| Request examples ---|---|---|---|---|--- amount_without_tip| _data_| number| optional| Defines the amount without tip| 100 dollars plus 20% tip. (amount_without_tip=100) tip_percentage| _data_| number| optional| Defines the tip percentage| 100 dollars plus 20% tip. (tip_percentage=20) tip_amount| _data_| number| optional| Defines the tip amount| 100 dollars plus 30 percent tip. (tip_amount=30) people_number| _data_| number| optional| Defines the number of persons| 100 dollars plus 20% tip for 5 people. (people_number=5) result_full| _data_| number| optional| Defines the result| 100 dollars plus 20% tip. (result_full=120) result_person| _data_| number| optional| Defines the result per person| 100 dollars plus 20% tip for 5 people. (result_person=24) [block:api-header] { "type": "basic", "title": "Calculator: Units" } [/block] ## Action Name| Description ---|--- calculator.units| Requests to convert units ## Data Name| Parent| Data type| Required / Optional| Description| Request examples ---|---|---|---|---|--- amount| _data_| number| optional| Defines the amount to convert| Convert 3 miles in kilometers. (amount=3) unit_from| _data_| object| optional| Defines the source unit| unit_code| *unit_from*| string| required| Defines the unit code| Convert 3 miles in kilometers. (unit_code=mi) unit_name_sg| *unit_from*| string| optional| Defines the unit name in singular| Convert 3 miles in kilometers. (unit_name_sg=mile) unit_name_pl| *unit_from*| string| optional| Defines the unit name in plural| Convert 3 miles in kilometers. (unit_name_pl=miles) categoty| *unit_from*| string| optional| Defines the category of units to convert| Convert 3 miles in kilometers. (category=length) unit_to| _data_| object| optional| Defines the target unit| unit_code| *unit_to*| string| required| Defines the unit code| Convert 3 miles in kilometers. (unit_code=km) unit_name_sg| *unit_to*| string| optional| Defines the unit name in singular| Convert 3 miles in kilometers. (unit_name_sg=kilometre) unit_name_pl| *unit_to*| string| optional| Defines the unit name in plural| Convert 3 miles in kilometers. (unit_name_pl=kilometres) categoty| *unit_to*| string| optional| Defines the category of units to convert| Convert 3 miles in kilometers. (category=length)