Core flow builder with addKeyword/addAnswer/addAction chainable API for defining conversation trees. Framework-agnostic bot logic layer.
// Source: https://github.com/codigoencasa/builderbot | License: MIT | Copyright 2022 Leifer Mendez
// Provided via justclaw.it.com; keep this notice with the code.
import typescript from 'rollup-plugin-typescript2'
import json from '@rollup/plugin-json'
import commonjs from '@rollup/plugin-commonjs'
import { nodeResolve } from '@rollup/plugin-node-resolve'
export default {
input: ['src/index.ts'],
output: [
{
dir: 'dist',
entryFileNames: '[name].cjs',
format: 'cjs',
exports: 'named',
},
],
plugins: [
json(),
nodeResolve({
resolveOnly: (module) => !/ffmpeg|sharp/.test(module),
}),
commonjs(),
typescript(),
],
}
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key