title: Lambda function to direct Lex to new intent
body: <p>I'm trying to use a lambda function to send lex to a new intent based on the value of an incoming slot:</p>
  
  <p>Like this</p>
  
  <pre><code> public override LexResponse Process(LexEvent lexEvent, ILambdaContext context)
      {
          var slots = lexEvent.CurrentIntent.Slots;
          var sessionAttributes = lexEvent.SessionAttributes ?? new Dictionary&lt;string, string&gt;();
          DesiredVehicleYesNo type;
          if (slots.ContainsKey("DesiredVehicleYesNo"))
          {
              Enum.TryParse(slots["DesiredVehicleYesNo"], out type);
          }
          else
          {
              type = DesiredVehicleYesNo.Null;
          }
  
          switch (type)
          {
              case DesiredVehicleYesNo.YES:
                  Dictionary&lt;string, string&gt; s = new Dictionary&lt;string, string&gt;();
                  s.Add("DesiredVehicle", null);
                  //return ConfirmIntent(sessionAttributes, "DesiredVehicleYes", s, new LexResponse.LexMessage() { Content = "That's great! Let's get started.", ContentType = MESSAGE_CONTENT_TYPE });
                  //return ElicitSlot(sessionAttributes,"DesiredVehicleYes",null,"DesiredVehicle", new LexResponse.LexMessage() { Content = "That's great! Let's get started.", ContentType = MESSAGE_CONTENT_TYPE });
  
              case DesiredVehicleYesNo.NO:
                  return ConfirmIntent(sessionAttributes, "DesiredVehicleNo", new Dictionary&lt;string,string&gt;(), new LexResponse.LexMessage() { Content = "Well, that's ok, I can help you choose", ContentType = MESSAGE_CONTENT_TYPE });
  
          }
  </code></pre>
  
  <p>I'm just not sure what return type I should be using for this? ConfirmIntent, ElicitSlot, ElicitIntent? Also I do need to be passing slots back, I want the new intent to use it's own prompts to fill the slots related to that intent.</p>
  
  <p>Thanks </p>