# Smart Assistant Button

The "Smart Assistant" button allows you to analyze a document and create a template for the document.

When the "Smart Assistant" button is pressed, the following settings are available:

<figure><img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-ddfae1ec792dba2c505d5391614d2ea70a48877a%2Fimage%20(178).png?alt=media" alt=""><figcaption></figcaption></figure>

<table data-header-hidden><thead><tr><th width="55"></th><th width="212"></th><th></th></tr></thead><tbody><tr><td><strong>No.</strong></td><td><strong>Interface Element</strong></td><td><strong>Description</strong></td></tr><tr><td>1.</td><td>“Automatically Extract Attributes” setting</td><td>Allows the Robot to determine attribute values automatically, without direct specification.</td></tr><tr><td>2.</td><td>“Extract Only Specified Attributes” setting</td><td>Allows you to specify certain attributes to extract from the document (e.g., "buyer" or "seller").</td></tr><tr><td>3.</td><td>“Extract Specified and Automatically Determined Attributes” setting</td><td>Allows you to directly specify the attributes needed for extraction, as well as let the Robot determine the fields present in the analyzed document.</td></tr><tr><td>4.</td><td>“Also Extract Tables” flag</td><td>Allows extracting table headers from the document.<br><br>If the flag is not set, the table in the document will not be considered.</td></tr><tr><td>5.</td><td>“Clear Template” flag</td><td><p>Allows clearing the following in the template on each run:</p><ul><li>Anchors,</li><li>Attributes,</li><li>Drawings,</li><li>Table drawings.</li></ul></td></tr></tbody></table>

The Smart Assistant will help in working with the Template Generator: it will show how the document is analyzed and how the template is created.

[An example of working with the "Smart Assistant" in the Template Generator is demonstrated here.](https://sherparpa.ru/ucontent/?xbE0)
