# Auto Designer

Attention: To use AutoDesigner, it is necessary to:

* install .NET Desktop Runtime 8,
* restart Sherpa Designer.

You can download and install the required version from this link:

{% embed url="<https://dotnet.microsoft.com/en-us/download/dotnet/8.0>" %}

AutoDesigner is an AI tool that allows you to create and modify projects in Sherpa Designer through a text dialogue with the user.

AutoDesigner uses a large language model and allows debugging, fixing, and supplementing existing projects, checking and correcting selectors, and answering various questions about the project.

### Getting Started

To get started, you need to go to the "AutoDesigner" tab on the "Main Panel" in Sherpa Designer and enter a request in the "Message in chat..." field.

This tab features a chat interface, which consists of:

1. a dialogue panel area with a field for entering the user's request,
2. a dialogue display area with the large language model.

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

### Dialogue Panel Area

The dialogue panel features the following interface elements:

* Icon ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAVCAYAAABCIB6VAAABeklEQVQ4T+2TIavCYBSGX2HBsOjAYFDYD9AgGOY/mP9Bu4Yl09Alg4bJDAoOWdJiVrAIRovBsKBgNNgWNAj33nNgoveqm0Fu8U1j3zkP53vP+0W+foQ3KPIB+67+jxWdTgeO42C9XkMQBKTTaVSrVaiqGrjuuxOfz2cUCgWsVis0Gg3kcjmcTifM53Pouo5yucz/n+kuuNVqod1uY7lcIh6Pw3VdJJNJRKNR/s5msxgOh08nvwuWJAmDweDSWCqVUKvVGE4yTRPj8RiLxeLh0H/Au90OqVQKnudBFEVu/A0mi/L5PNc80g1Y0zSehkTQyWQCRVFQr9ex3W7RbDbZGlom2XE8HsOBqYrg/X7/AvU7p9MpDMPAbDbDaDRCr9fjHYSa2C/abDaQZZmTQAu71n6/RyaT4VQUi8XXwP6CbNuGZVk3catUKmwPpeLluFEDZZmu3u12cTgcmJFIJPiBUI6DFOpJ0/Xp5cVisSDe5TwUODTtqvADfr/H3yWq5sI75nquAAAAAElFTkSuQmCC) "Show chat history", which allows you to open the chat history with AutoDesigner from today, yesterday, and earlier periods to continue the conversation or reuse requests.

<figure><img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-7c81ed0262b02c234aedd296c16c8c98997770f4%2Funknown.jpeg?alt=media" alt=""><figcaption></figcaption></figure>

* User message input field "Message in chat...", which allows you to describe tasks or request actions.

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

* Icon ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAUCAYAAAC9BQwsAAAA30lEQVQ4T+2TrwqDUBjFj2Aw+BAaDLdpFIy+gojJcl/BYBCjVTAYxXewKRgMPoFJg8GHsLndG8bgDjcGYws78MXf9+ccPum4Cm9I+j64LAuSJMG2bQjDEJTSh4cIqwZBAN/34bouPM9DWZbQNE2ABdAwDAzDgH3f0XUdZFmGaZq87iWAuq4jTVOs63qbVNc1+r7/g8yccRxh2zYURUFVVYjj+Lk5lmWhbVseByuWISEE8zyfu8q6MyDLMp5hnueYpolPPs2RQVEUoWkaDjqOg6IooKrqOfjqh/3AW3181QvJhr7FaFzzXwAAAABJRU5ErkJggg==) "Attach files", which allows you to add additional files to the request (for example, screenshots of interfaces).

After clicking the icon, an "Open" window will appear, where you need to select a file and click the "Open" button:

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

Example request:

“In the TicTacToe project, add a victory counter according to the new rules from test.txt: variables ScoreX/ScoreO/TotalGames, display in UI, save in JSON, reset button.”

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

AutoDesigner will receive the list of files, read them, study each diagram in the project, update all data according to the conditions described by the user, and add new diagrams to the project, sending a message that it has processed the user's request with a detailed description of the changes made:

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

Next, the user will be able to run and test the modified project independently (also, if necessary, enter additional requests in AutoDesigner).

* Button ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAfCAYAAADjuz3zAAABkklEQVRIS+3WUYqCYBAH8L8RlZUJ0UNk0EV66QAdoFvYCbQT5EF676GHLuAlohcrIoKISml3Z9wvWtfMr92FfXAgQvL7OY5+0yhvH4E/CEXAp9MJ+/0el8sF1+tV6lK5XA6FQgG1Wg2qqvJahgndbDao1+v8A50oE5TI+XzGdrtlo1wuh/BqtUK1WkWlUpHxvp0r8FarFcLL5RKGYUhnGpfFYrFAp9MJYXHwo3Q/F2fwrYr/pxSO43BWpmkmPmOpjEejEWzbZpC+Lct6iKeG71GhJeGpYLr94XCIbrcL2valUgnNZhOTyQTj8Ti2LE/he3Q6naLf73PCs9kMg8HgIZ4IR1HqI71ej+H5fI4gCB7iiTDdvuu6oEwJpbiH6Vjg7XabyyLiaSlETcWCKCzwfD7/5Q15Ckffpzj4V7pbBkv3fumHl/YKGRy/8+jvn7amoihpS5muH3ueB13Xb+PRq7rv+1iv1zyj8FxxPB6x2+3QaDRQLBZfcgmlMU3TNP7chsLD4cBDIXWtV4KaEQ2FhFK8A3WBrbN5QzHtAAAAAElFTkSuQmCC) "Send message", which allows sending the user's request for processing in the chat.
* Button ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAApCAYAAAAvUenwAAABkklEQVRIS+2XwaqCUBCGRzEjKwVpkRX4Ai7b9Cg9ik/go/hAtnQTukgrRBTRiu5tDiRKXTynMO7lesCFnpn5Zn6Ozsh93Ra0uLgO0KTuZyXK8xziOIbT6QTX67Upudo+z/MgiiLIsgyDwaDcKyvA4Pv9HlRVJQbowLIwoaIo4Hg8khiSJBH3EhAEAYxGIxgOhyxxH2zvkNlsVgd4ngfz+Zw582fZbLdb0HW9Dqg+fKuEm3MHaFTwn0jkui74vt8oBxpMJhMwDKO0pZJoPB5DmqZUAEEQ4Hw+swHW6zXsdjsqwHQ6Bdu22QBUkX8wopKodcBqtaKWCD+SjuOwSaRpGhMgSRI2QOsStQ4wTZNaIjymlmWxSdTr9eByuVAXUp3fqI7pZrOBw+FABcBTtFwu2SqgivyrX7Sugs+PLTh4LRYL4DjuHfmJ79P3AJuLoii1wfUVEna2MAzJlIirnE2zLIMoikh/7ff7r8QmbRMHaGy3eNUAeIM9GMd3lk9ENRPszTi+34M/AF5Ku8Hps384f7KCb5XmsZVVl7mvAAAAAElFTkSuQmCC) "Settings", which allows opening the permissions panel for AutoPilot automatically (without user confirmation) to perform the following types of actions:
* Run PowerShell command: Execute PowerShell scripts for system operations and automation (integration with your RPA processes).

When the AI needs to perform such an action, a prompt will appear for the user: “Do you want to execute Run PowerShell command?”. If this option is disabled, only the built-in blocks of Sherpa Designer will be used in the project without external scripts.<br>

* Get file list: Scan directories to find input data.

When the AI needs to perform such an action, a prompt will appear for the user: “Do you want to execute Get file list?”. If this option is disabled, AutoDesigner will only work with the file paths specified by the user, without dynamic searching in folders.

* Read from file: Load configurations, JSON schemas, PDD templates, or TXT/PDF files.

When the AI needs to perform such an action, a prompt will appear for the user: “Do you want to execute Read from file?”. If this option is disabled, the project will be created without analyzing the attached files, only based on the text description in the chat.

* Write to file: Save results (JSON file, log files in the project folder).

When the AI needs to perform such an action, a prompt will appear for the user: “Do you want to execute Write to file?”. If this option is disabled, the values of resulting variables will be stored temporarily until the project is closed/reloaded.

* Get diagram list: View available diagrams in the project for analysis/modification.

When the AI needs to perform such an action, a prompt will appear for the user: “Do you want to execute Get diagram list?”. If this option is disabled, AutoDesigner will not be able to find existing diagrams in the project and will create new ones from scratch, without relying on the user-created project.

* Create diagram: Generate new flowcharts for Robots.

When the AI needs to perform such an action, a prompt will appear for the user: “Do you want to execute Create diagram?”. If this option is disabled, changes will only be applied to previously created diagrams in the project, without creating new blocks and processes.

* Run diagram: Automatic testing of generated scenarios.

When the AI needs to perform such an action, a prompt will appear for the user: “Do you want to execute Run diagram?”. If this option is disabled, AutoDesigner will make changes to the project but will not perform automatic testing. To verify the functionality of the project, the user will need to run it manually.

* Take a screenshot if the diagram execution fails: Capture errors encountered during project execution using user screenshots.

When the AI needs to perform such an action, a prompt will appear for the user: “Do you want to execute Take a screenshot if the diagram execution fails?”. If this option is disabled, errors will only be logged textually, without screenshots.

### Dialogue Display Area

In the dialogue display area with the large language model, the following is output:

* User messages (requests);
* Responses from the large language model (for example, project code, description of created blocks, selector error diagnostics);
* Execution statuses (for example: "Generating project...", "Testing diagram", "Error found in selector cell 2-3");
* Results (for example, answers to user questions, list of created diagrams, list of modified diagrams, error screenshots, execution logs);
* Suggestions (for example: "Add variable ScoreX?").

You can also highlight text messages in this area and copy them to paste into another field:

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

If you right-click on the file/image icon inside a message, a context menu will appear with the text: “Open image”, - clicking on it will open the file/image that was attached to the user's request:

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