1
Answer

start first conversation with Microsoft bot in Dialogs

Rp Singh

Rp Singh

7y
527
1
Hi,
 
I have the following code in conversationupdate:
  1. else if (message.Type == ActivityTypes.ConversationUpdate)  
  2.       {  
  3.           // Handle conversation state changes, like members being added and removed  
  4.           // Use Activity.MembersAdded and Activity.MembersRemoved and Activity.Action for info  
  5.           // Not available in all channels  
  6.   
  7.           private IDialog MakeLuisDialog()  
  8.           {  
  9.               return Chain.From(() => new LUISDialog(Balnc.BuildForm));  
  10.               //throw new NotImplementedException();  
  11.           }  
  12.   
  13.       }  
and the form as:
  1. [Serializable]  
  2.    public class Balnc  
  3.    {  
  4.        public Details? Type;  
  5.   
  6.   
  7.        public static  IForm BuildForm()  
  8.        {  
  9.            return new FormBuilder()  
  10.                //.Message("Welcome My name is Doe !")  
  11.                .Build();  
  12.            
  13.        }  
  14.    }  
 
 I want when my conversation opens, bot will provide me options in dialog wo select.
 some demo/code suggestions will be useful. 
Answers (1)