_._
__.{,_.).__
.-" "-.
.' __.........__ '.
/.-'`___.......___`'-.\
/_.-'` / \ / \ `'-._\
| | '/ \' | |
| '-' '-' |
; ;
_\ ___ /_
/ '.'-.__ ___ __.-'.' \
_/_ `'-..._____...-'` _\_
/ \ . / \
\____) . (____/
\___________.___________/
\___________________/
(_____________________)
*******************************************************************
" I'M NOT FAT, I LIKE TO WRITE ALEXA SKILLS WITH GETSTORYLINE.COM
PLUS I'M A BIG SELLOUT BECAUSE I SELL T-SHIRTS AT SEXYHACKERS.COM "
*******************************************************************
-----------------------------------------
HERE'S ALL THE SUPPORTING FILES
YOU NEED FOR THE GETSTORYLINE DEMO
-----------------------------------------
"JASON'S AWESOME SELL PHONE ADVENTURE"
-----------------------------------------
WATCH THE FULL 8 PART TUTORIAL HERE
http://www.sexyhackers.com/YouGotSkillz
*******************************************************************
HERE IS THE LINK TO THE STORYLINE "STORY" IF YOU WANT TO VIEW IT
*******************************************************************
https://getstoryline.com/shared/projects/f835c0f1a086747ed67d8ff17de80caf2d81ed82
*******************************************************************
HERE IS THE LINK TO THE AIRTABLE DATABASE IF YOU WANT TO VIEW IT
*******************************************************************
https://airtable.com/shryGJN2DBfXPHpk5/tbl27o1JnSLGFvN87/viwnP8C8wivo5XcXx
*******************************************************************
HERE IS THE TEXT FOR ALL THE BLOCKS IF YOU DON'T WANT TO TYPE IT!
*******************************************************************
===============================================
BLOCK - WELCOME
===============================================
Thanks for playing Jason's Awesome Cell Phone Adventure, are you ready to begin?
ONLOAD EVENT (USE A POST)
URL:
https://hooks.zapier.com/PUT_YOUR_HOOK_URL_HERE
BODY:
{"AmazonUserID":"{{amazonUserId}}"}
===============================================
BLOCK - YES
===============================================
GET GAME WELCOME MSG API CALL (USE A GET)
https://api.airtable.com/v0/PUT_YOUR_DATABASE_URL_HERE/SayThisOnLoad?maxRecords=3&view=Grid%20view&api_key=PUT_YOUR_API_KEY&filterByFormula=({AlexaUserID}%20=%27{{amazonUserId}}%27)
API RESPONSE:
saythis=api_response.records.0.fields.AlexaSayThis;
===============================================
BLOCK - SLEEP BLOCK
===============================================
SEND MAGIC MESSAGE - API CALL BODY (USE A POST)
{"AmazonUserID":"{{amazonUserId}}"}
===============================================
BLOCK - User Registration Profile Event Triggered
===============================================
hello nice to meet you {{FirstName}}
Since this is your first time playing I will need you to provide your birthday so I will know if you are old enough to go on this adventure. What's your birthday, please include the year as well.
my birthday is {Birthday}
===============================================
BLOCK - Birthday Captured
===============================================
Great, we are almost done, what's your zip code?
my zip code is {ZipCode}
===============================================
BLOCK - ZipCode Captured
===============================================
Awesome, only two questions left, what's your favorite phone Andriod or iPhone. This will determine the type of adventure you're going to go on.
I like {FavPhone}
===============================================
BLOCK - Phone Captured
===============================================
Cool, I like {{FavPhone}} also. Ok so the last step is I just need to activate your profile. To do this I'll send you a text message with a link you'll need to click to activate your profile. What's your phone number?
My phone number is {Celly}
===============================================
BLOCK - Phone Capture Send Activation
===============================================
API CALL - RegisterNewUser
URL: USE YOUR ZAP URL
JSON EXAMPLE IN BODY:
{
"AmazonUserID": "{{amazonUserId}}",
"FirstName": "{{FirstName}}",
"CellPhone": "{{Celly}}",
"ZipCode": "{{ZipCode}}",
"Birthday": "{{Birthday}}",
"FavPhone": "{{FavPhone}}"
}
Boo Ya, I just sent you a text message. Please check your phone now and click the link to activate your account. Once you do we will start the game. I'll give you 30 seconds then I'll come back and check on you. Did you click the link?
=====================
ASCII ART BY - Joan Stark
https://www.asciiart.eu/cartoons/south-park