Skip to content

IBotConversation

CogniSim Soft edited this page Jul 26, 2018 · 1 revision

IBotConversation

The BotConversation handler manages primary functionality of this framework. All things BotFramework and Luis related are driven here.

Variables

    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; }

Methods

    Task Say(string query);

    public BotConversation(IBotConversationTalkingPoint defaultTalkingPoint, IBotConversationTalkingPoint fallbackTalkingPoint = null)

Instantiation

    // defaultTalkingPoint, Entry of conversation
    // fallbackTalkingPoint, Fall back to this talking point on failure to understand user.
    IBotConversation botConversation = new BotConversation(defaultTalkingPoint, fallbackTalkingPoint);

Sending User Reply

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?");

Clone this wiki locally