Namespace

Helpers

Helpers

Methods

# static exports.createWebChat(userConfiguration) → {Promise.<FlexWebChat>}

Create Twilio Flex WebChat. Does not render the instance.
Parameters:
Name Type Description
userConfiguration Config configuration object
Promise.<FlexWebChat>
Example
Twilio.FlexWebChat.createWebChat(configuration)
  .then((webChat) => {
    // do something with webChat.manager for example

    webChat.init(); // to initialize and render
  });

# static exports.renderWebChat(userConfiguration) → {Promise.<FlexWebChat>}

Create and render Flex WebChat instance.
Parameters:
Name Type Description
userConfiguration Config configuration object
Promise.<FlexWebChat>
Example
Twilio.FlexWebChat.renderWebChat(configuration);