Created
January 20, 2019 10:45
-
-
Save AndyButland/ad0bcf8bc178bf43fd10350f8520e943 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class BaseHandleIntentStrategy | |
{ | |
public abstract string IntentName { get; } | |
public abstract Task HandleMessage(ITurnContext turnContext, ConversationData conversationData, IDictionary<string, object> entities); | |
protected static string GetStringEntityValue(IDictionary<string, object> entities, string key) | |
{ | |
return entities[key] as string; | |
} | |
... | |
protected void SaveConversationData(ConversationData conversationData, string entityName) | |
{ | |
conversationData.LastRecognisedIntent = IntentName; | |
conversationData.LastRecognisedEntityPerson = entityName; | |
} | |
} |
I can't release the full source code I'm afraid, but you'll find the article where these gists were shared here: https://medium.com/@ThisisZone/reviving-zonebot-rebuilding-using-v4-of-microsoft-bot-framework-a2d45a1855c9 - which will hopefully give a good start.
okay thanks a lot, im found your github base on that link
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sir, can you provide this complete bot framework code in your zonebot? I'm new to bot builder on Microsoft
thanks a lot