title: Bot Framework 4.0 Equivalent
body: <p>I am building a bot, but I am having issues with Bot Framework 4.0. What is the equivalent code to the snippet below in Bot Framework 4.0?</p>
  
  <p>I am having trouble finding applicable code snippets for my problem. I am trying to call a dialog from my bot class, but I can only find applicable code from Bot Framework 3.0. The code snippet is below:</p>
  
  <pre><code>if (entry)
              {
                  JToken commandToken = JToken.Parse(turnContext.Activity.Value.ToString());
                  string temp = turnContext.Activity.Value.ToString();
                  Logger.LogInformation(temp);
                  string command = commandToken["action"].Value&lt;string&gt;();
  
                  if (command.ToLowerInvariant() == "purchaseorder")
                  {
                      //call PurchaseOrderDialog
                  }
                  else if (command.ToLowerInvariant() == "sku")
                  {
                      //call SKUNumberDialog
                  }
  
              }
  </code></pre>
  
  <p>I am basically looking for a way to call a specific dialog using Bot Framework 4.0 once determining what parameter the user is requesting. I have looked through Microsoft's documentation for Bot Builder 4.0 and have not been able to find anything applicable. I am very new to this environment, so I may have passed over the problem. I found a way to do it, by calling:</p>
  
  <p>await Conversation.SendAsync(activity, () => new RootDialog());</p>
  
  <p>But this was the syntax for Bot Framework 3.0. If anyone has any suggestions it would be very much appreciated.</p>