I have build a chatbot using dialogflow essentials, I want to send the responses in source, (when i click on a button which I have made using shiny).
Can someone help me with this?
To directly interact with the open document in the source panel, you can use {rstudioapi}, e.g. rstudioapi::insertText().
You can also see what has been done by similar packages, such as {GPTstudio} or {chatgpt}, you might want to reuse the same patterns.