How to set the context programmatically?

To set the context programatically, you just need to set the following meta tag on the page as the following -

<meta name="faqbot-tags" content="List of Tags separated by comma">

...