From 6168275d92f24e680960cb7b6e206f6a02574532 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Tue, 3 Dec 2024 21:43:28 -0300 Subject: [PATCH] fix(llm.gblib): Fix in doc. publishing. --- packages/core.gbapp/services/GBMinService.ts | 22 +++++++++++-------- .../src/components/SidebarMenu.js | 10 ++++++--- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/packages/core.gbapp/services/GBMinService.ts b/packages/core.gbapp/services/GBMinService.ts index 8a4ed56e..f774fd64 100644 --- a/packages/core.gbapp/services/GBMinService.ts +++ b/packages/core.gbapp/services/GBMinService.ts @@ -1287,16 +1287,20 @@ export class GBMinService { */ private async processEventActivity(min, user, context, step: GBDialogStep) { const pid = step.context.activity['pid']; - if (context.activity.name === 'whoAmI') { - await step.beginDialog('/whoAmI'); - } else if (context.activity.name === 'showSubjects') { - await step.beginDialog('/menu', undefined); - } else if (context.activity.name === 'giveFeedback') { - await step.beginDialog('/feedback', { - fromMenu: true - }); + + const contentLocale = min.core.getParam( + min.instance, + 'Default Content Language', + GBConfigService.get('DEFAULT_CONTENT_LANGUAGE') + ); + + if (context.activity.name === 'showSubjects') { + await step.replaceDialog('/answer', { query: `Show a list of subjects you can help me in ${contentLocale} language.` }); + + } else if (context.activity.name === 'showFAQ') { - await step.beginDialog('/faq'); + await step.replaceDialog('/answer', { query: `Show a FAQ for me about how can you help me in a bullet list, in ${contentLocale} language.` }); + } else if (context.activity.name === 'answerEvent') { await step.beginDialog('/answerEvent', { questionId: context.activity.data, diff --git a/packages/default.gbui/src/components/SidebarMenu.js b/packages/default.gbui/src/components/SidebarMenu.js index b3e26737..a630662b 100644 --- a/packages/default.gbui/src/components/SidebarMenu.js +++ b/packages/default.gbui/src/components/SidebarMenu.js @@ -61,8 +61,10 @@ class SideBarMenu extends React.Component {
- this.send("whoAmI")}> - Who are You? + window.open(`https://pragmatismo.sharepoint.com/sites/bots/Online/${this.props.instance.botId}.gbai`)} + > + Drive
@@ -75,9 +77,11 @@ class SideBarMenu extends React.Component {
this.send("giveFeedback")}> + onClick={() => window.open('mailto:talk@pragmatismo.cloud')} + > Suggestions +