> For the complete documentation index, see [llms.txt](https://docs.b2ihealthcare.com/snow-owl-authoring-platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.b2ihealthcare.com/snow-owl-authoring-platform/browsing-and-searching/scripting/creating-scripts.md).

# Create

### Create a New Groovy Script Project

There are two ways to create a new Groovy Script Project.

In case of a freshly started client, a direct link helps you create the Snow Owl Groovy Script project.

![Create Snow Owl Groovy Script Project with a Fresh Client](/files/2zI3UIJz7wsZNjKjCcVS)

{% hint style="info" %}
If projects have already been created, the direct link disappears.
{% endhint %}

In this case, the scripting project can be created via a Context Menu option. Right-click on the whitespace in the Project Explorer View to reveal the Context Menu.

![Create Snow Owl Groovy Script Project from Context Menu](/files/Ejv2Ek3DSI0kUm4l6hv5)

Once you named your project and hit **`Finish`** in the New Script Project Wizard, you are presented with the default content along with a set of examples.

![Script Project in the Project Explorer View](/files/vQsX393TYS6dJgR4O3PI)

### Create a New Groovy Script File

To create a new script file in Snow Owl, right-click on the script project and select the *New file...* option from the Context Menu.

![Create a New Groovy Script File](/files/MaCkKDRhJOpVmSjRbqI4)

Enter a file name with a `.groovy` file extension (e.g. `Tet-file.groovy`), and click **`Finish`**.

![Create New Script File](/files/N03Sn5SYyBcAV86NXvKm)

{% hint style="info" %}
Once you hit **`Finish`** the new Groovy Editor opens automatically and you can start creating your script.
{% endhint %}

At any point during script authoring, the content assist can be invoked by hitting `Ctrl` + `Space`*.* When the content assist is invoked, users can pick from different selections that are valid depending on the current position of the cursor.

![Content Assist in the Groovy Script Editor](/files/he906ufoNFclJ6E51IQH)


---

# 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 dynamically by asking a question.

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

```
GET https://docs.b2ihealthcare.com/snow-owl-authoring-platform/browsing-and-searching/scripting/creating-scripts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
