{
    "componentChunkName": "component---src-templates-doc-page-js",
    "path": "/docs/en/common/bot_structure/about_bot_structure/",
    "result": {"data":{"site":{"siteMetadata":{"title":"Gatsby-doc-engine"}},"markdownRemark":{"id":"a019378d-d0b1-51ca-b8b6-5598d6be5d83","excerpt":"Bot project structure File structure Main components of a chat bot project: source code with the conversation logic, automatic tests and the configuration file…","html":"<h1>Bot project structure</h1>\n<hr>\n<h3>File structure</h3>\n<p>Main components of a chat bot project: source code with the conversation logic, automatic tests and the configuration file. These components are usually separated: the source code is stored in the <code class=\"language-text\">src</code> folder, and tests are stored in the <code class=\"language-text\">test</code> folder. The configuration file must have the name <code class=\"language-text\">chatbot.yaml</code> and must reside in the project’s root folder.</p>\n<p>Therefore, a minimum chat bot project contains:</p>\n<ul>\n<li>The <code class=\"language-text\">chatbot.yaml</code> file that contains the project descriptor and is located in the project’s root folder.</li>\n<li>The <code class=\"language-text\">src</code> folder where the <code class=\"language-text\">main.sc</code> file is located with the chat bot’s main script. This folder may also contain files with additional scripts, <code class=\"language-text\">.csv</code> dictionaries and <code class=\"language-text\">.js</code> scripts.</li>\n<li>The <code class=\"language-text\">test</code> folder with the <code class=\"language-text\">.xml</code> tests for the chat bot operation script.</li>\n</ul>\n</br>\n<h3>Project files</h3>\n</br>\n<table>\n<thead>\n<tr>\n<th>File</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"language-text\">chatbot.yaml</code></td>\n<td><a href=\"/1.10.5/docs/en/common/bot_structure/configuration_file\">Configuration file</a> of the chat bot. It contains the name of the script main file, information about linked modules, configuration of the NLU module, list of tests and other configuration data.</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">.sc</code></td>\n<td><a href=\"/1.10.5/docs/en/common/bot_structure/sc\">Script files</a>. These are the main files that define the conversation logic.</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">.js</code></td>\n<td><a href=\"/1.10.5/docs/en/common/bot_structure/js\">JS library files</a>. Contain JS code that can be used in script files. May contain functions, query processing logic, calls to external systems, etc.</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">.csv</code></td>\n<td><a href=\"/1.10.5/docs/en/common/bot_structure/csv\">Named entity dictionaries</a>. These are required for bulk processing of city or country names, personal names, etc. in patterns.</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">.yaml</code></td>\n<td><a href=\"/1.10.5/docs/en/common/bot_structure/yaml\">Dictionaries</a> of responses and other parameters to be used in scripts.</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">.xml</code></td>\n<td><a href=\"/1.10.5/docs/en/common/bot_structure/xml\">Test files</a>. Automatic tests that are executed at chat bot deployment time.</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">examples.json</code></td>\n<td><a href=\"/1.10.5/docs/en/classificator/work_with_classificator#Creating-a-reference-file-of-examples\">Example dictionary</a>. Used to train a classifier or manual classification.</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">descriptor.json</code></td>\n<td>Path of the main configuration file <code class=\"language-text\">chatbot.yaml</code>. Used for <a href=\"/1.10.5/docs/en/platform_ux/project_import_export\">project import/export</a>.</td>\n</tr>\n</tbody>\n</table>","frontmatter":{"title":"","description":null},"headings":[{"value":"Bot project structure"}]}},"pageContext":{"slug":"/docs/en/common/bot_structure/about_bot_structure/","previous":{"fields":{"slug":"/docs/en/common/bot_structure/configuration_file/"},"frontmatter":{"title":"","description":null}},"next":{"fields":{"slug":"/docs/en/chat_api/methods/send_request_post/"},"frontmatter":{"title":"","description":null}}}},
    "staticQueryHashes": ["1209419333"]}