# Example of Creating an Action and Its Configuration

This example describes a scenario of interaction between Robots and employees working at the workplace through the "Actions" screen.

You can watch the video demonstration here:

{% embed url="<https://sherparpa.ru/ucontent/?0I>" %}

First, one of the Robots receives and recognizes the invoices, then creates Tasks (based on the recognition results) and assigns the tag *1CNew* to them.

Next, the correctness of the recognition (and correction, if necessary) of the data at the workplace created within the Action is checked. The tag in the task changes from *1CNew* to *1СModified*.

Accordingly, another Robot will pick up tasks with the tag *1СModified* and input the data.

1. Open the "Actions" screen and click the "Create" button.

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

2. In the opened form, specify the name, working queue (it must be created in advance), task status, and tag.

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

3. Go to the "Action Buttons" tab. For the first button, specify the name and check the box "Save changes to the current task."

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

Specify the tag to be added and the tag to be removed in the corresponding text fields.

4. Save and close the form by clicking the "OK" button.
5. Go to the "Form Designer" of the just created Action.
6. In the "Form Designer," add two text fields (Text) and specify the parameter names in the Task. These names must be specified when creating the Task.
7. After that, add a data table field (Data Table) and specify the Task parameter "Products."
8. Next, add a "PDF" field and specify the Task parameter for the PDF file.

If necessary, adjust the sizes of the fields and move them.

9. Click the "Save" button. After that, click the button to enter the settings of the created "Action," and in the "Access" tab, copy the link for accessing the Action.

When following the link, the created form is available.

If you have launched Robots in the process of receiving and recognizing invoices, a Task will already be created in the Queue, and when selected, the recognized data will be displayed.

10. After verifying the data and making corrections, click the "Save changes" button. The Task's tag will change according to the algorithm you specified in the settings of the "Action" for this button.

After performing the above actions, this Task will no longer be displayed in the list of the workplace form of the Action. You can start entering data from the processed Tasks into 1C.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sherparpa.ru/en/sherpa-rpa/sherpa-orchestrator/rabota-v-sherpa-orchestrator/ekrany/deistviya/primer-sozdaniya-deistviya-i-ego-nastroiki.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
