Hmmm, what do you mean by setting responses in the plugin?
Let's have this example:
(1) When I right-click on the note, the context menu appears (in the plugin) ->
(2) I click on the one of the buttons saying "Summarise the note" (in the plugin) ->
(3) Internally that button executes the command (in the plugin) ->
(4) I get the note body and summarise the content in the body (in the plugin) ->
(5) I send the summarised content of the note to the panel (from the plugin to the web view) ->
(6) The panel displays the summarised content in the rich text editor (in the webview) -> finished!