N8n workflows configured with internal looping and queue management to digest thousands of records over time without hitting API timeouts.
A Python-based chunking_utility.py securely structures long PDF/Word documents
into overlapping RAG-optimized pieces while perfectly preserving root ECCC metadata (consultation ID, entry
ID).
An integrated pre-processor (metadata_validator.py) verifies incoming data
against standard ECCC Controlled Vocabularies (e.g., verified Regions and Themes) before
executing expensive GenAI operations.
id, prompt,
choices[], and optional effects (score, flags, inventory, time, detection
risk).
{
"id": "start",
"prompt": "You receive an email claiming to be from IT...",
"choices": [
{"label": "Click the link", "to": "phished", "effects": {"risk": "+=20"}},
{"label": "Report to security", "to": "good_call", "effects": {"risk": "-=5", "badge": "reporter"}}
]
}