Connecting Conversation and UI with Hermes: The Architecture of an AI Dialogue Plugin A developer built Hermes, an AI dialogue plugin that renders interactive forms directly in chat, letting a model call tools to create drafts while a React UI collects missing values and submits the request through an SDK. The architecture links the model to the outside world through three mechanisms: Python-registered tools with JSON schemas, a SKILL.md playbook loaded on demand, and directives that Hermes replaces with UI components. The developer reports that a local model (qwen3.6) sometimes invented directive names or skipped the form, prompting the use of an afterCall field to carry mandatory follow-up instructions back to the model. I built a Hermes plugin that opens a form in the chat when you talk to it, helps you fill in the values through a GUI, and then runs the request through an SDK behind the scenes. I will not go into the SDK itself the mechanics of sending funds . There are three players: | Player | Role | |---|---| | User | Tells the chat what they want. Fills in the form and decides when to run it | | Model | Reads the conversation and decides what to do | | UI | Renders a form in the chat. Calls the SDK from the submit button | The model can only produce text and tool calls. Hermes therefore provides three mechanisms that connect the model to the outside world. php flowchart LR U User -- chat -- M Model M -- 1.1 call a tool -- P Plugin logic