> For the complete documentation index, see [llms.txt](https://docs.opencityitalia.it/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opencityitalia.it/ai/come-funziona/base-di-conoscenza-e-istruzioni/le-strutture-dati.md).

# Le strutture dati

Le strutture dati sono i dataset che l'assistente può consultare quando elabora una risposta o quando viene creata una nuova istruzione. Rappresentano insiemi di informazioni strutturate (per esempio, elenchi di servizi offerti dall'ente o qualsiasi altro insieme di dati) che l'assistente può usare come riferimento per produrre contenuti coerenti con la realtà organizzativa locale.

<figure><img src="https://793214105-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0AdQysODIf5E7oHfQAtY%2Fuploads%2FtNEWRvNel4eLVtjFWEwA%2Fimage.png?alt=media&amp;token=b416d3b0-e06e-46d3-a260-3b94accc8090" alt=""><figcaption></figcaption></figure>

## Creare una nuova struttura dati

Per aggiungere un nuovo utente, bisogna accedere a Impostazioni → Ente → Utenti.

<figure><img src="https://793214105-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0AdQysODIf5E7oHfQAtY%2Fuploads%2FJqprrYY0bRACchLyunrx%2Fimage.png?alt=media&amp;token=c99e3d79-6a96-44c6-8138-d9ae7253973b" alt=""><figcaption></figcaption></figure>

Per creare una nuova struttura dati, lbisogna accedere a Impostazioni → Configurazioni → Strutture dati. Si assegna un nome al dataset, un identificativo univoco e, facoltativamente, una descrizione che ne chiarisca il contenuto e l'uso previsto. Il dataset viene poi alimentato tramite un JSON schema, che definisce la struttura e il formato delle informazioni che conterrà.

Una volta creato, il dataset è disponibile come risorsa selezionabile al momento della configurazione di una nuova istruzione e si può associare a un nuovo utente.&#x20;

Ogni struttura dati può essere modificata nel tempo oppure eliminata quando non è più necessaria.


---

# 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.opencityitalia.it/ai/come-funziona/base-di-conoscenza-e-istruzioni/le-strutture-dati.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.
