image for site

PreChatForm and VisitorInfo in Android Pre-3.2.0

Understand how PreChatForm and VisitorInfo interact in Android before SDK Chat 3.2.0 and how to manage visitor data.

What is the behavior of PreChatForm and VisitorInfo in Android before SDK Chat 3.2.0?

Before SDK Chat 3.2.0, Android handles PreChatForm and VisitorInfo differently compared to iOS. When the PreChatForm is enabled, the VisitorInfo gets erased entirely, regardless of whether the fields are required, optional, or hidden. To work around this, you can update the VisitorInfo once the chat has started, except for the department, which cannot be edited mid-chat.

To implement this, create a VisitorInfo object with known user information, configure the pre-chat form for missing details, and set up an observer. Once the PreChat is completed and the chat reaches the STARTED status, update the visitor information. This ensures that the chat session has the most accurate visitor data possible.


More related questions

How does the PreChatForm work with VisitorInfo in iOS?

In iOS, the PreChatForm and VisitorInfo objects work together to gather user information before starting a chat. The SDK uses the ChatAPIConfiguration's visitorInfo and department properties, along with the ChatConfiguration's…

How has the use of PreChatForm with VisitorInfo changed in Android SDK 3.2.0 and later?

From Android SDK 3.2.0 onward, the use of PreChatForm with VisitorInfo has become more flexible. The latest SDK allows for a more seamless integration of these features, enabling you to set visitor information more effectively during a chat…

Can I use both PreChatForm and VisitorInfo simultaneously in iOS?

Yes, in iOS, you can use both PreChatForm and VisitorInfo simultaneously. Initially, the idea was to use one or the other, but this has been updated to allow both to be used together. The SDK will show the form to the user if the underlying…

What should I do if I encounter issues with the code provided in the Zendesk article?

If you encounter issues with the code provided in the Zendesk article, it's important to note that the article is for instructional purposes only, and Zendesk does not support or guarantee the code. You can post any issues you have in the comments…

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