Back to Parent

on_intent("HEY")do 
    response.should_end_session = false 
    response.set_output_speech_text("Hi! I am awake, I have missed you. How was your day?")

  end

  on_intent("SLOTH") do
    response.should_end_session = false
    response.set_output_speech_text("Hi! I am Sleepyhead the Sloth, your sleep companion. I am here to keep you company during the long nights. Say I am awake to see how I can help you")
  end

  #Intent responding to user being awake
  on_intent("AWAKE") do
    response.set_output_speech_text("Oh! What's keeping you awake?")
    logger.info 'Here processed'
    response.should_end_session = false
  end 

  #Intent responding something on the user's mind 
  on_intent("ONMYMIND") do
    response.set_output_speech_text("Tell me what's on your mind or I can tell you a random fact about sleep")
    logger.info 'Here processed'
    response.should_end_session = false
  end
Click to Expand

Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0