diff --git a/CHANGELOG.md b/CHANGELOG.md index 201b4c98..d1a1dc56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ ### **Copyrigth**: *Tiledesk SRL* +# 1.20.5 +- **bug-fixed**: minor improvements + # 1.20.4 # 1.20.3 diff --git a/package-lock.json b/package-lock.json index 05088608..0be1f004 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@tiledesk/cds", - "version": "1.20.4", + "version": "1.20.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@tiledesk/cds", - "version": "1.20.4", + "version": "1.20.5", "license": "MIT", "dependencies": { "@angular/animations": "^14.2.0", diff --git a/package.json b/package.json index dfd4a3bd..be8708c8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@tiledesk/cds", "author": "Tiledesk SRL", - "version": "1.20.4", + "version": "1.20.5", "license": "MIT", "homepage": "https://www.tiledesk.com", "repository": { diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-settings/cds-action-reply-settings.component.html b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-settings/cds-action-reply-settings.component.html index fdffad2c..0c5440d8 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-settings/cds-action-reply-settings.component.html +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-settings/cds-action-reply-settings.component.html @@ -163,6 +163,19 @@ +
+ + + +
+ +
diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-settings/cds-action-reply-settings.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-settings/cds-action-reply-settings.component.scss index 8ca442b0..ec970057 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-settings/cds-action-reply-settings.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-settings/cds-action-reply-settings.component.scss @@ -106,4 +106,11 @@ cds-textarea.text-editable-div ::ng-deep{ width: calc(100% - 20px) !important; font-size: 0.9em !important; } +} + + +cds-radio-buttons { + display: flex; + align-items: center; + height: 100%; } \ No newline at end of file diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-settings/cds-action-reply-settings.component.ts b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-settings/cds-action-reply-settings.component.ts index e5c2939c..0b2816c8 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-settings/cds-action-reply-settings.component.ts +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-settings/cds-action-reply-settings.component.ts @@ -30,6 +30,10 @@ export class CdsActionReplySettingsComponent implements OnInit { listOfIntents: Array<{name: string, value: string, icon?:string}>; + radioOptions: Array<{name: string, value: string, disabled: boolean, checked: boolean}>= [ + {name: 'blind', value: 'blind', disabled: false, checked: false }, + {name: 'consultation', value: 'consultation', disabled: false, checked: true } + ] // Connectors NoInput- NoMatch // idIntentSelected: string; idConnectorNoMatch: string; @@ -212,7 +216,7 @@ export class CdsActionReplySettingsComponent implements OnInit { onBlur(event){ this.logger.log('[ACTION REPLY SETTINGS] onBlur', event.target.value, this.response); // if(event.target.value !== this.response.text){ - this.changeActionReply.emit(); + this.changeActionReply.emit(); // } } @@ -224,6 +228,12 @@ export class CdsActionReplySettingsComponent implements OnInit { onSelectedAttribute(variableSelected: {name: string, value: string}){ } + onChangeButtonSelect(event: {label: string, category: string, value: string, disabled: boolean, checked: boolean}){ + this.radioOptions.forEach(el => { el.value ===event.value? el.checked= true: el.checked = false }) + this.response.transferType = event.value; + this.changeActionReply.emit(); + } + checkForVariablesInsideText(text: string){ text.match(new RegExp(/(?<=\{\{)(.*)(?=\}\})/g, 'g')).forEach(match => { let createTag = '' + match + '' diff --git a/src/app/chatbot-design-studio/services/intent.service.ts b/src/app/chatbot-design-studio/services/intent.service.ts index b7269bdc..6664bafa 100644 --- a/src/app/chatbot-design-studio/services/intent.service.ts +++ b/src/app/chatbot-design-studio/services/intent.service.ts @@ -1004,7 +1004,7 @@ export class IntentService { commandWait2.time = 0; (action as ActionVoice).attributes.commands.push(commandWait2); let command_form = new Command(TYPE_COMMAND.SETTINGS); - command_form.settings = { transferTo: '', trueIntent: null, falseIntent: null} + command_form.settings = { transferTo: '', transferType: 'consultation', trueIntent: null, falseIntent: null} command_form.subType = TYPE_ACTION_VXML.BLIND_TRANSFER; (action as ActionVoice).attributes.commands.push(command_form); } diff --git a/src/app/chatbot-design-studio/utils-variables.ts b/src/app/chatbot-design-studio/utils-variables.ts index d4614f16..61d98cf5 100644 --- a/src/app/chatbot-design-studio/utils-variables.ts +++ b/src/app/chatbot-design-studio/utils-variables.ts @@ -70,7 +70,7 @@ export var variableList: Array<{key: string, elements: Array}> = [ { key: 'dynamicAttributes', elements: [ { name: 'timestamp', value: 'timestamp', description: 'CDSvariablesList.dynamicAttributesElements.timestamp.description', src: '', icon:'calendar_today'}, - { name: 'now', value: 'now', description: 'CDSvariablesList.dynamicAttributesElements.now.description', src: '', icon:'calendar_today'}, + { name: 'now (ISO date)', value: 'now', description: 'CDSvariablesList.dynamicAttributesElements.now.description', src: '', icon:'calendar_today'}, { name: 'UUID', value: 'UUID', description: 'CDSvariablesList.dynamicAttributesElements.UUID.description', src: '', icon:'code'}, { name: 'UUIDv4', value: 'UUIDv4', description: 'CDSvariablesList.dynamicAttributesElements.UUIDv4.description', src: '', icon:'code'}, ] diff --git a/src/app/models/action-model.ts b/src/app/models/action-model.ts index 05ddd509..f09c7b27 100644 --- a/src/app/models/action-model.ts +++ b/src/app/models/action-model.ts @@ -491,6 +491,7 @@ export class Setting { maxDigits?: number; terminators?: string; transferTo?: string; + transferType?: string; bargein?: boolean = true; noInputTimeout?: number; noInputIntent?: string; diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index 75b9701d..e3e9a096 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -292,6 +292,8 @@ "Prompt":"Prompt", "EnterPrompt":"Enter prompt", "UseChatHistoryInPrompt":"Use the chat history in the prompt", + "ResponseType":"Response as JSON format", + "ResponseTypeDescription":"When JSON mode is turned on, the model's output is ensured to be valid JSON, except for in some edge cases that you should detect and handle appropriately", "EnterTheQuestion":"Enter the question", "SelectNamespace":"Select namespace", "SelectKnowledgeBase":"Select Knowledge Base", @@ -437,6 +439,7 @@ "Terminator":"Terminator", "Timeout": "Timeout", "TransferTo": "Transfer to", + "TransferType":"Transfer type", "BargeIn":"Barge-in", "NoMatch":"No match", "NoInput":"No input", @@ -455,7 +458,12 @@ "SelectedTimeSlot":"Selected time slot", "SelectTimeSlot":"Select time slot", "IgnoreOperatingHours":"Ignore General operating hours", - "IgnoreOperatingHoursDescription": "Check this option if you want to only check agents availability ignoring the General Operating hours settings.
This option is also useful if you want to demand opening and closing hours checking to the If Operating Hours Action, specifing a specific time slot" + "IgnoreOperatingHoursDescription": "Check this option if you want to only check agents availability ignoring the General Operating hours settings.
This option is also useful if you want to demand opening and closing hours checking to the If Operating Hours Action, specifing a specific time slot", + "intentsProgress": "Loading intents in progress", + "intentsComplete": "Intents loading completed", + "connectorsProgress": "Loading connectors in progress", + "connectorsComplete": "Connectors loading completed", + "loadingCompleteWithErrors":"Loading completed with errors" }, "Alert": { "ErrorMaxOptions":"Cannot add another option. Max available options achived ( 0..9, *, # )", @@ -943,10 +951,10 @@ "strongAuthenticated":{ "description":"Indicates that the current user logged in the chat session with 'strong authentication'" } }, "dynamicAttributesElements":{ - "timestamp":{ "description":"" }, - "now":{ "description":"" }, - "UUID":{ "description":"" }, - "UUIDv4":{ "description":"" } + "timestamp":{ "description":"The current timestamp in millis (Number format)" }, + "now":{ "description":"The current date in the ISODate format. Ex. 2024-09-25T10:14:41.638Z (String format)" }, + "UUID":{ "description":"A dynamic generated UUID obtained from a UUIDv4 removing the dashes" }, + "UUIDv4":{ "description":"A dynamic standard UUIDv4" } }, "voiceFlowElements":{ "voiceLanguage":{ "description":"Define the main language for the voice system interpreter" }, @@ -954,7 +962,6 @@ "event":{ "description":"Every handled event during current call flow" }, "lastBlock":{ "description":"The last triggered block heard by the caller" } } - }, "TYPE_GPT_MODEL": { "text-davinci-003": { "description": ""},