Ah, you want to create a filter automatically via the URL? That is actually possible.
Easiest way to do it (as It really depends on your Kibana version) will be to create a dashboard, copy the URL, then create a filter for it and copy the second URL.
If you compare them the part of the URL that does the filter should be pretty obvious.
Then from you app you can just add that part to the Kibana url when you click on it.