fix(llm.gblib): Fix in doc. publishing.
This commit is contained in:
parent
a443927d36
commit
6168275d92
2 changed files with 20 additions and 12 deletions
|
@ -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', <AskDialogArgs>{
|
||||
questionId: context.activity.data,
|
||||
|
|
|
@ -61,8 +61,10 @@ class SideBarMenu extends React.Component {
|
|||
</span>
|
||||
</div>
|
||||
<div className="iconMenu">
|
||||
<span className="iconText" onClick={() => this.send("whoAmI")}>
|
||||
Who are You?
|
||||
<span className="iconText"
|
||||
onClick={() => window.open(`https://pragmatismo.sharepoint.com/sites/bots/Online/${this.props.instance.botId}.gbai`)}
|
||||
>
|
||||
Drive
|
||||
</span>
|
||||
</div>
|
||||
<div className="iconMenu">
|
||||
|
@ -75,9 +77,11 @@ class SideBarMenu extends React.Component {
|
|||
<div className="iconMenu">
|
||||
<span
|
||||
className="iconText"
|
||||
onClick={() => this.send("giveFeedback")}>
|
||||
onClick={() => window.open('mailto:talk@pragmatismo.cloud')}
|
||||
>
|
||||
Suggestions
|
||||
</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue