> For the complete documentation index, see [llms.txt](https://docs.airops.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airops.com/docs/de/aktionen/grids/create-a-grid/import-from-sanity.md).

# Aus Sanity importieren

Sie können ein Grid erstellen, indem Sie Dokumente direkt aus Ihrem Sanity-Projekt importieren, sodass Sie in AirOps mit Ihren vorhandenen Inhalten arbeiten können. Wenn Sie Ihr Sanity-Projekt noch nicht mit Ihrem AirOps-Arbeitsbereich verbunden haben, werden Sie dazu aufgefordert.

### So importieren Sie Daten aus Sanity

1. Klicken Sie auf der Grid-Seite auf die Schaltfläche "+"
2. Wählen Sie **Sanity** aus dem Dropdown-Menü der Importoptionen
3. Mit Ihrem Sanity-Projekt verbinden:
   * Wählen Sie eine vorhandene Sanity-Authentifizierung aus dem Dropdown aus oder richten Sie eine neue ein, indem Sie Ihren **API-Token** und **Projekt-ID**
   * Klicken Sie auf **Weiter**
4. Wählen Sie den zu importierenden Datensatz und Dokumenttyp aus:
   * Wenn Ihr Projekt mehrere Datasets hat, wählen Sie aus, aus welchem Dataset importiert werden soll (Standard ist „production“)
   * Wählen Sie im Dropdown den Sanity-Dokumenttyp (z. B. „post“, „article“) aus
   * Klicken Sie auf **Weiter**
5. Wählen Sie aus, welche Datenspalten importiert werden sollen:
   * Aktivieren Sie die Kontrollkästchen neben den Feldern, die Sie einschließen möchten
   * Jedes Feld zeigt seinen Datentyp und eine Vorschau der Beispieldaten an
   * Hinweis: Es gibt eine Höchstgrenze von 100 Spalten
6. Klicken Sie auf **Weiter** um Ihre Daten in das Grid zu importieren

### Was importiert wird

Sobald der Import abgeschlossen ist, werden die folgenden Spalten automatisch in Ihrem Grid erstellt:

* **Sanity-Import**: Zeigt den Importstatus für jede Zeile an
* **Sanity-Dokument-ID**: Speichert die eindeutige Sanity-Dokumentkennung für jedes importierte Dokument
* **Erstellt am**: Das Erstellungsdatum des Dokuments in Sanity
* **Aktualisiert am**: Das Datum der letzten Aktualisierung des Dokuments in Sanity
* **Sanity-Status**: Eine Single-Select-Spalte, die angibt, ob das Dokument **Veröffentlicht** oder **Entwurf**
* **Ihre ausgewählten Felder**: Jedes Feld, das Sie während der Einrichtung ausgewählt haben, wird dem entsprechenden Grid-Spaltentyp zugeordnet

### Zuordnung der Feldtypen

Sanity-Feldtypen werden automatisch den am besten passenden Grid-Spaltentypen zugeordnet:

| Sanity-Feldtyp            | Grid-Spaltentyp   |
| ------------------------- | ----------------- |
| Zeichenkette              | Text              |
| Text                      | Text              |
| Zahl                      | Zahl              |
| Datum / Datum und Uhrzeit | Datum und Uhrzeit |
| Block (Portable Text)     | HTML              |
| Bild                      | Bild (URL)        |
| Datei                     | URL               |
| Slug                      | Text              |
| Referenz                  | Text              |
| Geopunkt                  | Text              |
| Array                     | JSON              |
| Objekt                    | JSON              |

### Entwürfe und veröffentlichte Dokumente

Sanity speichert Entwurfs- und veröffentlichte Versionen von Dokumenten getrennt. Wenn beide Versionen vorhanden sind, importiert AirOps die zuletzt aktualisierte Version und spiegelt den Status des Dokuments in der **Sanity-Status** Spalte. Entwurfs-Dokument-IDs (mit dem Präfix `drafts.`) werden automatisch normalisiert.

### Importe erneut ausführen

Sie können einen Import jederzeit erneut ausführen, um die neuesten Daten von Sanity zu synchronisieren. Vorhandene Zeilen werden anhand der Sanity-Dokument-ID aktualisiert, und neue Dokumente werden als neue Zeilen hinzugefügt.

Sobald importiert, werden Ihre Sanity-Inhalte in Ihrem Grid angezeigt und können mit AirOps-Workflows zur Inhaltsoptimierung, SEO-Verbesserung, KI-gestützten Umschreibungen und mehr angereichert werden.


---

# 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.airops.com/docs/de/aktionen/grids/create-a-grid/import-from-sanity.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.
