Created
January 6, 2016 07:02
-
-
Save axpence/5b971ca5284a3106fca9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Builds our survey software. | |
| { | |
| "actionModules" : ["uber","thumbtack","yelp","ourCustomAPI","openCV","imageMagik","MPAZAnalyticsLogger","remindersAPI","AddressValidator","RecipeAPI"],//require(),#import.. | |
| "IOModules" : ["twilio","wechat"], | |
| "flowProperties" : { | |
| "input" : {"inputModule":"twilio","humanAttributeName":"fromNumber"}, | |
| "output" : {"outputModule":"twilio","systemAttributeName":"toNumber"} | |
| }, | |
| "curatedFlowSource" : "http://www.example.com/CuratedFlowSurvey.json" , | |
| "flowStateStorage" : "TABLE_NAME_IN_DYNAMO", | |
| "processingActionsForAllResponses" : ["MPAZAnalyticsLogger.sentRequest","MPAZAnalyticsLogger.UpdateLocalTwilioBillingCounter"] | |
| } | |
| //CuratedFlowSurvey.json: | |
| { | |
| "responses" : [ | |
| { | |
| "msg" : "(1/4) What did you eat today? A) Beans B) Soup C) Corn", | |
| "processingActionForThisResponse":"<Do open CV on response.. do >" | |
| }, | |
| { | |
| } | |
| ] | |
| } | |
| Machine2Human ["What did you eat today? A) Soup B) Not Soup"] -> Human2Machine ["A"] -> | |
| //Survey system w/ feature that scans input PICTURE and tells you First and Last name of who is in the picture (if anyone) | |
| SYSTEM ACTIONS UPON RECIEVING {"fromPhoneNumber":"+18012828882","msg":"A","imgLink":"http://www.example.com/img.jpg"} | |
| 1-Setup // Gain context (Past Req's / Responses), Which flow is this input part of? Where are we in the flow? | |
| 2-Pre processing // Map routes properly. | |
| 3-Processing // ["OpenCVFacialRecognitionAPI","FruitRecognitionComputerVisionMapperAPI."] | |
| 4-Post Processing // if 3 succeeds, parse final results into proper format | |
| 5-Finalization // is last message in survey? if so, don't send another. else send next in queue. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment