-
Notifications
You must be signed in to change notification settings - Fork 0
IBotConversation
CogniSim Soft edited this page Jul 26, 2018
·
1 revision
The BotConversation handler manages primary functionality of this framework. All things BotFramework and Luis related are driven here.
Guid uuid { get; set; }
EchoBot Echo { get; set; }
BotConversationAdapter Adapter { get; set; }
IBotConversationTalkingPoint CurrentTalkingPoint { get; set; }
ICollection<IBotConversationTalkingPoint> TalkingPoints { get; set; }
IBotConversationTalkingPoint FallbackTalkingPoint { get; set; }
Task Say(string query);
public BotConversation(IBotConversationTalkingPoint defaultTalkingPoint, IBotConversationTalkingPoint fallbackTalkingPoint = null)
// defaultTalkingPoint, Entry of conversation
// fallbackTalkingPoint, Fall back to this talking point on failure to understand user.
IBotConversation botConversation = new BotConversation(defaultTalkingPoint, fallbackTalkingPoint);
Most functionality under the hood requires no direct invocation by developers. StateManager handles this for you. However, you can send a user reply by using the Say() function.
botConversation.Say("What color is your dog?");