diff --git a/Composer/packages/client/src/pages/botProject/RootBotExternalService.tsx b/Composer/packages/client/src/pages/botProject/RootBotExternalService.tsx index 5c2d1c367d..50f06d7447 100644 --- a/Composer/packages/client/src/pages/botProject/RootBotExternalService.tsx +++ b/Composer/packages/client/src/pages/botProject/RootBotExternalService.tsx @@ -17,6 +17,7 @@ import { FontSizes } from 'office-ui-fabric-react/lib/Styling'; import { NeutralColors, SharedColors } from '@uifabric/fluent-theme'; import { PrimaryButton } from 'office-ui-fabric-react/lib/Button'; import { Link } from 'office-ui-fabric-react/lib/Link'; +import { MessageBar, MessageBarType } from 'office-ui-fabric-react/lib/MessageBar'; import { dispatcherState, @@ -151,6 +152,9 @@ export const RootBotExternalService: React.FC = (pr const groupLUISAuthoringKey = get(sensitiveGroupManageProperty, 'luis.authoringKey', {}); const rootLuisKey = groupLUISAuthoringKey.root; + const groupLUISEndpointKey = get(sensitiveGroupManageProperty, 'luis.endpointKey', {}); + const rootLuisEndpointKey = groupLUISEndpointKey.root; + const groupLUISRegion = get(sensitiveGroupManageProperty, 'luis.authoringRegion', {}); const rootLuisRegion = groupLUISRegion.root; const groupQnAKey = get(sensitiveGroupManageProperty, 'qna.subscriptionKey', {}); @@ -179,6 +183,7 @@ export const RootBotExternalService: React.FC = (pr const luisKeyFieldRef = useRef(null); const luisRegionFieldRef = useRef(null); const qnaKeyFieldRef = useRef(null); + const linkToPublishProfile = `/bot/${rootBotProjectId}/publish/all#addNewPublishProfile`; const handleRootLUISKeyOnChange = (e, value) => { if (value) { @@ -412,6 +417,29 @@ export const RootBotExternalService: React.FC = (pr setDisplayManageLuis(true); }} /> + {localRootLuisKey && !rootLuisEndpointKey && ( + + {formatMessage.rich( + 'Your bot is configured with only a LUIS authoring key, which has a limit of 1,000 calls per month. If your bot hits this limit, publish it to Azure using a publishing profile to continue testing.Learn more', + { + a: ({ children }) => ( + + {children} + + ), + a2: ({ children }) => ( + + {children} + + ), + } + )} + + )}
{formatMessage('QnA Maker')}
{formatMessage.rich(