1

I can see that by default the first message that is shown to the end user is from "BOT" . How do I change this to something a little more "human"? Perhaps something like "Agent"?

Id imagine customers a little apprehensive about just talking to a robot?

screenshot below of default "from"

enter image description here

Judy007
  • 5,484
  • 4
  • 46
  • 68

1 Answers1

4

Twilio developer evangelist here.

The initial name "Bot" comes from templated strings in the FlexWebChat manager. The template string for the name is PredefinedChatMessageAuthorName.

You can override these strings once you have a FlexWebChat manager instance. To change the PredefinedChatMessageAuthorName you would do the following:

FlexWebChat.Manager.create(configuration)
    .then(manager => {
        manager.strings.PredefinedChatMessageAuthorName = "Agent";

        ReactDOM.render(
            <FlexWebChat.ContextProvider manager={manager}>
                <Flex.RootContainer />
            </FlexWebChat.ContextProvider>,
            document.getElementById("root")
        );
    });

Let me know if that helps at all.

philnash
  • 70,667
  • 10
  • 60
  • 88