how does agentic analytics work