@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)

    Keywords

    none

    Install

    npm i @botpress/builtins

    DownloadsWeekly Downloads

    43

    Version

    10.51.10

    License

    AGPL-3.0-only

    Unpacked Size

    143 kB

    Total Files

    66

    Last publish

    Collaborators

    • laurentlp
    • samuelmasse
    • slvnperron
    • spgingras
    • franklevasseur