> 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). Agents can also search and read this documentation through its [MCP server](https://docs.b2ihealthcare.com/snow-owl-authoring-platform/~gitbook/mcp).

# 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](https://content.gitbook.com/content/N7ynFOLTw3W9Zow9AaAJ/blobs/ASWR316oXN4qnCNjAWOe/groovy_create_project.png)

{% 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](https://content.gitbook.com/content/N7ynFOLTw3W9Zow9AaAJ/blobs/nj2cRq6pTfkZTP3yNFxi/groovy_new_project.png)

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](https://content.gitbook.com/content/N7ynFOLTw3W9Zow9AaAJ/blobs/NeMaGmUWigikMdu3ArMM/groovy_scripts.png)

### 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](https://content.gitbook.com/content/N7ynFOLTw3W9Zow9AaAJ/blobs/mFzJ812fxbRB3huxRQiD/groovy_new_file.png)

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

![Create New Script File](https://content.gitbook.com/content/N7ynFOLTw3W9Zow9AaAJ/blobs/wJEoTCqIFz3t3pyaLfL7/groovy_create_file.png)

{% 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](https://content.gitbook.com/content/N7ynFOLTw3W9Zow9AaAJ/blobs/UnYS4VuvXVmuW66Y154i/groovy_content_assist.png)
