Skip to content

Instantly share code, notes, and snippets.

@AndyButland
Created January 20, 2019 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndyButland/ad0bcf8bc178bf43fd10350f8520e943 to your computer and use it in GitHub Desktop.
Save AndyButland/ad0bcf8bc178bf43fd10350f8520e943 to your computer and use it in GitHub Desktop.
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;
}
}
@CurlyBytes
Copy link

Sir, can you provide this complete bot framework code in your zonebot? I'm new to bot builder on Microsoft
thanks a lot

@AndyButland
Copy link
Author

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.

@CurlyBytes
Copy link

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