Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

208
Views
cómo finalizar la cobertura en bot framework usando node js

Estoy usando la acción de desencadenar y finalizar la conversación para finalizar mi chat... pero cierra el cuadro de diálogo actual del chat... quiero finalizar el historial o los datos del chat...

y estoy probando este código ..

 bot.dialog('/end', function (session) { session.endConversation("End Conversation"); }).triggerAction({ matches: /^(exit)|(quit)/i });
over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Podrías intentar usar

 session.clearDialogStack()

o

 session.reset(); session.endDialog();

Aquí encontrará información sobre el reinicio y aquí sobre clearDialogStack .

over 4 years ago · Santiago Trujillo Report

0

Puede usar este middleware simple para borrar bolsas de datos de usuario/datos de conversación:

 export interface IResetDataSettings { resetCommand: RegExp; } export class ResetMiddleware { public static data(settings: IResetDataSettings): IMiddlewareMap { return { botbuilder: (session, next) => { if (settings.resetCommand && session.message.text && settings.resetCommand.test(session.message.text)) { session.userData = {}; session.conversationData = {}; session.privateConversationData = {}; session.endConversation("Your conversation state was reset."); } else { next(); } } }; } }

Luego configúralo así:

 this.bot.use(ResetMiddleware.data({ resetCommand: /^reset data$/i }));
over 4 years ago · Santiago Trujillo Report

0

Puede usar el comando "/deleteprofile" para eliminar el estado de la bolsa de datos del bot User/PrivateConversation y restablecer su bot. Tenga en cuenta que algunos canales interpretan los comandos de barra de forma nativa, por lo que puede ser necesario enviar el comando con un espacio al frente ("/eliminar perfil")

Desde aquí: https://docs.botframework.com/en-us/technical-faq#my-bot-is-stuck--how-can-i-reset-the-conversation

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!