Text this: Agentic rulebooks using active inference: an artificial intelligence application for environmental sustainability