Zum Inhalt springen
aYOUne
← KI / AI API

AIWorkflows

Singular: AIWorkflow — Base-URL: https://ai.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

Jetzt ausprobieren beta

Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.

Beispiel-Response (aufgezeichnet) Beispiel

Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.

{
  "payload": {
    "_id": "6abdcfdf541e3d0ebc0f7c2e",
    "name": "Beitrag aus Keyword",
    "description": "Erzeugt aus einem Keyword einer Keyword-Recherche einen Blog-Beitrag im Status review: Redaktions-Brief, Text, SEO, Humanizer-Pflicht (Einzeltext + Serienschnitt), Bild, Beitrag, Freigabe-Anfrage. Wird ueber `POST /contentworkflow/actions/generate` gestartet; veroeffentlicht nie selbst.",
    "status": "active",
    "steps": [
      {
        "notificationConfig": {
          "recipients": []
        },
        "stepId": "brief",
        "name": "Redaktions-Brief",
        "type": "agent-task",
        "_agent": "69d358c67ba841b1ec29e1bb",
        "taskPrompt": "content-workflow:brief",
        "parallelSteps": [],
        "retryCount": 0,
        "onFailure": "stop",
        "nextStep": "text",
        "sortOrder": 0,
        "_id": "6aa7cfc57987fa3f04c3a386",
        "shares": []
      },
      {
        "notificationConfig": {
          "recipients": []
        },
        "stepId": "text",
        "name": "Text je Sprache",
        "type": "agent-task",
        "_agent": "69d358c67ba841b1ec29e1bc",
        "taskPrompt": "content-workflow:text",
        "parallelSteps": [],
        "retryCount": 0,
        "onFailure": "stop",
        "nextStep": "seo",
        "sortOrder": 1,
        "_id": "6aa7cfc57987fa3f04c3a387",
        "shares": []
      },
      {
        "notificationConfig": {
          "recipients": []
        },
        "stepId": "seo",
        "name": "SEO",
        "type": "agent-task",
        "_agent": "69d358c67ba841b1ec29e1bd",
        "taskPrompt": "content-workflow:seo",
        "parallelSteps": [],
        "retryCount": 0,
        "onFailure": "stop",
        "nextStep": "humanize",
        "sortOrder": 2,
        "_id": "6aa7cfc57987fa3f04c3a388",
        "shares": []
      },
      {
        "notificationConfig": {
          "recipients": []
        },
        "stepId": "humanize",
        "name": "Humanizer (Pflicht)",
        "type": "review-gate",
        "reviewType": "custom",
        "parallelSteps": [],
        "retryCount": 0,
        "onFailure": "stop",
        "nextStep": "image",
        "sortOrder": 3,
        "_id": "6aa7cfc57987fa3f04c3a389",
        "shares": []
      },
      {
        "notificationConfig": {
          "recipients": []
        },
        "condition": {
          "field": "imageUrl",
          "operator": "exists"
        },
        "stepId": "image",
        "name": "Bild",
        "type": "conditional",
        "parallelSteps": [],
        "retryCount": 0,
        "onFailure": "stop",
        "nextStep": "content",
        "sortOrder": 4,
        "_id": "6aa7cfc57987fa3f04c3a38a",
        "shares": []
      },
      {
        "notificationConfig": {
          "recipients": []
        },
        "condition": {
          "field": "blocks",
          "operator": "exists"
        },
        "stepId": "content",
        "name": "Beitrag anlegen (review)",
        "type": "conditional",
        "parallelSteps": [],
        "retryCount": 0,
        "onFailure": "stop",
        "nextStep": "approval",
        "sortOrder": 5,
        "_id": "6aa7cfc57987fa3f04c3a38b",
        "shares": []
      },
      {
        "notificationConfig": {
          "recipients": []
        },
        "stepId": "approval",
        "name": "Freigabe Redaktionsleitung",
        "type": "approval",
        "parallelSteps": [],
        "retryCount": 0,
        "onFailure": "stop",
        "sortOrder": 6,
        "_id": "6aa7cfc57987fa3f04c3a38c",
        "shares": []
      }
    ],
    "feedbackLoopEnabled": false,
    "triggerType": "manual",
    "triggerConfig": {
      "runner": "content-workflow"
    },
    "global": false,
    "isTemplate": false,
    "shares": [],
    "createdAt": "2026-10-01T03:13:35.826Z",
    "updatedAt": "2026-10-01T03:13:35.826Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://ai.ayoune.app/aiworkflows/6abdcfdf541e3d0ebc0f7c2e",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "AICronJobs",
        "title": "MODEL_AICRONJOB",
        "href": "https://api.ayoune.app/ai/aicronjobs",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ai.aicronjobs"
      }
    ],
    "debugId": "6ac9adac2c5e2e4b6d9e8864",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_AIWORKFLOW",
        "href": "https://api.ayoune.app/ai/aiworkflows/6abdcfdf541e3d0ebc0f7c2e/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_AIWORKFLOW",
        "href": "https://api.ayoune.app/ai/aiworkflows/6abdcfdf541e3d0ebc0f7c2e",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.178.0",
      "core": "2026.368.2"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9686",
      "reset": "1791605633",
      "resetDate": "Sat Oct 10 2026"
    },
    "responseTime": 28.1503,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /aiworkflows Liste mit Filtern/Paginierung ai.aiworkflows.view
GET /aiworkflows/:id Einzelner Datensatz ai.aiworkflows.view
POST /aiworkflows Neuen Datensatz erstellen ai.aiworkflows.new
PUT /aiworkflows Datensatz aktualisieren ai.aiworkflows.edit
DELETE /aiworkflows/:id Datensatz löschen ai.aiworkflows.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// Alle abrufen
const list = await ay.ai.aIWorkflows.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.ai.aIWorkflows.findById('OBJECT_ID').exec();

// Erstellen
const created = await ay.ai.aIWorkflows.create({ name: 'Foo' });

Weiterführend