image for site

Modify Zendesk Web Widget for Multiple Departments

Learn how to adjust the Zendesk Web Widget script to handle multiple departments and display the widget based on their online status.

How can I modify the Zendesk Web Widget script for multiple departments?

To modify the Zendesk Web Widget script for multiple departments, you need to adjust the JavaScript code to check the online status of each department. The script can be set to display the widget only if one or more specified departments are online. This involves using the API to update the widget settings based on the status of each department.

While the original script example focuses on a single department, you can expand it to include multiple departments by checking each department's status and updating the widget settings accordingly.


More related questions

Can I show the Zendesk Web Widget only when a specific department is online?

Yes, you can configure the Zendesk Web Widget to display only when a specific department is online by using a custom script with the Zendesk API. This isn't a native feature, but with a bit of coding, you can achieve this functionality. The script…

Is the custom script for Zendesk Web Widget supported by Zendesk?

No, the custom script for configuring the Zendesk Web Widget to show only when a specific department is online is not officially supported by Zendesk. The script is provided for instructional purposes, and Zendesk does not guarantee its…

What happens if the specified department is offline in Zendesk Web Widget?

If the specified department is offline, the Zendesk Web Widget will suppress the chat feature, meaning it won't be visible to users. However, other features of the widget, such as the contact form or help center search, will still be available to…

Can I use the Zendesk Web Widget script for auto-responding when offline?

While the script primarily focuses on displaying the widget based on department status, you can explore additional scripting to implement auto-responses when a department is offline. However, this might require more advanced coding and isn't…

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