How to auto-populate last search in virtual agent to problem description of live agent request?

When a user clicks on virtual agent and searches for any query

A list of results with Articles, Q&A, Offerings etc are displayed

If user doesn't like the results or if they aren't helpful and if the user wants to connect with a live agent, he will click on Connect with a live agent button at the end of the page

If the user clicks that button, a service request form is opened

I want to auto-populate the last searched query of the user to the problem description field of this request form automatically instead of user typing it again

Please share the steps to configure this