# Show or Hide your chatbot based on API parameters

URL parameters or API parameters are additional strings present in the URL that
gives additional information to the browser. You can choose to show or hide the
chatbot when a particular API parameter or a set of such parameters are present
in the URL.



Please go to Settings > Targeting > Visitor targeting rules. Click on the + Add
rule button under Hide for. Select API Parameters from the dropdown list.









In the above example, we added a rule under Hide for. So, if a user visited your
website and has the following URL:

yourwebsite.com/link?uid=anonymous&category=inactive

then the chatbot will be hidden for such a user. If only one of the parameters
are present in the URL, then the chatbot will be visible to the user.



The same rule can be added under Show for as well.



Note


This setting is only available for the chatbot when it is in widget mode. It is
not applicable to embedded or full-page chatbots.



Tip


Don't forget to publish your changes
[https://collect.chat/help/article/1065-how-to-publish-your-form] before
testing.