Zip code collection prebuilt component

This prebuilt component collects five-digit ZIP codes.

Limitations

In addition to the common prebuilt component limitations, this prebuilt component has the following limitations:

  • ZIP codes longer than five digits aren't accepted.
  • Alphanumeric ZIP codes aren't accepted.

Enable DTMF to let users input numeric values using their phone keypad.

Additional features

This prebuilt component provides the following additional features:

Sample dialogs

These sample dialogs show common scenarios that this prebuilt component handles. They demonstrate behavior when the user calls the component using telephony, which triggers the Default Welcome Intent and the first agent response at the start of the conversation.

Valid ZIP code

  1. The user provides a five-digit ZIP code.
  2. The agent successfully collects the ZIP code.
User Input Agent Response
Please say or enter the five digit zip code.
27656
You mentioned the zip code is 27656, is that correct?
yes
Great, I'm done with collecting the zip code.

Retry

  1. The user provides a five-digit ZIP code in the second attempt.
  2. The agent successfully accepts it.
User Input Agent Response
Please say or enter the five digit zip code.
27656
You mentioned the zip code is 27657, is that correct?
no
Sorry I didn't get it right.
Please say or enter the five digit zip code.
27656
You mentioned the zip code is 27656, is that correct?
yes
Great, I'm done with collecting the zip code.

Invalid ZIP code

  1. The user provides an invalid ZIP code that is over five digits long.
  2. The agent prompts the user again for a valid ZIP code.
  3. The agent successfully collects it.
User Input Agent Response
Please say or enter the five digit zip code.
276566
I heard 123456, which is not a valid five digit zip code.
Please say or enter the five digit zip code.
27656
You mentioned the zip code is 27656, is that correct?
yes
Great, I'm done with collecting the zip code.

Unrecognized input

Component exits the flow after the user provides unrecognized input three times.

User Input Agent Response
Please say or enter the five digit zip code.
It's fine
Sorry, I didn't get that. Can you please say or enter the five digit zip code again?
Good
Hmm, I still wasn't able to get that. Please make sure you're saying the five digit zip code. You can also use the keypad to enter the zip code.
Nice
Sorry, I'm having difficulty understanding your response.

Naming conventions

This prebuilt component uses the following naming conventions:

Feature Format Example
Flow [Component Name] Zip Code Collection
Component-Specific Intent prebuilt_components_[component_name]_[intent_name] prebuilt_components_zip_code_collection_collect_zip_code
Parameter [param_name] zip_code

Output parameters

Output parameters are session parameters that remain active after exiting the component. These parameters contain important information collected by the component.

This prebuilt component provides the following output parameters:

Parameter Name Description Output Format
zip_code_collection_zip_code Contains the ZIP code collected by the conversation flow. string

Basic setup

To set up this prebuilt component, import the prebuilt component.

Complete

The prebuilt component is now set up and ready to test.