Filtering article suggestions by label in the Web Widget allows you to provide more relevant content to users based on their context. You can use the JS API to set specific labels that the autoreply feature will use to filter articles.
To implement this, add the following code snippet before the widget script is loaded:
<script>zESettings = { webWidget: { answerBot: { search: { labels: ['hello', 'world'] } } }}</script>
This is particularly useful for creating URL mappings that set labels based on the user's location on your site or filtering articles for specific platforms.
You can suppress autoreplies in the Web Widget (Classic) using the JS API. By setting thesuppress
property totrue
, you can prevent the widget from suggesting answers in certain situations. This is useful if you want to control when and how…
To temporarily suppress contact channels in the Web Widget, you can use the JS API to require users to attempt self-service before showing contact options. This encourages users to find answers themselves before reaching out for support. Here's how…
You can customize the appearance of the bot in the Web Widget by modifying the widget's title, bot name, and avatar using the JS API. This allows you to tailor the bot's look to better fit your brand. To do this, add the following code snippet…