{"_id":"5845a4a99f6fbb1b00430803","category":{"_id":"5845a4a89f6fbb1b004307bd","project":"54d3007669578e0d002730c9","__v":0,"version":"5845a4a89f6fbb1b004307b7","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-07-08T18:48:02.369Z","from_sync":false,"order":5,"slug":"integrations","title":"Integrations"},"parentDoc":null,"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"},"__v":0,"user":"55a04a395730f40d001104d2","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-06-10T17:00:11.753Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":12,"body":"* [Overview](#overview)\n* [Integrate API.AI Agent with Tropo](#integrate-apiai-agent-with-tropo)\n* [Create a Messaging Service in Tropo](#create-a-messaging-service-in-tropo)\n* [Test Your Bot](#test-your-bot)\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Overview\"\n}\n[/block]\n**API.AI Tropo Integration** for SMS allows you to easily create Tropo bots with natural language understanding based on the API.AI technology.\n\nYou can use our source code from <a href=\"https://github.com/api-ai/apiai-nodejs-client/tree/master/samples/tropo\">github</a> to create custom Tropo bots.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Integrate API.AI Agent with Tropo\"\n}\n[/block]\n[Create an API.AI agent](https://console.api.ai/api-client/#/newAgent) with the help of the [API.AI NLU technology tools](https://docs.api.ai/docs/key-concepts).\n\nIn your API.AI agent go to Integrations menu, enable Tropo integration.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/VnxN6tdSQC3TcoGUeGfz_image02.png\",\n        \"image02.png\",\n        \"1596\",\n        \"1288\",\n        \"\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nThen click ‘Start’ and copy the Web (HTTP) API.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/7efb8cf-tropo-edit.png\",\n        \"tropo-edit.png\",\n        1588,\n        1047,\n        \"#fafafa\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Create a Messaging Service in Tropo\"\n}\n[/block]\nIn your [Tropo account](https://www.tropo.com/applications) go to Applications and click 'Create New App'.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/C7TMeSsjRWaMoi9gMqO3_image04.png\",\n        \"image04.png\",\n        \"1946\",\n        \"948\",\n        \"#0473a3\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nFill in the following fields: \n\n  * Name.\n  * Choose “Web (HTTP) API” in Type of Application part, then paste http link from API.AI.\n  * Choose Country and City for generate of phone number.\n  * Click “Create app”. \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/6sKTgSW1TRNnyDPBbFFQ_image03.png\",\n        \"image03.png\",\n        \"1310\",\n        \"1330\",\n        \"#09a1e1\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n  * Use by default “Development” checkbox.\n  * Clear the field “Voice Script”.\n  * Click “Save settings”. \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/TxsHlL6oRvqlHdMgBk6G_image01.png\",\n        \"image01.png\",\n        \"1314\",\n        \"1192\",\n        \"#1a97cb\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Test Your Bot\"\n}\n[/block]\nTest your bot sending text messages to the messaging service number.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/V6VoanbuSsChG8n4rSnz_image05.png\",\n        \"image05.png\",\n        \"1125\",\n        \"1999\",\n        \"#e69310\",\n        \"\"\n      ],\n      \"sizing\": \"smart\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"tropo-integration","type":"basic","title":"Tropo"}
* [Overview](#overview) * [Integrate API.AI Agent with Tropo](#integrate-apiai-agent-with-tropo) * [Create a Messaging Service in Tropo](#create-a-messaging-service-in-tropo) * [Test Your Bot](#test-your-bot) [block:api-header] { "type": "basic", "title": "Overview" } [/block] **API.AI Tropo Integration** for SMS allows you to easily create Tropo bots with natural language understanding based on the API.AI technology. You can use our source code from <a href="https://github.com/api-ai/apiai-nodejs-client/tree/master/samples/tropo">github</a> to create custom Tropo bots. [block:api-header] { "type": "basic", "title": "Integrate API.AI Agent with Tropo" } [/block] [Create an API.AI agent](https://console.api.ai/api-client/#/newAgent) with the help of the [API.AI NLU technology tools](https://docs.api.ai/docs/key-concepts). In your API.AI agent go to Integrations menu, enable Tropo integration. [block:image] { "images": [ { "image": [ "https://files.readme.io/VnxN6tdSQC3TcoGUeGfz_image02.png", "image02.png", "1596", "1288", "", "" ], "sizing": "full" } ] } [/block] Then click ‘Start’ and copy the Web (HTTP) API. [block:image] { "images": [ { "image": [ "https://files.readme.io/7efb8cf-tropo-edit.png", "tropo-edit.png", 1588, 1047, "#fafafa" ], "sizing": "full" } ] } [/block] [block:api-header] { "type": "basic", "title": "Create a Messaging Service in Tropo" } [/block] In your [Tropo account](https://www.tropo.com/applications) go to Applications and click 'Create New App'. [block:image] { "images": [ { "image": [ "https://files.readme.io/C7TMeSsjRWaMoi9gMqO3_image04.png", "image04.png", "1946", "948", "#0473a3", "" ], "sizing": "full" } ] } [/block] Fill in the following fields: * Name. * Choose “Web (HTTP) API” in Type of Application part, then paste http link from API.AI. * Choose Country and City for generate of phone number. * Click “Create app”. [block:image] { "images": [ { "image": [ "https://files.readme.io/6sKTgSW1TRNnyDPBbFFQ_image03.png", "image03.png", "1310", "1330", "#09a1e1", "" ] } ] } [/block] * Use by default “Development” checkbox. * Clear the field “Voice Script”. * Click “Save settings”. [block:image] { "images": [ { "image": [ "https://files.readme.io/TxsHlL6oRvqlHdMgBk6G_image01.png", "image01.png", "1314", "1192", "#1a97cb", "" ] } ] } [/block] [block:api-header] { "type": "basic", "title": "Test Your Bot" } [/block] Test your bot sending text messages to the messaging service number. [block:image] { "images": [ { "image": [ "https://files.readme.io/V6VoanbuSsChG8n4rSnz_image05.png", "image05.png", "1125", "1999", "#e69310", "" ], "sizing": "smart" } ] } [/block]