Respond on UI (Activepieces Chat UI)

Hello

Can a “respond on UI” message from custom code be sent? If so what is the best way to handle this?

Why not use the output of the custom code inside the respond on ui?