image for site

Ensure Pre-Chat Form Appears After Reconnect

Learn how to force the pre-chat form to appear when a visitor reconnects after a timeout in Zendesk.

How can I ensure the pre-chat form appears after a visitor reconnects?

To ensure the pre-chat form appears when a visitor reconnects, you need to modify the Web Widget script. By default, the pre-chat form is skipped when a visitor reconnects after a timeout. To change this behavior, you can use a custom script that checks the chat session state and forces the pre-chat form to display.

Insert the provided script before your existing Web Widget (Classic) script. This script will close, reset, and reopen the widget in the pre-chat state if there is no active chat session and the widget is in the 'chat' state. For more details, visit theoriginal Zendesk article.


More related questions

What should I do if a chat trigger message appears instead of the pre-chat form?

If a chat trigger message appears instead of the pre-chat form, you need to update your trigger condition. Change the condition from 'When a visitor has loaded the chat widget' to 'When a visitor requests a chat'. This adjustment ensures that the…

How can I apply or reapply widget settings after a visitor reconnects?

To apply or reapply widget settings after a visitor reconnects, use the updateSettings API. This can be done by adding a script after the initial script that forces the pre-chat form to appear. The script example provided in the help doc applies…

Why am I seeing an 'Uncaught ReferenceError: zE is not defined' error?

The 'Uncaught ReferenceError: zE is not defined' error occurs if the script is used without your account-specific widget snippet being included first. Ensure that your Web Widget is loaded before using the zE APIs. To resolve this, add the widget…

Can I use this solution if I have multiple chat departments?

This solution is primarily designed for use with a single chat department. If you have multiple chat departments, you may need to adjust the script or settings to accommodate your specific setup. Consider consulting with Zendesk support or…

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