Ask HN: How to deal with UI within the agentic loop

Posted by mattsadowsky 3 hours ago

Counter2Comment1OpenOriginal

I am planning to the module in may SaaS to allow user to chat about its data, features, modules that he have in his workspace with LLM Agent.

What approach should I use to render UI within the chat? any recommendations?

Comments

Comment by ruihanli 3 hours ago

I know two approaches. One is free-form rendering, like Anthropic's Artifacts. The other is to designate a category of tools whose output gets caught by the frontend and rendered in the chat using the corresponding components. I used the second one in several projects.