Can we using floating menu like this?

Is it possible in bettertouchtool (using applescript, javascript, and btt’s floating webview/input boxes) to create a custom dialog box where:

  • you type a query,
  • that query gets sent to browser in the background, in my case perplexity.ai’s search url in the background (like: it opens this, https://www.perplexity.ai/search/{myquery}),
  • the automation fetches the response from the webpage, and
  • just the response text gets displayed right back to you inside the same (or a new) btt dialog—so you never have to leave your workflow or open the browser manually?

In other words, can we build a “mini perplexity search box” inside bettertouchtool that’s powered by btt scripting and web automation, using floating input/output menus?

@Andreas_Hegenberg is this possible?