class AlexaRubykit::Dialog

Represents the encapsulation of Amazon Alexa Dialog Interface developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/dialog-interface-reference

Constants

CONFIRM_INTENT_TYPE
CONFIRM_SLOT_TYPE
DELEGATE_TYPE
ELICIT_SLOT_TYPE

Public Class Methods

confirm_intent_directive(updated_intents) click to toggle source
# File lib/alexa_rubykit/response/dialog.rb, line 34
def confirm_intent_directive(updated_intents)
  {
    'type' => CONFIRM_INTENT_TYPE,
    'updatedIntent' => updated_intents
  }
end
confirm_slot_directive(slot, updated_intents) click to toggle source
# File lib/alexa_rubykit/response/dialog.rb, line 26
def confirm_slot_directive(slot, updated_intents)
  {
    'type' => CONFIRM_SLOT_TYPE,
    'slotToConfirm' => slot,
    'updatedIntent' => updated_intents
  }
end
delegate_directive(updated_intents) click to toggle source
# File lib/alexa_rubykit/response/dialog.rb, line 11
def delegate_directive(updated_intents)
  {
    'type' => DELEGATE_TYPE,
    'updatedIntent' => updated_intents
  }
end
elicit_slot_directive(slot, updated_intents) click to toggle source
# File lib/alexa_rubykit/response/dialog.rb, line 18
def elicit_slot_directive(slot, updated_intents)
  {
    'type' => ELICIT_SLOT_TYPE,
    'slotToElicit' => slot,
    'updatedIntent' => updated_intents
  }
end