Library › Legal & Compliance AI › Compliance and risk
Convert system notes into a JSON data map with nulls for unknowns
- For Compliance and risk
- You practice Asking for a format you can use
- Time about 5 minutes
- Level Intermediate
About this exercise
Convert system owner notes into a JSON data map. Write a prompt for one code block holding a JSON array with one object per system and the keys system, personal_data (array of strings), purpose, retention and vendor_hosted (true, false or null). The system value is a lowercase hyphenated id such as member-app, and each purpose is under 5 words. Use null for any value the notes don't confirm; a guess or a "thinks" from staff counts as unconfirmed. No text outside the code block except one line, under 12 words, saying what to check.
Common mistakes when you ask AI for this
- Taking the guess as fact. AI writes 5 years for the door access retention. Try: Say: "A guess is unconfirmed; use null."
- Wrong hosting flags. AI marks everything vendor hosted. Try: Say: "vendor_hosted true only where an outside vendor hosts it."
- Prose around the JSON. AI explains the schema before and after. Try: Say: "No text outside the block except one short line."
- Wrong number of code blocks. AI splits output into several blocks or adds extra examples. Try: Say "one single code block".
- Code block too long. AI pads the block with extra rows or comments. Try: Say "no more than N lines in the block, no comments".
- Chatter around the block. AI adds an intro and a closing explanation. Try: Say "no text outside the code block".
What a strong prompt includes
- Lists keys
- Null rule
- Single code block
- Guess is unconfirmed
- Only confirmed facts
Related exercises
- Adapt one ad image to 3 sizes with Midjourney (Image & Video AI · Marketing and content)
- Age open requisitions as of today and flag the old ones (Finance AI · FP&A and financial analysts)
- Announce a new regional structure with a reporting table (Leadership AI · Executives)
- Announce a referral bonus with the steps to claim it (Marketing AI · HR and recruiting)
- Announce a schedule change in a text message under 45 words (Leadership AI · Small business owners)