[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-18。"],[[["\u003cp\u003eThis prebuilt component is designed to collect five-digit zip codes from users, ensuring only numeric inputs of that length are accepted.\u003c/p\u003e\n"],["\u003cp\u003eThe component offers additional features including repeat, waiting room, and playback functionalities, allowing the user to interact with the component in different ways.\u003c/p\u003e\n"],["\u003cp\u003eThe component is setup to handle scenarios like invalid input, retries, and unrecognized input by prompting the user for a valid input or exiting the flow after three failures.\u003c/p\u003e\n"],["\u003cp\u003eDTMF should be enabled to allow users to input numeric zip codes using the telephone keypad.\u003c/p\u003e\n"],["\u003cp\u003eThe component uses a specific naming convention for flows, intents, and parameters, such as \u003ccode\u003eZip Code Collection\u003c/code\u003e for the flow and \u003ccode\u003ezip_code\u003c/code\u003e for the collected parameter.\u003c/p\u003e\n"]]],[],null,["# Zip code collection prebuilt component\n\nThis\n[prebuilt component](/dialogflow/cx/docs/concept/prebuilt-component)\ncollects five-digit zip codes.\n\nLimitations\n-----------\n\nIn addition to the\n[common prebuilt component limitations](/dialogflow/cx/docs/concept/prebuilt-component#limits),\nthis prebuilt component has the following limitations:\n\n- Zip codes longer than five digits are not accepted.\n- Alphanumeric zip codes are not accepted.\n\nRecommended agent settings\n--------------------------\n\n[Enable DTMF](/dialogflow/cx/docs/concept/parameter#dtmf) to allow users to input numeric values using the telephone keypad.\n\nAdditional features\n-------------------\n\nThe following additional functionalities are provided by this prebuilt component:\n\n- [Repeat](/dialogflow/cx/docs/concept/prebuilt-component#repeat-functionality)\n- [Waiting room](/dialogflow/cx/docs/concept/prebuilt-component#waiting-room-functionality)\n- [Playback](/dialogflow/cx/docs/concept/prebuilt-component#playback-functionality)\n\nSample dialogs\n--------------\n\nThe following sample dialogs demonstrate common scenarios handled by this\nprebuilt component. The sample dialogs demonstrate behavior when the component is\ncalled via telephony, which triggers the Default Welcome Intent and the first\nagent response at the start of the conversation.\n\n### Valid zip code\n\nEnd-user provides a five-digit zip code; agent successfully collects it.\n\n### Retry\n\nEnd-user provides a five-digit zip code in the second attempt; agent successfully accepts it.\n\n### Invalid zip code\n\nEnd-user provides an invalid zip code that is over five digits long; agent reprompts and successfully collects the corrected zip code.\n\n### Unrecognized input\n\nComponent exits the flow after the end-user provides unrecognized input three times.\n\nNaming conventions\n------------------\n\nThis prebuilt component uses the following naming conventions:\n\n### Output parameters\n\nOutput parameters are session parameters that will remain active after exiting\nthe component. These parameters contain important information collected by the\ncomponent. This prebuilt component provides values for the following output\nparameters:\n\nBasic setup\n-----------\n\nTo set up this prebuilt component:\n\n1. [Import the prebuilt component](/dialogflow/cx/docs/concept/prebuilt-component#import).\n\n### Complete\n\nYour agent and should now be set up and ready to test."]]