original_docstring:  Called when the user specifies an intent for this skill 
docstring: Called when the user specifies an intent for this skill
docstring_tokens: Called when the user specifies an intent for this skill
code: def on_intent(intent_request, session):
      """ Called when the user specifies an intent for this skill """
  
      print("on_intent requestId=" + intent_request['requestId'] +
            ", sessionId=" + session['sessionId'])
  
      intent = intent_request['intent']
      intent_name = intent_request['intent']['name']
  
      # Dispatch to your skill's intent handlers
      if intent_name == "WhatsMyBusArrivalIntent":
          return get_bus_arrival_session(intent, session)
      elif intent_name == "AMAZON.HelpIntent":
          return get_welcome_response()
      elif intent_name == "AMAZON.CancelIntent" or intent_name == "AMAZON.StopIntent":
          return handle_session_end_request()
      else:
          raise ValueError("Invalid intent")
code_tokens: def on_intent ( intent_request , session ) : print ( "on_intent requestId=" + intent_request [ 'requestId' ] + ", sessionId=" + session [ 'sessionId' ] ) intent = intent_request [ 'intent' ] intent_name = intent_request [ 'intent' ] [ 'name' ] if intent_name == "WhatsMyBusArrivalIntent" : return get_bus_arrival_session ( intent , session ) elif intent_name == "AMAZON.HelpIntent" : return get_welcome_response ( ) elif intent_name == "AMAZON.CancelIntent" or intent_name == "AMAZON.StopIntent" : return handle_session_end_request ( ) else : raise ValueError ( "Invalid intent" )
short_docstring: Called when the user specifies an intent for this skill
short_docstring_tokens: Called when the user specifies an intent for this skill
comment: """ Called when the user specifies an intent for this skill """$SEP$# Dispatch to your skill's intent handlers