> For the complete documentation index, see [llms.txt](https://docs.yoplanning.support/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yoplanning.support/en/yoplanning-academy/yoplanning-parametrage/parametrage-produit/gestion-des-ouvertures-et-fermetures-de-la-vente-en-ligne/controle-de-la-vente-en-ligne-des-activites-via-intelligence-artificielle.md).

# Control of Online Sales of Activities via Artificial Intelligence

### **Feature Description**

The "Online Activity Sales Opening and Closing Control via Artificial Intelligence" feature in Yoplanning.pro is a fully automated process designed to optimize the management of online sessions. This feature is particularly useful for preventing the sale of empty or poorly scheduled sessions by automatically adjusting their online availability based on predefined criteria.

{% hint style="info" %}
This module is **optional**. If it is not enabled on your team, none of the mechanisms described below will apply to your sessions.
{% endhint %}

### **How ​​the Feature Works.**

This feature works without manual intervention and <mark style="background-color:green;">**is automatically applied to all empty sessions that are priced per session.**</mark>

1. **Automatic Session Closure**:
   * Every evening, starting at 8 PM, Yoplanning.pro's artificial intelligence analyzes all sessions scheduled between 5 AM and 11 AM the following day. If a session is empty, it is automatically removed from online booking. This action aims to prevent any unpleasant surprises and ensure that only sessions with participants are visible.
2. **Automatic Reopening of Sessions**:
   * Sessions affected by this automatic closure will be made available for online sale again starting at 8:00 AM. This ensures that sessions become available to customers again, thus maximizing last-minute booking opportunities.
3. **Case of private sessions with dedicated resources**:
   * When a private session requires a **material resource in limited stock** (boat, paraglider, vehicle, specific equipment), the module avoids leaving it for sale when the necessary resource is no longer available during the time slot.
   * ⚠️ This check concerns the **resources attached to the product**, and not the assignment of a monitor. **The absence of staff assigned to a session never triggers the closure of the online sale**, neither by this module nor by any other Yoplanning mechanism.

### **Visible effect on the schedule**

A session closed by this module displays a **red shopping cart** for the duration of the closure, then loses it upon reopening at 8 AM. A shopping cart appearing overnight on an empty morning session, and disappearing on its own in the morning, is therefore the module's normal behavior: there is nothing to correct.

📄 [The red shopping cart: why can't my session be sold online?](https://docs.yoplanning.support/en/yoplanning-academy/yoplanning-au-quotidien/planning-et-indisponibilites-avec-yoplanning/le-caddie-rouge-session-non-vendable-en-ligne.md)

### **Usage Tips and Best Practices**

* **Morning Monitoring**: Even though the process is automatic, it is advisable to check every morning whether the sessions have been put back on sale by 8am.
* **Communication with Clients**: Inform your clients of the limited availability of early morning sessions, especially if they are looking to book last-minute activities.

### **Common Errors and Resolution**

* **Session not reactivated at 8 AM**: This issue is rare, but if it occurs, it may be related to system updates. Contact Yoplanning.pro support for assistance.
* **Unexpected session closures**: If a session is closed when it should not be, make sure that it was not marked as empty at the time of the algorithm check.
* **Persistent red shopping cart icon during the day:** This module is not the cause (it only closes at night, on the following morning's sessions). The red shopping cart icon appears for any session that cannot be sold online — check the **Online Selling** settings for the session and its product, the price, the sales window, and the inventory level.


---

# 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.yoplanning.support/en/yoplanning-academy/yoplanning-parametrage/parametrage-produit/gestion-des-ouvertures-et-fermetures-de-la-vente-en-ligne/controle-de-la-vente-en-ligne-des-activites-via-intelligence-artificielle.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.
