This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@botpress/builtins

10.51.10 • Public • Published

This package provides you with several builtin content types that we found to be most commonly used. To make use of them you need to install that package and register builtins like this:

const { contentElements, contentRenderers, actions, setup } = require('@botpress/builtins')

await setup(bp)

// Register built-in content elements
await Promise.all(
  Object.values(contentElements)
    .map(schema => bp.contentManager.loadCategoryFromSchema(schema))
)

// Register renderers for the built-in elements
_.toPairs(contentRenderers).forEach(params => bp.renderers.register(...params))

// Register built-in actions
await bp.dialogEngine.registerActions(actions)

Readme

Keywords

none

Package Sidebar

Install

npm i @botpress/builtins

Weekly Downloads

12

Version

10.51.10

License

AGPL-3.0-only

Unpacked Size

143 kB

Total Files

66

Last publish

Collaborators

  • chsir17
  • botpress-cloud-ops
  • eff
  • michael.masson
  • slvnperron
  • spgingras
  • franklevasseur