Document 13392454

advertisement
Angel Review
1
Monday, October 15, 12
Did it get easier?
2
Monday, October 15, 12
Problem
Design!?!?!
Multiple Toppings on Question Pages?
Logic Pages?
Data Pages?
Variables?
3
Monday, October 15, 12
Types Of Pages
Message Page
Question Page
Data Page
Voicemail Page
Logic Page
Variables
4
Monday, October 15, 12
Message Page
5
Monday, October 15, 12
What does it do?
Reads text-to-speech prompts
Can play stored variables
6
Monday, October 15, 12
What does it do?
Relays a Message
7
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
8
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
8
Monday, October 15, 12
What does it do?
Reads text-to-speech prompts
Can play stored variables
Can record users response to questions
Stores users response to questions
10
Monday, October 15, 12
What does it do?
Asks a question, records a response as a
variable
11
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
12
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
13
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
14
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
15
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
16
Monday, October 15, 12
Voicemail Page
17
Monday, October 15, 12
What does it do?
Asks a question, records a response as an
audio file
18
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
19
Monday, October 15, 12
Variables
20
Monday, October 15, 12
What do they do?
Store users responses
Allows responses to be used in the system
Can be manipulated
21
Monday, October 15, 12
What do they do?
Enable re-use
22
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
23
Monday, October 15, 12
Logic Pages
24
Monday, October 15, 12
Example:Weather 2
1000
GetZipCode
1100
GetWeather
FromData
1300
DoINeed
AJacket
1400
TellWeather
25
Monday, October 15, 12
zipcode
temp
Weather_2
011.xls
Logic Pages!
26
Monday, October 15, 12
Logic Pages!
27
Monday, October 15, 12
Logic Pages!
•
Condition And/Or/If statements:
If temperature is <60 say “Bring a jacket”
28
Monday, October 15, 12
Logic Pages!
•
Condition And/Or/If statements:
If temperature is <60 say “Bring a jacket”
•
Assignment of new variable:
temperature = a, play “The temperature is <a>”
29
Monday, October 15, 12
Logic Pages!
•
Condition And/Or/If statements:
If temperature is <60 say “Bring a jacket”
•
Assignment of new variable:
temperature = a, play “The temperature is <a>”
•
Transformation change existing variable a = a+1
30
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
31
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
33
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
34
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
35
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
36
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
Monday, October 15, 12
Data Pages
38
Monday, October 15, 12
Data Pages (advanced)
• Two Kinds of Data Pages
• Put Data In (Coke/Pepsi)
• Take Data Out
• We’ll need both (2 separate data pages) to
identify users
39
Monday, October 15, 12
Old Call flow
1000
GetZipCode
1100
GetWeather
FromData
1300
DoINeed
AJacket
1400
TellWeather
40
Monday, October 15, 12
zipcode
temp
Weather_2
011.xls
New Call flow
500
GetStored
ZipCode
known caller
new caller
1000
GetZipCode
1050
StoreZipCode
1100
GetWeather
FromData
1300
DoINeed
AJacket
1400
TellWeather
41
Monday, October 15, 12
zipcode
temp
Weather_2
011.xls
New Call flow
500
GetStored
ZipCode
known caller
new caller
1000
GetZipCode
1050
StoreZipCode
1100
GetWeather
FromData
1300
DoINeed
AJacket
1400
TellWeather
42
Monday, October 15, 12
zipcode
temp
Weather_2
011.xls
New Call flow
500
GetStored
ZipCode
known caller
new caller
1000
GetZipCode
1050
StoreZipCode
1100
GetWeather
FromData
1300
DoINeed
AJacket
1400
TellWeather
43
Monday, October 15, 12
zipcode
temp
Weather_2
011.xls
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
44
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
http://ocw.mit.edu/fairuse.
45
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
46
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
47
Monday, October 15, 12
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
48
Monday, October 15, 12
Store User Data
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
49
Monday, October 15, 12
Store User Data
CallerID
Variable: Set
for you!
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
50
Monday, October 15, 12
Get Stored User Data
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
51
Monday, October 15, 12
Angel
52
Monday, October 15, 12
Angel
• Angel’s strong suits:
• Speech recognition (arguably)
• User experience construction
• Fast development
53
Monday, October 15, 12
Angel
• Angel’s strong suits:
• Speech recognition (arguably)
• User experience construction
• Fast development
• Angel’s weaknesses:
• Communicating with the outside world
54
Monday, October 15, 12
Solutions
55
Monday, October 15, 12
Solutions
• Angel knows it’s limitations
56
Monday, October 15, 12
Solutions
• Angel knows it’s limitations
• Transaction pages allow for extended
functionality
•
•
•
•
•
Communicate with websites
Communicate with devices
Store and retrieve tons of data
More complex logic
Other cool stuff
57
Monday, October 15, 12
Transaction Pages
58
Monday, October 15, 12
Transaction Page
© Angel.com Inc. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
59
Monday, October 15, 12
Old Call flow
500
GetStored
ZipCode
known caller
new caller
1000
GetZipCode
1050
StoreZipCode
1100
GetWeather
FromData
1300
DoINeed
AJacket
1400
TellWeather
60
Monday, October 15, 12
zipcode
temp
Weather_2
011.xls
New Call flow
500
GetStored
ZipCode
known caller
new caller
1000
GetZipCode
1050
StoreZipCode
1100
GetWeather
FromGoogle
1300
DoINeed
AJacket
1400
TellWeather
61
Monday, October 15, 12
zipcode
temp
Google
Weather
New Call flow
500
GetStored
ZipCode
known caller
new caller
1000
GetZipCode
1050
StoreZipCode
1100
GetWeather
FromGoogle
1300
DoINeed
AJacket
1400
TellWeather
62
Monday, October 15, 12
zipcode
temp
Google
Weather
How it works
ZIP
Data
ZIP
Custom
Script
Weather
&HOO3KRQH
63
Monday, October 15, 12
ZIP
WeatherXML
Specifics
64
Monday, October 15, 12
Specifics
•
HTTP Request to a specific URL
65
Monday, October 15, 12
Specifics
•
•
HTTP Request to a specific URL
Variable and constants sent as parameters
66
Monday, October 15, 12
Specifics
•
•
•
HTTP Request to a specific URL
Variable and constants sent as parameters
Acceptable response types:
•
•
•
•
•
Text-To-Speach
Audio file
•
•
Internal (relative)
External (Absolute)
Link to Voice Page
Phone Number
AngelXML
67
Monday, October 15, 12
Running the Code
• PHP, Python, Perl, etc....
• Use scripts.mit.edu to make your life easier
• http://scripts.mit.edu/start/
• Easy, step by step directions
• Very quick response time
68
Monday, October 15, 12
How it works
ZIP
Data
ZIP
Custom
Script
Weather
Cell Phone
69
Monday, October 15, 12
ZIP
WeatherXML
MIT OpenCourseWare
http://ocw.mit.edu
ESD.051J / 6.902J Engineering Innovation and Design
Fall 2012
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
69
Download