Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wealize/branded-chatbot-window

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wealize/branded-chatbot-window

![version](https://img.shields.io/badge/version-1.5.7-blue)

  • 1.5.7
  • latest
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Branded Chatbot Window

version

A simple chatbot window written in React and based on @wealize/react-chat-window that lets your connect with a chatbot endpoint and themize the appearance of the chat to fit a branding.

Usage

Just include this snippet of code inside your HTML and set your configuration variables to communicate with your chatbot endpoint.

window.chatbotSettings = {
  chatbotEndpoint: 'https://your-endpoint.here/webhooks/webhook_id',
  agentProfile: {
    teamName: 'Your bot name',
    teamExplanation: 'your bot short description'
  }
};

(function(){var w=window;var d=document;var l=function(){var x=d.getElementsByTagName('script')[0];var c=d.createElement('div');c.id='chatbotContainer';x.parentNode.insertBefore(c,x);var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://d1hbk1yt8xmke0.cloudfront.net/latest/branded-chatbot-window.min.js';x.parentNode.insertBefore(s,x);};if(d.readyState==='complete'){l();}else if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}})();

Configuration

variabletyperequireddescription
chatbotEndpointstringyesThe endpoint you want to connect your chatbot to.
agentProfileobjectyesInformation about the chatbot visible to the users.
     teamNamestringyesVisible chatbot name in the application.
     teamExplanationstringNoShort description for your chatbot
showEmojiboolnoWhether or not to show the emoji button in the input bar. Defaults to true.
showFileIconboolnoWhether or not to show the file button in the input bar. Defaults to true.
userTimeoutintegernoNumber of seconds until a new conversation is created. Defaults to 2147483647
isWebViewbooleannoEnable webchat for webview in apps. Defaults to false
themeobjectnoTheme of the chatbot
     brandColorstringYesColor of the brand

Releasing new versions

If you want to publish a new version of the chatbot window to our CDN servers, you must configure an IAM Access Keys and populate your .env file with the provided AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_S3_BUCKET.

IMPORTANT

Check that your package.json has a newer version number for the release!

Then just run the following command: yarn release

FAQs

Package last updated on 26 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc