Need Help with Microsoft Bot Framework

Utsav Tulsyan 21 Reputation points
2021-01-07T13:52:48.203+00:00

Hi,

I am working on a bot using Microsoft Bot Framework v4 and LUIS v3 (Cognitive Services by Azure). I am using the botbuilder-ai library which is part of the Bot SDK. I want to set the timezone for the LUIS model response which uses the prebuilt entiity- datetimeV2.

I tried using the "datetimeReference" parameter which is part of the LuisRecognizerOptionsV3 but the response still used UTC.

I also want to know about enterprise support for Microsoft Bot Framework and LUIS

Please reach out to me on ******@publicissapient.com

Thanks and Regards,

Utsav Tulsyan

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,598 questions
{count} votes

Accepted answer
  1. romungi-MSFT 48,906 Reputation points Microsoft Employee Moderator
    2021-01-08T11:31:11.737+00:00

    @Utsav Tulsyan I have checked the implementation of this further in the github repo, according to this it seems to return values based on the response from LUIS app. If it is entity type builtin.datetimeV2 the resolution is returned if there is one or the timex values. This response in turn seems to be from the recognizers library implementation which is an open source repo used by LUIS. From what I see with testing from recognizers text it returns values based on how the utterance is input. For example, I tried this with the recognizers text it extracted the following in the response.

    result=recognize_datetime("I'll go back 8pm today", Culture.English)  
    

    response:

    [  
            {  
                    "start": 13,  
                    "end": 21,  
                    "resolution": {  
                            "values": [  
                                    {  
                                            "timex": "2021-01-08T20",  
                                            "type": "datetime",  
                                            "value": "2021-01-08 20:00:00"  
                                    }  
                            ]  
                    },  
                    "text": "8pm today",  
                    "type_name": "datetimeV2.datetime"  
            }  
    ]  
    

    I tried these formats: '2020-01-01T00:00:00' and '2020-01-01 00:00:00'. But it did not work.

    For this case are you actually passing this format in your utterance or bot?

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.