Repository navigation
¿Se puede persistir el contexto y el flow actual si se reinicia el bot? #1197
Unanswered
fedemaidan
asked this question in
Q&A
Replies: 1 comment
|
Por defecto builderbot guarda el historial y el estado en memoria ( import { createBot } from '@builderbot/bot'
import { MongoAdapter as Database } from '@builderbot/database-mongo'
const adapterDB = new Database({ dbUri: MONGO_DB_URI, dbName: 'bot' })
await createBot({ flow, provider, database: adapterDB })Hay adaptadores oficiales para Mongo, MySQL, Postgres y JSON. Con eso el historial de la conversacion sobrevive al reinicio. Ten en cuenta que el |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Alguno logró que la app sea reciliente a reinicios sin reiniciar los flujos de los usuarios ante un reinicio? lo uso con .js
All reactions