image for site

Filter Article Suggestions by Label in Zendesk

Discover how to filter article suggestions by label in Zendesk's Web Widget for more relevant content delivery.

How do I filter article suggestions by label in Zendesk's Web Widget?

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.


More related questions

How can I suppress autoreplies in Zendesk's Web Widget (Classic)?

You can suppress autoreplies in the Web Widget (Classic) using the JS API. By setting thesuppressproperty totrue, you can prevent the widget from suggesting answers in certain situations. This is useful if you want to control when and how…

How do I temporarily suppress contact channels in Zendesk's Web Widget?

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…

How can I update the appearance of the bot in Zendesk's Web Widget?

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…

Interested indeflectingover 70% of your Zendesk support tickets?

Our AI customer support agent is here to help. Trained on all your help docs, installed directly into your Zendesk account, it can be used to automate customer replies for tickets or live chat. Learn more below.
Zendesk logo

Zendesk Support Tickets

Receive new tickets by email or a support form? This integration is for you.
My AskAI integrated within Zendesk to deflect support tickets
Learn about our Zendesk ticket integration
Zendesk logo

Zendesk Messaging (live chat)

Using Zendesk's Messaging widget on your site for live chat? This integration is for you.
My AskAI integrated within Zendesk to deflect customer support live chat conversations
Learn about our Zendesk Messaging integration

Join1,000+ companies reducing their support costs and freeing up support agents for more important work

Vestd company logo — Customer of My AskAI's AI customer support agents
Genesis company logo — Customer of My AskAI's AI customer support agents
Zinc company logo — Customer of My AskAI's AI customer support agents
Customer.io company logo — Customer of My AskAI's AI customer support agents
Zeffy company logo — Customer of My AskAI's AI customer support agents
NHS company logo — Customer of My AskAI's AI customer support agents
Kontakt.io company logo — Customer of My AskAI's AI customer support agents

Reduce support costs.Spend more time on customer success.

Our AI customer support agents are already used by 👇
Companies using AI assistants on their websites