Recent searches


No recent searches

Richard Pendlebury's Avatar

Richard Pendlebury

Joined Aug 20, 2024

·

Last activity Aug 20, 2024

Following

0

Followers

0

Total activity

1

Votes

0

Subscriptions

0

ACTIVITY OVERVIEW

Latest activity by Richard Pendlebury

Richard Pendlebury created a post,

Post Q&A - Chat, messaging, and widgets

Is it possible to hide the username and email requests on the “Contact Us” screen, so that the user is not required to add these, and the values can be added from VisitorInfo?

 

This is my set up:
Gradle/toml:

zendesk-messaging = "com.zendesk:messaging:5.4.0"

zendesk-chat = "com.zendesk:chat:3.4.0"

 

Application:

Chat.INSTANCE.init(applicationContext, "MyAccountKey")

 

Show messaging screen:

override fun setUpChat() {
    Chat.INSTANCE.setChatProvidersConfiguration(buildChatProvidersConfiguration())
    MessagingActivity.builder()
        .withEngines(ChatEngine.engine())
        .show(context, buildChatConfiguration())
}

private fun buildChatProvidersConfiguration() =
    ChatProvidersConfiguration.builder()
        .withVisitorInfo(buildVisitorInfo())
        .withDepartment(null)
        .build()

private fun buildVisitorInfo() =
    VisitorInfo.builder()
        .withName("MyName")
        .withEmail("myemail@gmail.com")
        .build()

private fun buildChatConfiguration() =
    ChatConfiguration.builder()
        .withPreChatFormEnabled(true)
        .withNameFieldStatus(PreChatFormFieldStatus.HIDDEN)
        .withEmailFieldStatus(PreChatFormFieldStatus.HIDDEN)
        .build()
 

On the “Contact Us” screen, I get a prompt from the Answer Bot. I add my response, then I am asked for my name (which I can skip) and my email (which I cannot skip)
How do I configure this so that neither name or email are requested on this screen?

Posted Aug 20, 2024 · Richard Pendlebury

0

Followers

0

Votes

0

Comments