It's one interaction with the caller.
In our application, we have only one interaction so far, hence only one form. Within
the form we have a
of tags. Blocks are sub-divisions of a form. The tag is our main tag. We specified the location of the audio we want to play in the src attribute. The text within the tags is the alternative text that should be played as voice if the source file is not found. This is a good backup mechanism and should always be used. Now that we have the welcome part done, let's figure out how we can prompt the caller to select an option and process that. Making Choices by Key Presses We want the caller to select if she or he wants to order a pizza online or talk to our chef. And we want her or him to do this by pressing a key. We need to recognize the key she or he pressed, and if it is a valid key, redirect control to the next form. To take any input from the caller, we need to add a field to our VXML form. is very similar to an tag in HTML. Within the element, we can the user with choices. The user will make a choice after we have completed prompting.
Pages:
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219