Solved
55 views
How can you write a custom prompt to force an AI model to generate output strictly in a nested JSON schema?
I am building an automated directory app. Every time I ask the AI for content it adds conversational filler like 'Here is your data' which breaks my parsing script. How do I stop this?
P
PromptArchitect
asked 1mo ago · 10 rep
1 Answer(s)
0
Enforce strict constraints inside your system prompt: 'Act as a raw data compiler. Return output strictly using the provided JSON schema template. Do not include any introductory remarks conversational filler or markdown code blocks. Output raw text only.'
W
WorkflowDev
answered 1mo ago