No commit activity in last 3 years
No release in over 3 years
Builds an Alexa Skills Interaction Model and optionally an Alexa Skills manifest in JSON format from plain text
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.3, >= 1.3.3
~> 0.1, >= 0.1.19
 Project Readme

Generate an Alexa Interaction Model using the alexa_modelbuilder gem

require 'alexa_modelbuilder'

s =<<LINES
invocation: quiz game

PlayGame

  start the game
  start the quiz
  play the quiz
  start a quiz  

types: 
  US_STATE_ABBR: AK, AL, AZ

AMAZON.StopIntent
LINES


puts AlexaModelBuilder.new(s).to_json

Output:

{
  "interactionModel": {
    "languageModel": {
      "invocationName": "quiz game",
      "intents": [
        {
          "name": "PlayGame",
          "samples": [
            "start the game",
            "start the quiz",
            "play the quiz",
            "start a quiz"
          ]
        },
        {
          "name": "AMAZON.StopIntent",
          "samples": [

          ]
        }
      ],
      "types": {
        "name": "US_STATE_ABBR",
        "values": [
          {
            "name": {
              "value": "AK"
            }
          },
          {
            "name": {
              "value": "AL"
            }
          },
          {
            "name": {
              "value": "AZ"
            }
          }
        ]
      }
    }
  }
}

Resources

alex model json builder