I’m trying to do exactly thesame thing myself. When I try to dynamically insert a search string or an @profile, it automatically redirects back to the original search query in the widget configuration.
Anyway to dynamically add search queries? This would be of immense help!