> For the complete documentation index, see [llms.txt](https://help.rbsgo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.rbsgo.com/dineplan/backoffice/automation/script.md).

# Script

### **Overview** <a href="#overview.4" id="overview.4"></a>

The Script feature in the Back Office allows authorized users to create and manage scripts used within the system. Users can define a script by providing a Name, Handler, and Script content, and can test the script when required. This provides a centralized way to maintain and manage the scripts configured in the system.

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

### **Screen Elements** <a href="#screen-elements.4" id="screen-elements.4"></a>

| **Screen Element** | **Description**                                                  |
| ------------------ | ---------------------------------------------------------------- |
| Script List        | Displays the available scripts.                                  |
| Search             | Allows users to search for a specific script.                    |
| Add Script         | Opens the screen to create a new script.                         |
| Edit Script        | Allows users to modify the selected script.                      |
| Delete Script      | Deletes the selected script after confirmation.                  |
| Change Sort Order  | Allows users to change the order in which scripts are displayed. |
| Close              | Closes the Script screen.                                        |

### **Working** <a href="#working.4" id="working.4"></a>

#### **Add a Script** <a href="#add-a-script" id="add-a-script"></a>

1. From the Script List, select "Add Script".

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-3c3cdb5bb08eb9ddf4862dd0ce1547c8a6d542a8%2Fatt_41_for_3422715932.png?alt=media" alt=""><figcaption></figcaption></figure>

2. Enter the script name in "Name".
3. Enter the required handler in "Handler".
4. Enter the script content in "Script".

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-0f76eb771f94bcbd7ca2cd003fab0e819c7d636f%2Fatt_42_for_3422715932.png?alt=media" alt=""><figcaption></figcaption></figure>

5. Select "Save" to save the script.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-e074c151b7061f8627a3e7020772154243f8f04e%2Fatt_43_for_3422715932.png?alt=media" alt=""><figcaption></figcaption></figure>

Note: The Name field is required. If it is left blank, the system displays the message "Name" should not be empty.

#### **Edit a Script** <a href="#edit-a-script" id="edit-a-script"></a>

1. From the Script List, select the required script.
2. Select "Edit Script".

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-f412b9ae59ab11d2a9e368e3036135709d5721c7%2Fatt_44_for_3422715932.png?alt=media" alt=""><figcaption></figcaption></figure>

3. Update the required details.
4. Select "Save" to save the changes.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-e074c151b7061f8627a3e7020772154243f8f04e%2Fatt_43_for_3422715932.png?alt=media" alt=""><figcaption></figcaption></figure>

#### **Delete a Script** <a href="#delete-a-script" id="delete-a-script"></a>

1. Select the script you want to remove from the Script List.
2. Select "Delete Script".

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-43620b14779905c71181c94f03ee4e355b5357e5%2Fatt_46_for_3422715932.png?alt=media" alt=""><figcaption></figcaption></figure>

3. A confirmation message is displayed.
4. Select "Yes" to delete the script or "No" to cancel the operation.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-67e4e8fb6f25ff643b8df8c0a15bff4b53175303%2Fatt_47_for_3422715932.png?alt=media" alt=""><figcaption></figcaption></figure>

#### **Change Sort Order** <a href="#change-sort-order.1" id="change-sort-order.1"></a>

1. From the Script List, select "Change Sort Order".

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-480b0927723acf72ee6171f66a25b2ecc23e7305%2Fatt_48_for_3422715932.png?alt=media" alt=""><figcaption></figcaption></figure>

2. Adjust the order of the scripts as required.

### **Use Case** <a href="#use-case.4" id="use-case.4"></a>

* Create new scripts by entering the required Name, Handler, and Script content.
* Configure scripts to define the required instructions or actions for specific system operations.
* Test configured scripts using the "Test" option to verify that the script works as expected.
* Edit existing scripts to update their name, handler, or script content when changes are required.
* Search for specific scripts using the "Search" option to quickly locate them in the Script List.
* Delete scripts that are no longer required by selecting "Delete Script" and confirming the deletion.
* Change the display order of scripts using "Change Sort Order" to organize them according to the required sequence.
* Manage all configured scripts from a centralized Script List, including adding, editing, testing, deleting, searching, and sorting scripts.

### **Notes** <a href="#notes.4" id="notes.4"></a>

* A script must have a Name before it can be saved.
* Use "Edit Script" to modify an existing script.
* Use "Delete Script" to remove a script after confirming the deletion.
* Use "Test" to test a script before or after making changes, as required.
* "Change Sort Order" can be used to organize the script list.
* Use "Search" to quickly locate a script in the list.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.rbsgo.com/dineplan/backoffice/automation/script.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
