Build chatbots and conversational experiences using React
MIT License
Bot releases are hidden (Show)
Published by vanbasten17 7 months ago
NOTE: Required version has been updated to be run with Node 20 and npm 10.
jest
, eslint
, prettier
and webpack
has been updated to use latest versions.Published by vanbasten17 over 1 year ago
Pusher
.HandoffBuilder
.forceAssignIfNotAvailable
and autoAssignOnWaiting
and extraData
in HandoffBuilder
.Missed
and FormMessage
.imagePreviewer
webchat's property to allow customizing preview of media files.blockInputs
.userInput.attachments.custom
and userInput.emojiPicker.custom
to allow declaring custom components.useStorageState
to support usage of different storages.CoverComponent
. Thanks to external contributor jruivo-dev.emoji clarification icon
not working in ShadowDOM mode. Thanks to external contributor TD-fupengfei.WhatsApp Cloud
.Published by vanbasten17 almost 3 years ago
NOTE: At this moment, Botonic v0.20.0
will be in Mainteinance LTS
status and will be maintained in master-lts
branch until further notice.
Currently we are working on Botonic 1.0 which will come with several improvements and hence all its commits from now on will reside in master
.
pre
and post
calls.hostId
to be changed at runtime.deviceAdapter
behavior with improved device detection.Published by vanbasten17 about 3 years ago
--preview
.BotonicOutputParser
for Botonic 1.0.Raw
component to directly send JSON payloads to connected messaging APIs and allow access to all of their features.experimental
directory for Botonic 1.0. #1701
botonic-plugin-watson
to work with Assistant V2.-c
flag of deploy command not working.Published by vanbasten17 over 3 years ago
theme.button.autodisable
and theme.button.disabledstyle
.autodisable
and disabledstyle
to Button
components.StemmerUK
to provide support for Safari browser.Published by vanbasten17 almost 4 years ago
Codecov
for Botonic and trigger Github Workflows only when necessary. #1177.botonic serve
, botonic train
). Now it is no longer necessary to run npm run start
. #1176
user ID
was lost, causing some webchat's to not load correctly.Published by vanbasten17 almost 4 years ago
request matcher
and pass lastRoutePath
to current bot context. #1086
customMessage
.tfjs
to 2.7.0.tfjs
to 2.7.0.Was this article useful?
widget.Oauth 3.1.0+
.getRoute
checks correctly if the input matches with a childRoute
.storageKey
works as expected.onMessage
when receiveng messages coming from server-side.stringifyWithRegexs
causing some regexes not being updated in local/session storages. Fixed react warnings (produced by npm run test
), log deprecated props in custom messages. #1063enableTimestamps
=> enabletimestamps
imagesStyle
=> imagestyle
onClose
being called on the very first render of the app.WebchatSettings
component not updating settings correctly.Published by vanbasten17 almost 4 years ago
New webchat features:
target
prop to Button
component to define the behavior to open links.WhatsappTemplate
component for Webchat.getBotonicApp()
to access Botonic
methods.storageKey
that indicates the key name to use in order to store the webchat state in localStorage
(or sessionStorage
).Improvements in Content.validate of text & shortText fields
New CMS method to deliver content by id when the content type is unknown.
Added NLP support for German.
user
references in favor of session.user
.session
properties now are merged and updated correctly.Received true for a non-boolean attribute markdown
. Caused by styled-components.Published by vanbasten17 about 4 years ago
dynamo
using Botonic dynamoDB plugin from a JS bot.{type}-{from} {customTypeName}
text-user
custom-bot my-custom-message-name
mobileStyle
in webchat/index.js
is now allowed.enableTimestamps
prop is now allowed.openCoverComponent
, closeCoverComponent
and toggleCoverComponent
are available in the browser, through the Botonic object, so that the coverComponent
can be shown/hidden manually.logCall
flag to contentfulOptions
in order to log creation configuration, as well as all calls performed to the CMS.@botonic/plugin-google-analytics
index.d.ts
definitions./webpack-entries
to every template to ensure that Webpack's tree-shaking is done and modified webpack.config.js
as a consequence. This reduces the bundle sizes of every bot. From developers upgrading their projects from version 0.13.0
or below the following changes will be necessary:
webpack-entries
under bot project's root folder. Copy dev-entry.js
, node-entry.js
, webchat-entry.js
and webviews-entry.js
inside. You can find them here.webpack.config.js
:botonicDevConfig
modify the line for entry
to be: path.resolve('webpack-entries', 'dev-entry.js'),
botonicWebchatConfig
modify the line for entry
to be: path.resolve('webpack-entries', 'webchat-entry.js'),
botonicWebviewsConfig
modify the line for entry
to be: path.resolve('webpack-entries', 'webviews-entry.js'),
botonicServerConfig
modify the line for entry
to be: path.resolve('webpack-entries', 'node-entry.js'),
index.d.ts
definitions.theme.message.timestamps.enable
to true
. (Default format will be as follows: 29 Jun, 12:40:07
). The content can be formatted by defining a function under theme.message.timestamps.format
which returns a string with the formatted date and their styles under theme.message.timestamps.style
.index.d.ts
definitions.getAvailableAgentsByQueue
, which was not accessible.moment
dependency to reduce bundle size.PersistentMenu
automatically when the end user clicks outside.CoverComponent
is shown.animationsEnabled
prop.hoverText
to hoverTextColor
in button.jsx so that changing the text color of a button on hover can work.Published by vanbasten17 over 4 years ago
New webchat features:
visibility: 'dynamic'
in webchat/index.js to enable them, or as a parameter in Botonic.render({appId:'YOUR_APP_ID', visibility: 'dynamic'})
. You can also pass a custom value or a custom function returning a boolean to handle webchat visbility (also through visibility
option).Botonic.getVisibility()
function which returns a promise resolving to true or false depending on Hubtype Desk webchat visibility settings.WebchatSettings
component to allow changing webchat features and styles dynamically.uuid
dependencies.user
props.Messenger Extensions SDK
which was causing issues with Webviews.enableUserInput
.@tensorflow/tfjs-node
and @tensorflow/tfjs
dependencies to 1.7.3 which were automatically updating to higher versions with bugs, introducing bugs to training processes.@tensorflow/tfjs
to 1.7.3.Published by vanbasten17 over 4 years ago
Docusaurus
. Check it out at https://docs.botonic.io/.tsconfig.json
.withAgentId(agentId)
or withAgentEmail(agentEmail)
method of HandOffBuilder
. Now queue is not mandatory. The case will be assigned to the first queue which agent belongs.getAgentVacationRanges
is added to know availability of agents.index.d.ts
.General features:
index.d.ts
.Text.serialize
method.New webchat features:
button: {messageType: 'postback'}
in webchat/index.js
to enable the previous behavior.<Text markdown={false}>Your text</Text>
.Custom Messages
.customPersistentMenu
in webchat/index.js
.customMenuButton
.Multichannel:
Multichannel
visualization.Multichannel
to support letter indexes.Multichannel
Text
and Carousel
.Multichannel
to allow separating messages with custom string.@botonic/plugin-inbenta
to integrate the Inbenta Knowledge Management API. Please refer to its README for more information..eslintrc.js
.webchatReducer
moved to its own file.webchatReducer
split to reduce complexity.renderBrowser
/renderNode
unified.emoji-picker-react
updated to latest version 3.7.1 (visual changes).node-nlp
dependency.ContextWithLocale
if locale required.src/nlu
directories for all templates (added .gitkeep
file). Remove these files before running botonic train.await
.rimraf
in favor of fs.rmdirSync
.CleanWebpackPlugin
with{ cleanOnceBeforeBuildPatterns: ['dist'] }
to prevent occasional builds from crashing. We strongly suggest to add this line in your bot's webpack.config.js
if updating from previous versions.botonic serve
mode.postMessage
promises are now forwarded.botonic serve
mode).message.bot.image
, header.image
, intro.image
and triggerButton.image
are now accepting URLs.BotonicMsgConverter
is now using replaceEmptyStringsWith
option with value.Published by vanbasten17 over 4 years ago
index.d.ts
.Multichannel
HOC, which automatically converts your interactive components to text-based components for WhatsApp.theme
object through animationsEnabled
or animations.enabled
properties.userInput.sendButton.enable
to false
. You can also use your own created component with userInput.sendButton.custom
.Botonic.clearMessages()
method to force the deletion of the messages stored in the webchat.node-v10.19.0
resolveConfig
object.emojiPicker
property is renamed enableEmojiPicker
.simplebar
deprecation warnings have been resolvedcompromise
import in @botonic/cli
's nlu
template.div
instead of iframe
for a better visualization when developing locally without affecting production buildsPublished by vanbasten17 almost 5 years ago
{ defaultDelay: 0.4, defaultTyping: 0.6 }
to avoid extravagant warnings in botonic serve
.@botonic/cli
's templates to upgrade automatically to last patch version.Text
had empty text and no buttons nor replies.Published by ericmarcos almost 5 years ago
mobileBreakpoint
, webchat/index.js).userInput.attachments.enable
of webchat/index.js).userInput.emojiPicker
, webchat/index.js).theme.scrollbar
, webchat/index.js). Now the default scrollbar's style will be like the one in OS X systems for all platforms (Mac, Linux and Windows).header.style
, reply.style
, button.style
, userInput.style
, userInput.box.style
, webchat.header.style
, webchat/index.js).persistentMenu
the object {closeLabel: 'newCloseLabel'}
.export const config = { defaultDelay: 1, defaultTyping: 2 }
can be added to src/index.js to define a global configuration for typing and delay options.fontFamily
attribute in theme.style
in webchat/index.js.style.background
passed to botMessageStyle
or userMessageStyle
.@rebass/grid
to rebass
.staticAsset
in custom-webchat
template that produced a bug in production.