- sdk:swml - product:ai # Prompt Examples ## **Play prompt and wait for digit press** yaml andJson version: 1.0.0 sections: main: - prompt: play: https://example.com/menu.wav - switch: case: 1: - transfer: https://example.com/sales.swml variable: prompt_value default: - play: https://example.com/bad_input.wav - transfer: main ## **Play prompt and wait for digit or speech** yaml andJson version: 1.0.0 sections: main: - prompt: play: https://example.com/press_or_say_one.wav speech_language: en-US max_digits: 1 speech_hints: - one - two - three - four - five - six - seven - eight - nine - switch: case: 1: - transfer: https://example.com/sales.swml one: - transfer: https://example.com/sales.swml variable: prompt_value default: - play: https://example.com/bad_input.wav - transfer: main ## **Play prompt and collect digits, then pass the data to an external action** yaml andJson version: 1.0.0 sections: main: - prompt: https://example.com/menu.wav - transfer: https://example.com/post_next_menu