[[["易于理解","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 and validate a user's date of birth, including the month, day, and year.\u003c/p\u003e\n"],["\u003cp\u003eThe component can handle complete or partial date inputs, as well as future or invalid dates, by re-prompting the user for correct information.\u003c/p\u003e\n"],["\u003cp\u003eIt utilizes system functions \u003ccode\u003eIS_DATE\u003c/code\u003e and \u003ccode\u003eIS_FUTURE_DATE\u003c/code\u003e to ensure date validity and checks that the date is in the past.\u003c/p\u003e\n"],["\u003cp\u003eThe prebuilt component is limited in that it does not offer ID verification to verify the user's date of birth, and uses specific naming conventions for flows, intents, parameters and entity types.\u003c/p\u003e\n"],["\u003cp\u003eThe component provides a \u003ccode\u003edob_collection_dob\u003c/code\u003e output parameter containing an object with the collected day, month, and year, and also offers repeat, waiting room, and playback functionalities.\u003c/p\u003e\n"]]],[],null,["# Date of birth collection prebuilt component\n\nThis\n[prebuilt component](/dialogflow/cx/docs/concept/prebuilt-component)\ncaptures and validates a date of birth by collecting month, date, and year.\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- This component does not support verification of end-user's date of birth via ID verification.\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 functionalities\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### Full date of birth\n\nEnd-user provides complete date of birth in one turn; agent successfully accepts it.\n\n### Partial date of birth\n\nEnd-user provides date of birth by saying month first followed by date and year;\nagent successfully accepts it.\n\n### Future date validation\n\nThis scenario assumes the current date is March 22, 2023. End-user provides a\nfuture date of birth; agent validates it and re-prompts end-user to provide the\ncorrect date of birth.\n\n### Invalid date\n\nEnd-user provides an invalid date of birth such as February 30th 1999 or April\n31st 1999; agent validates it and re-prompts end-user to provide the correct\ndate of birth.\n\n### Unrecognized input\n\nComponent exits the flow after the end-user provides unrecognized input three times.\n\nDate of birth validation\n------------------------\n\nThis prebuilt component uses the [IS_DATE](/dialogflow/cx/docs/reference/system-functions#func-isdate)\nand [IS_FUTURE_DATE](/dialogflow/cx/docs/reference/system-functions#func-isfuturedate) system functions to\ncheck whether a collected date is valid and in the past. In addition:\n\n- Inputs such as \"this month\", \"next month\" or \"last month\" are converted into the appropriate months. For example, if the end-user is interacting with the agent in March, then \"this month\", \"next month\" and \"last month\" are converted into \"March\", \"April\" and \"February\" respectively.\n- Validates that the year should be four digits. If the year input contains only two digits, the component converts it into a four-digit year. For example, \"98\" is converted to \"1998\".\n- Input such as \"this Thursday\", \"last Thursday\", and \"next Thursday\" are captured as the appropriate month and day and the agent prompts to provide the year. For example, if end-user is interacting with the agent on March 22, 2023, which is a Wednesday, then \"this Thursday\", \"last Thursday\", and \"next Thursday\" are converted into \"March 23\", \"March 16\", and \"March 30\" respectively.\n\nNaming conventions\n------------------\n\nThis prebuilt component uses the following naming conventions:\n\nOutput parameters\n-----------------\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."]]