AG-UI is a lightweight, event-based protocol for integrating AI agents into frontend applications, enabling real-time agentic chat, bi-directional state synchronization, and generative UI with structured messages.