{
    "componentChunkName": "component---src-templates-doc-page-js",
    "path": "/docs/en/NLU_core/intent/",
    "result": {"data":{"site":{"siteMetadata":{"title":"Gatsby-doc-engine"}},"markdownRemark":{"id":"ee1fd30f-8476-573c-80ac-3b2c3ac069e8","excerpt":"intent Description  — the path to the intent is written after the tag. An intent is a key entity of the NLU service; it unifies a set of phrases, user intent…","html":"<h1>intent</h1>\n<hr>\n<h4>Description</h4>\n<p><code class=\"language-text\">intent</code> — the path to the intent is written after the tag. An intent is a key entity of the NLU service; it unifies a set of phrases, user intent and other metadata.</p>\n<p class='warn'>The local tag <code class=\"language-text\">intent</code> is active only in the dialog context, and transition to the state is possible from the nearest parent state or from child states. You can use the global tag <code class=\"language-text\">intent!</code> to transfer the dialogue into this state from any other state.</p>\n</br>\n<h4>Value type</h4>\n<ul>\n<li>string; the path to the intent.</li>\n</ul>\n</br>\n<h4>Parameters</h4>\n<ul>\n<li><code class=\"language-text\">fromState</code> (string) — defines a state from which the transition is possible.</li>\n<li><code class=\"language-text\">toState</code> (string) — defines a state to which the transition is possible.</li>\n<li><code class=\"language-text\">onlyThisState</code> (boolean) — if <code class=\"language-text\">true</code>, the transition to a state can only be made from the state specified in the <code class=\"language-text\">fromState</code> flag, not from the child states. The default is <code class=\"language-text\">false</code>.</li>\n</ul>\n<p class='warn'><a href=/1.10.3/docs/en/script_development/context  >Learn more about context managing</a></p>\n</br>\n<h4>Nested data</h4>\n<ul>\n<li>multiline data</li>\n</ul>\n</br>\n<h4>Syntax</h4>\n<p><code class=\"language-text\">/</code> is the delimiter in the hierarchy of elements in the intent path:</p>\n<ul>\n<li><code class=\"language-text\">/hi</code> — the path comprises the <code class=\"language-text\">/ character and the intent name.</code></li>\n<li><code class=\"language-text\">/hi/politely</code> — a nested intent. The nesting depth of intents is unlimited.</li>\n</ul>\n</br>\n<h4>How to use</h4>\n<ul>\n<li>Simple example of use:</li>\n</ul>\n<div class=\"gatsby-highlight\" data-language=\"sc\"><pre class=\"language-sc\"><code class=\"language-sc\"><span class=\"token keyword\">theme:</span> /\n\n    <span class=\"token keyword\">state:</span> Hello\n        <span class=\"token storageType\">intent:</span> /hi\n        <span class=\"token variableParameter\">a:</span> Hello.\n\n    <span class=\"token keyword\">state:</span> Goodbye\n        <span class=\"token storageType\">intent:</span> /bye\n        <span class=\"token variableParameter\">a:</span> Bye.\n\n    <span class=\"token keyword\">state:</span> CatchAll\n        <span class=\"token storageType\">event:</span> noMatch\n        <span class=\"token variableParameter\">a:</span> You said: <span class=\"token constantCharacter\">{{ $request.query }}</span></code></pre></div>\n</br>\n<ul>\n<li>Example of using flags <code class=\"language-text\">fromState</code>, <code class=\"language-text\">onlyThisState</code>:</li>\n</ul>\n<div class=\"gatsby-highlight\" data-language=\"sc\"><pre class=\"language-sc\"><code class=\"language-sc\"><span class=\"token keyword\">theme:</span> /\n\n    <span class=\"token keyword\">state:</span> HowAreYou || modal = true\n        <span class=\"token storageType\">intent:</span> /HowAreYou\n        <span class=\"token variableParameter\">a:</span> And you\n\n        <span class=\"token keyword\">state:</span> Bad\n            <span class=\"token storageType\">intent:</span> /Bad\n            <span class=\"token variableParameter\">a:</span> Don't be upset!\n\n        <span class=\"token keyword\">state:</span> Good\n            <span class=\"token storageType\">intent:</span> /Good\n            <span class=\"token variableParameter\">a:</span> Where are you from?\n    \n    <span class=\"token keyword\">state:</span> Time\n        <span class=\"token storageType\">intent:</span> /WhatTime || fromState=/HowAreYou<span class=\"token entityNameClass\">, onlyThisState =</span> true\n        <span class=\"token variableParameter\">a:</span> It's perfect time to order food!\n</code></pre></div>\n<p>In this example the transition to <code class=\"language-text\">Time</code> state is only possible from <code class=\"language-text\">HowAreYou</code> state as we specified it in the <code class=\"language-text\">fromState</code> flag. In this case, the transition from the nested states <code class=\"language-text\">Good</code> or <code class=\"language-text\">Bad</code> will not occur.</p>\n<p class='warn'><a href=/1.10.3/docs/en/platform_ux/nlu_core_caila/intents  >Learn more about filling in intents</a></p>","frontmatter":{"title":"","description":null},"headings":[{"value":"intent"}]}},"pageContext":{"slug":"/docs/en/NLU_core/intent/","previous":{"fields":{"slug":"/docs/en/NLU_core/intent_detection/"},"frontmatter":{"title":"","description":null}},"next":{"fields":{"slug":"/docs/en/NLU_core/intent!/"},"frontmatter":{"title":"","description":null}}}},
    "staticQueryHashes": ["1209419333"]}