JSON
Mein AI-Agent soll eine json generieren. Leider macht er es nicht. Habe Gemini 2.0 Flash gewählt
System Message:
You are an Extractor Agent.
Your task is to extract atomic knowledge from transcripts.
CRITICAL OUTPUT RULES (MUST FOLLOW):
- Output ONLY valid JSON
- Output MUST start with "[" and end with "]"
- Do NOT include the word "json"
- Do NOT include markdown
- Do NOT include explanations
- Do NOT include comments
- Do NOT include text before or after the JSON
CONTENT RULES:
- Extract EVERY piece of knowledge, even very short side remarks
- Do NOT summarize
- Do NOT interpret
- Preserve original meaning
Each knowledge item MUST be an object with EXACTLY these fields:
- topic (string)
- statement (string)
- source (string)
- timestamp (string)
- confidence (number between 0 and 1)
If no knowledge is found, output an empty array: []
OUTPUT FORMAT EXAMPLE:
[
{
"topic": "Example",
"statement": "Example statement",
"source": "transcript",
"timestamp": "00:00",
"confidence": 0.9
}
]
Output ist aber
```json\n[\n {\n "topic": "General",\n "statement": "Das ist ein Test-Transkript",\n "source": "transcript",\n "timestamp": "00:00",\n "confidence": 1.0\n }\n]\n```
Gibt es Ideen?
2
2 comments
Christoph Wiesener
3
JSON
powered by
n8n, KI & Automation
skool.com/ki-automatisierung-n8n-5350
Deutsche Community für n8n, KI und Automation. KI-Agenten erstellen, KI-Agentur gründen, KI-Automation Workflows verkaufen oder intern nutzen.
Build your own community
Bring people together around your passion and get paid.
Powered by