No commit activity in last 3 years
No release in over 3 years
A local simulator for your Alexa Skill.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.2.0, ~> 0.2
~> 0.1, >= 0.1.1
>= 0.5.0, ~> 0.5
 Project Readme

Introducing the Alexa_skillsimulator gem

require 'alexa_modelbuilder'
require 'alexa_skillsimulator'


s =<<LINES
name: American cities quiz game
invocation: quiz game

PlayGame

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

Answer
  is the city {city}

  slots:
    City: AMAZON.US_CITY


AMAZON.StopIntent

types: 
  US_STATE_ABBR: AK, AL, AZ

endpoint: https://yourlocalwebserver.com/quizgame
LINES

amd = AlexaModelBuilder.new(s)

ask = AlexaShell.new amd.to_manifest, amd.to_model, debug: true
ask.start

The above example simulates interacting with an Alexa Skill using the Alexa_skillsimulator gem. It uses the supplied manifest and interaction model to respond to user requests, including posting and fetching the response from the endpoint (e.g. local web server).

Resources

alexa skill simulator skills test assistant bot