Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I customize the initial message sent by the Answer Bot? #123

Open
Guicbdiniz opened this issue Oct 1, 2021 · 10 comments
Open

How can I customize the initial message sent by the Answer Bot? #123

Guicbdiniz opened this issue Oct 1, 2021 · 10 comments

Comments

@Guicbdiniz
Copy link

Hello.
Is it possible to change the default message sent by the Answer Bot as the chat is opened?

@knapeto
Copy link

knapeto commented Oct 26, 2021

Hi,

yes you can! Here is the docs https://developer.zendesk.com/documentation/classic-sdks/unified-sdk/android/localize_text/#localizing-text

For android:
android/app/src/main/res/values/chatbot.xml

<resources>
    <string name="zs_engine_greeting_message">.....</string>
</resources>

and for iOS:
ios/Localizable.strings

"ios.conversation.ui.chat.welcome_message.conversation_start" = "....";

@ahmedam55
Copy link

Thanks @knapeto for the help!

Do you know though how to change "Answer Bot" in iOS, as in Android they have a resource key for it, but not in iOS?

@knapeto
Copy link

knapeto commented Nov 18, 2021

I don't get your question. @ahmedam55

@ahmedam55
Copy link

In Android, there is a key to change the string of "Answer Bot", for offline messages: https://developer.zendesk.com/documentation/classic-web-widget-sdks/unified-sdk/android/localize_text/#chat
image

I don't seem to find such a key in iOS

@knapeto
Copy link

knapeto commented Nov 18, 2021

Answer Bot
The Bot's name is set with a client-side API.

The Answer Bot component contains the following strings:


See docs here https://developer.zendesk.com/documentation/classic-web-widget-sdks/unified-sdk/ios/configure/#customize-the-bot-label-string

@ahmedam55
Copy link

@knapeto
Copy link

knapeto commented Nov 18, 2021

I see your point. Please ask on it in their support chat, they are good! Leave the answer here for the future. Thanks

@ahmedam55
Copy link

That worked perfectly fine with me!

image

@Ravid-anywhere
Copy link

Hi! What file is it?

@grifotv
Copy link

grifotv commented Nov 30, 2021

@ahmedam55 @Ravid-anywhere as far as I know this can be set in JS via the startChat method:

ZendeskChat.startChat({
  messagingOptions: {
    botName: 'Custom Bot Name',
  },
});

Source: https://github.com/taskrabbit/react-native-zendesk-chat/blob/main/RNZendeskChat.d.ts#L8-L21

I can confirm botName field works. I haven't tried the iOS (botAvatarName + botAvatarName) nor the Android ones (botAvatarDrawableId). To be honest I'm not sure why botAvatarDrawableId would be of type number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants