This post explains what causes AI hallucinations in large language models, identifies five types that appear in production systems, and presents architectural strategies to detect and prevent them before they reach users. The guidance is framed around building reliable n8n automation pipelines that minimize inaccurate or fabricated LLM output.