> For the complete documentation index, see [llms.txt](https://docs.opensports.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opensports.net/admin-help/facilities-and-scheduling/permits-and-availability/how-to-use-ai-to-import-your-permits-and-leases-in-opensports.md). Agents can also search and read this documentation through its [MCP server](https://docs.opensports.net/~gitbook/mcp).

# How to use AI to import your permits and leases in OpenSports

Managing permits, contracts, pricing, and schedules is time‑consuming, and one mistake can derail a whole week. In OpenSports, Availability Configurations is where you upload permits and leases and record costs. AI turns your permits into time slots on your courts, fields, and rinks (availability blocks), each linked to the permit, so overlaps and open time stand out in a single calendar.

{% embed url="<https://www.loom.com/embed/d51c6d48c3044462939c5dd84072d319>" %}

{% hint style="info" %}
**Note:** This feature is only available on the web. Contact <support@opensports.net> to enable this feature for your group!
{% endhint %}

### How this feature helps: <a href="#how-this-feature-helps" id="how-this-feature-helps"></a>

* Everything on one calendar: see permits, resources, and scheduled activities in a single view, so conflicts and unused time are easy to spot.
* Save admin time: Let AI import your permits; you just review and confirm.
* Plan with better insights: Accurate cost and availability data helps you make informed decisions about pricing and programming.
* Track changes: Revision history shows who changed what and when, with every version saved.

In this guide, you’ll learn how to:

1. Create facilities and resources.
2. Upload and manage your permits.
3. Use AI to automatically generate availabilities.
4. See permits and activities on the same calendar.

### Step 1 - Create facilities and resources <a href="#step-1---create-facilities-and-resources" id="step-1---create-facilities-and-resources"></a>

Before setting up your permits, you must first add the facilities and resources (courts, fields, and rinks) where your events will take place.

1. Navigate to the Group **Profile > Dashboard > Settings**
2. Click **Facilities** and then **Add Facility**

![](https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-10fe3b14da177db6127d9e737b6f144bde65cf2d%2Fgroup-settings-facilities-menu-for-permits.webp?alt=media)

* A pop-up window will appear:
  * Search for the facility address in the search bar.
  * Enter the **Name, Description, Website**, and **Phone Number** for the facility.

3. To add resources within the facility (e.g., specific fields or courts):

* Next to **Bookable Resource**, click **Add Resource**.

<img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-0b9395df148679474924a4053904ccef178e6e32%2Fcreate-facility-map-and-address.webp?alt=media" alt="" width="563">

* Enter a **Resource Name** (e.g., “Field A” or “Court 1”) and a **Description**.

4. Click **Add Resource** to add more.

<img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-8fe1c280300ab64fee6203368ded1c24da76dd92%2Ffacility-bookable-fields-list.webp?alt=media" alt="" width="563">

### Step 2 - Upload and manage your permits <a href="#step-2---upload-and-manage-your-permits" id="step-2---upload-and-manage-your-permits"></a>

Availability Configurations is where you manage permits and set facility availability. If you operate your own facility, you can also define general operating hours.

1. Navigate to **Group Profile > Dashboard > Settings**.
2. Click **Availability Configurations**.
3. Click **Create Availability Configuration**
4. Enter a title that reflects the permit and/or facility that is being used.

![](https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-592d4c559c3e00c66616053c34cadaaeadb57c26%2Fgroup-settings-availability-configurations-menu.webp?alt=media)

#### Cost Specification <a href="#cost-specification" id="cost-specification"></a>

1. Select from three options:

* **Specify Total Cost**: Specify the cost of all your availabilities, and the platform will calculate the cost per available resource-hour automatically.
* **Specify Cost per Resource-Hour**: Specify the cost of each of your available resource-hours, and the platform will calculate the total cost for all availabilities.
* **None**: Do not specify the cost. The platform will not perform any total cost or cost-per-resource calculations.

2. Enter **Currency, Total Cost**, and **Description** for the cost breakdown.
3. If details need to be updated, a **Reason for Update** field will appear so admins can note why the change was made.

![](https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-93bc4693cc0da708ea141094b4669bd025bf8045%2Fpermit-cost-specification-options.webp?alt=media)

### Step 3 - Use AI to automatically generate availabilities <a href="#step-3---use-ai-to-automatically-generate-availabilities" id="step-3---use-ai-to-automatically-generate-availabilities"></a>

Save hours of manual setup by letting AI generate availabilities directly from your uploaded permits.

1. Select **Availability Configuration Status** using the dropdown menu, or [create your own custom status](https://docs.opensports.net/admin-help/facilities-and-scheduling/permits-and-availability/how-to-manage-permits-with-availability-configurations.md#customizing-permit-statuses) that represents the current state of the permit (e.g., Confirmed, Deposit made, Paid, Cancelled).
2. Drag and drop your contract or permit into the attachment box.
3. Check the **Status** column to confirm a successful upload. Use the **eye icon** to view a permit or the **trash icon** to delete it.

![](https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-64923e99cf43b384686fb965b2a13761bb89f873%2Fpermit-attachment-upload-status.webp?alt=media)

4. Once all documents are uploaded, click **Generate Availabilities**.
5. A new window will appear with a **Prompt** field where you can describe the availabilities you want to generate. Add any extra context to help generate availabilities from the selected documents.

* Uncheck any attachments you don’t want included in availability generation (e.g., invoices). Only the selected documents, like permits, will be used.

![](https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-b2f7eee66a9e830ed84b0df4b7d0b5fc2e85edb4%2Fgenerate-availabilities-ai-prompt.webp?alt=media)

#### Example Prompts <a href="#example-prompts" id="example-prompts"></a>

* *"Generate availabilities for Court A and Court B every weekday from 6:00 PM to 10:00 PM between the permit dates. Exclude American public holidays."*
* *"Generate availabilities for Gymnasium 1 as per the permit, but override September 10 for maintenance and extend hours on September 15 until 11:00 PM for a special event."*
* *"Courts 4, 5, and 6 map to Tennis Courts A, B, C."*

6. Click **Generate** once your prompt and selections are ready. The system generates availabilities from your attachments and clearly shows which attachment each availability came from, even when multiple are uploaded.

* The summary shows the total resource hours available across your facilities. It breaks down availability by each field as well as the combined total.
* Use the icons on the right to **edit, copy, or delete**.
* If needed, adjust your files or add more context into the Prompt field, then click **Regenerate** to update your availabilities.

![](https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-00cf70e64cab700fc5d6f9ce68e86ecba2cbf81d%2Fai-generated-permit-availabilities-review.webp?alt=media)

7. Once you’ve reviewed the information, click **Use Availabilities**. To finalize, type **Confirm Availabilities**. Review carefully, as AI does make mistakes.

<img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-0ef4389232ddcad0d85b053e6ae561643de351be%2Fconfirm-ai-generated-availabilities-dialog.webp?alt=media" alt="" width="375">

8. Use the calendar to preview resource availabilities for all uploaded permits.
9. Availability Configurations automatically saves all revisions. Check **Revision History** to see who made changes and when, and open any version to view its attachments.

![](https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-4e4a7352d02f2893c260586ca2c426f17d88716f%2Favailability-configuration-details.webp?alt=media)

![](https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-7411525557f8402970c8036c5fbd6edb5138df60%2Favailability-configuration-revision-history.webp?alt=media)

* The dropdown menu includes **Edit, Repeat**, and **Delete**. Select **Repeat** to create a new availability configuration based on the original one. You’ll be able to adjust it using Repeat Options at the bottom of the page:
  * **Shift Available Dates**: Ability to shift available dates to earlier or later.
  * **Shift Available Times**: Ability to shift available times to earlier or later.
  * **Clear Overrides**: Clear overrides in the repeated availability.
* After selecting your Repeat Options, click **Next** to create a new availability configuration.

![](https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-0a511a5c6e67d782c7af01b217d284ab5ba890f0%2Favailability-repeat-shift-options.webp?alt=media)

### Step 4 - See permits and activities on the same calendar <a href="#step-4---see-permits-and-activities-on-the-same-calendar" id="step-4---see-permits-and-activities-on-the-same-calendar"></a>

Easily compare your uploaded permits with all scheduled activities directly from **Group Profile > Dashboard > Calendar**. This side-by-side view helps you confirm that bookings align with permitted dates and times, spot gaps or conflicts, and ensure your resources are being used efficiently.

![](https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-b35ad53b9d46f21a7303e9f7d758a29bf2f88dfb%2Fpermits-and-activities-calendar.webp?alt=media)

### Frequently Asked Questions <a href="#frequently-asked-questions" id="frequently-asked-questions"></a>

**1. Does the system store my uploaded permits/contracts after I upload them?**

Yes! Once uploaded, your permit attachments remain linked to your availabilities, making it easy to access or share them when needed.

**2. Can I upload multiple permits at once?**

Yes, the AI can process multiple complex contracts at once.

**3. Can I give AI instructions when generating availabilities?**

After uploading your documents, click Generate Availabilities and use the Prompt field to describe your schedule needs. You can create different prompts for different documents.

**4. How can I see if my bookings align with my permits?**

Use the Calendar tab to get a side-by-side view of both uploaded permits and scheduled activities, making it easy to spot gaps, overlaps, or conflicts.

**5. What file types are supported for uploading permits/contracts?**

Supported file types: .pdf, .jpg, .jpeg, .png, .webp.

**6. Can I preview or delete an uploaded contract?**

Once an attachment is uploaded, you’ll see an eye icon on the right to preview it, or a trash icon to delete it.

**7. Do I need to specify costs?**

No, you don’t need to specify the cost of a permit.

**8. Can I update costs later?**

Yes, if your costs change, you can update them. When making updates, you’ll see a Reason for Update field where you can add context.

**9. Can I add availabilities without using the AI?**

You can manually create availabilities and link them to a permit or contract. To do this, select Add Manual Availability or Add Recurring Availability, select a resource, set the availability blocks, and optionally include the attachment.

**10. When should I repeat an availability configuration?**

Use the repeat feature when you need the same setup for a new season. With Shift Available Dates and Times, you can quickly move all dates earlier or later, so you don’t have to rebuild the configuration from scratch.


---

# 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://docs.opensports.net/admin-help/facilities-and-scheduling/permits-and-availability/how-to-use-ai-to-import-your-permits-and-leases-in-opensports.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.
