Zum Hauptinhalt springen

Brand-Voice-Pipeline

Dieser Leitfaden führt Sie durch den Import einer Brand Voice von Ihrer Website, die Überprüfung des Ergebnisses und die Nutzung für markenkonforme Content-Erstellung.

Was Sie erstellen werden

  • Eine Brand Voice aus einer URL importieren (Entwurf/Vorschau)
  • Den Entwurf in Ihrem Workspace speichern
  • Sie als System-Nachricht in Chat Completions verwenden
  • Die Brand Voices Ihres Workspaces auflisten

Voraussetzungen

  • Ein neuroflash-Konto mit API-Zugang
  • Ihre client_id und client_secret (siehe Authentifizierung)

Schritt 1: Authentifizieren

curl -X POST https://id.neuroflash.com/oauth/v2/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id=YOUR_CLIENT_ID" \
-d "client_secret=YOUR_CLIENT_SECRET" \
-d "scope=openid"

Schritt 2: Arbeitsbereich abrufen

curl "https://app.neuroflash.com/api/workspace-service/v1/workspaces" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Schritt 3: Aus URL importieren (Entwurf erhalten)

Dieser Endpunkt ist asynchron

Der Brand-Voice-Import umfasst eine KI-Analyse und kann 10–30 Sekunden dauern.

curl -X POST "https://app.neuroflash.com/api/brand-voice-service/v1/workspaces/{workspace_id}/brand-voice-url-imports" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"audienceModelId": "538b1efc6f88ad88feebf7acd8c618facb54fe82",
"country": "us",
"language": "en",
"url": "https://your-brand.com"
}'

Antwort:

{
"brandVoice": {
"name": "neuroflash",
"description": "A clear, confident, and human tone that emphasises speed, simplicity, and trust. Prefers active voice, short sentences, and practical examples over jargon.",
"language": "en",
"country": "us"
},
"brand": {
"name": "neuroflash",
"values": ["innovation", "simplicity"],
"phones": []
}
}
Was Sie zurückerhalten, ist ein Vorschlag

Die Import-Antwort enthält keine id und wird nicht in Ihrem Workspace gespeichert. Das brandVoice-Objekt ist ein Entwurf — ein KI-extrahiertes Stilprofil, das zur Überprüfung und Speicherung bereitsteht.

Alternative: Manuell erstellen

Wenn Sie von Anfang an volle Kontrolle über die Brand-Voice-Einstellungen möchten, nutzen Sie stattdessen POST /brand-voices mit creationSourceType: "manual" und einem brand-Objekt. Die Import-Endpunkte sind schneller für den Einstieg, erfordern aber eine öffentlich erreichbare URL.

Referenz zu Import-Parametern

ParameterBeschreibungStandard
audienceModelIdEmbedding-Modell für Zielgruppen-Analyse538b1efc6f88ad88feebf7acd8c618facb54fe82
country2-Buchstaben-ISO-Ländercode, Kleinbuchstaben— (erforderlich)
language2-Buchstaben-ISO-Sprachcode, Kleinbuchstaben— (erforderlich)

Hinweis: country und language müssen ein gültiges Paar bilden. Siehe die Tabelle unterstützter Locale-Paare.

Schritt 4: Brand Voice speichern

Die Import-Antwort ist ein Entwurf. Um ihn dauerhaft zu speichern, übergeben Sie die extrahierten Attribute an POST /brand-voices:

curl -X POST "https://app.neuroflash.com/api/brand-voice-service/v1/workspaces/{workspace_id}/brand-voices" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "neuroflash",
"description": "A clear, confident, and human tone that emphasises speed, simplicity, and trust.",
"language": "en",
"country": "us",
"creationSourceType": "url",
"creationSourceURL": "https://your-brand.com",
"brand": { "name": "neuroflash", "values": ["innovation", "simplicity"], "phones": [] }
}'

Antwort (die Brand Voice ist jetzt mit einer id und workspaceId gespeichert):

{
"id": "7d3a6a83-2e19-4dcb-a8a0-5d8f2f8c1c6f",
"workspaceId": "b481b98b-a7ed-4d72-a1f2-8b2ae3a57854",
"name": "neuroflash",
"description": "A clear, confident, and human tone that emphasises speed, simplicity, and trust.",
"language": "en",
"country": "us",
"createdAt": "2026-04-09T12:00:00Z"
}

Schritt 5: Brand Voice überprüfen

curl "https://app.neuroflash.com/api/brand-voice-service/v1/workspaces/{workspace_id}/brand-voices/{brand_voice_id}" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Wichtige Felder: id, name, description, language, country.

Schritt 6: In Content-Generierung verwenden

Übergeben Sie brandVoice.description als System-Nachricht. Dies ist das empfohlene Muster, um generierte Inhalte markenkonform zu halten.

curl -X POST "https://app.neuroflash.com/api/ds-prototypes/chat/completions" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "x-workspace-id: YOUR_WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-4.1-mini",
"messages": [
{ "role": "system", "content": "Follow this brand voice: A clear, confident, and human tone..." },
{ "role": "user", "content": "Write a product announcement for our new feature." }
]
}'

Schritt 7: Brand Voices auflisten

curl "https://app.neuroflash.com/api/brand-voice-service/v1/workspaces/{workspace_id}/brand-voices" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"