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.