{
    "componentChunkName": "component---src-templates-doc-page-js",
    "path": "/docs/en/bot_answers/about_bot_answers/",
    "result": {"data":{"site":{"siteMetadata":{"title":"Gatsby-doc-engine"}},"markdownRemark":{"id":"1b8cc35d-7d11-5fa1-b767-4e717b534d14","excerpt":"Bot's reply?> You can use JAICP to transmit consistently various bot messages, such as pictures or buttons. The messages transmitted will then be converted to…","html":"<h1>Bot's reply</h1>\n<hr>\n<p class='warn'>You can use JAICP to transmit consistently various bot messages, such as pictures or buttons. The messages transmitted will then be converted to the channel-specific format.</p>\n<p>Generic responses are transmitted in the <code class=\"language-text\">replies</code> structure. <code class=\"language-text\">replies</code> is an array of bot responses containing strictly <a href=\"/1.10.3/docs/en/bot_answers/table_replies\">typed items</a>. You can transmit it to <a href=\"/1.10.3/docs/en/channels/channels\">different channels</a>, such as Telegram, Slack etc.</p>\n<p>The bot returns one or more responses which are specified within special tags or are put to <code class=\"language-text\">$response.replies</code> by the script.</p>\n<div class=\"gatsby-highlight\" data-language=\"sc\"><pre class=\"language-sc\"><code class=\"language-sc\"><span class=\"token variableParameter\">script:</span>\n    $response.replies.push( {\n        type: text|image|buttons|...\n        text: ...\n        imageUrl: ...\n        }\n ]</code></pre></div>\n<p class='warn'><a href=/1.10.3/docs/en/JS_API/variables/response  ><code class=\"language-text\">$response.replies</code></a> is the list of replies obtained in the process of reaction processing.</p>\n</br>\n<h2>Response types</h2>\n<p>Below is the list of responses supported by the <code class=\"language-text\">replies</code> platform.</p>\n<table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"/1.10.3/docs/en/bot_answers/message_types\"><code class=\"language-text\">text</code></a></td>\n<td>A simple text response; each item is output as a single message.</td>\n</tr>\n<tr>\n<td><a href=\"/1.10.3/docs/en/bot_answers/message_types#buttons\"><code class=\"language-text\">buttons</code></a></td>\n<td>Output a button.</td>\n</tr>\n<tr>\n<td><a href=\"/1.10.3/docs/en/bot_answers/message_types#inlinebuttons\"><code class=\"language-text\">inlineButtons</code></a></td>\n<td>Output an inline button.</td>\n</tr>\n<tr>\n<td><a href=\"/1.10.3/docs/en/bot_answers/message_types#image\"><code class=\"language-text\">image</code></a></td>\n<td>Output an image.</td>\n</tr>\n<tr>\n<td><a href=\"/1.10.3/docs/en/bot_answers/message_types#raw\"><code class=\"language-text\">raw</code></a></td>\n<td>Can be used to transmit channel-specific methods.</td>\n</tr>\n<tr>\n<td><a href=\"/1.10.3/docs/en/bot_answers/message_types#switch\"><code class=\"language-text\">switch</code></a></td>\n<td>Switch the conversation from the bot to an operator.</td>\n</tr>\n<tr>\n<td><a href=\"/1.10.3/docs/en/bot_answers/message_types#location\"><code class=\"language-text\">location</code></a></td>\n<td>Output coordinates.</td>\n</tr>\n<tr>\n<td><a href=\"/1.10.3/docs/en/bot_answers/message_types#timeout\"><code class=\"language-text\">timeout</code></a></td>\n<td>Configure switching to a certain state if there is no response from the user.</td>\n</tr>\n<tr>\n<td><a href=\"/1.10.3/docs/en/bot_answers/message_types#dtmf\"><code class=\"language-text\">dtmf</code></a></td>\n<td>Request a DTMF message from the user (numbers and letters in the tone mode). <a href=\"/1.10.3/docs/en/telephony/telephony\">Telephone channel only</a>.</td>\n</tr>\n<tr>\n<td><a href=\"/1.10.3/docs/en/bot_answers/message_types#hangup\"><code class=\"language-text\">hangup</code></a></td>\n<td>Abort call. <a href=\"/1.10.3/docs/en/telephony/telephony\">Telephone channel only</a>.</td>\n</tr>\n<tr>\n<td><a href=\"/1.10.3/docs/en/bot_answers/message_types#htmlresponse\"><code class=\"language-text\">htmlResponse</code></a></td>\n<td>The <code class=\"language-text\">htmlResponse</code> response type is used to output the visual component for the skills created using the <a href=\"/1.10.3/docs/en/channels/google_assistant/interactive_canvas\">Interactive Canvas</a>.</td>\n</tr>\n<tr>\n<td><a href=\"/1.10.3/docs/en/bot_answers/message_types#carousel\"><code class=\"language-text\">carousel</code></a></td>\n<td>Displays a list of elements to select one of them.</td>\n</tr>\n</tbody>\n</table>\n</br>\n<p>You can find details about the bot response format, parameters and message types for channels in the <a href=\"/1.10.3/docs/en/bot_answers/message_types\">Response types</a> article.</p>","frontmatter":{"title":"","description":null},"headings":[{"value":"Bot's reply"}]}},"pageContext":{"slug":"/docs/en/bot_answers/about_bot_answers/","previous":{"fields":{"slug":"/docs/en/bot_answers/fileEvent/"},"frontmatter":{"title":"","description":null}},"next":{"fields":{"slug":"/docs/en/bot_answers/events_table/"},"frontmatter":{"title":"","description":null}}}},
    "staticQueryHashes": ["1209419333"]}