workflows.generate
Dokument aus Template generieren
Hilfe
Generiert ein Dokument basierend auf einem Template. Optional kann direkt in ein Format (pdf, docx, markdown, text) exportiert werden.
Parameter
| Name | Typ | Required | Default | Beschreibung |
|---|---|---|---|---|
template |
string | Ja | — | Template-Name (z.B. checklist, protocol, summary) |
variables |
object | Nein | {} | Template-Variablen (template-abhaengig) |
format |
string | Nein | — | Exportformat (pdf, docx, markdown, text) |
Rueckgabe
Generierter Inhalt, optional mit Exportpfad
Beispiel-Prompts
- Generiere eine Checkliste zum Thema Datensicherung
- Erstelle ein Protokoll für Meeting
- Generiere Dokument aus Template 'summary'
HTTP-Request (curl)
curl -X POST 'http://HOST:8502/api/workflows/generate' \
-H 'Cookie: kiara_admin_session=SESSION' \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'Content-Type: application/json' \
-d '{
"template": "...",
"variables": "...",
"format": "..."
}'