The open account prebuilt component lets new and existing users open a new account or check the status of existing applications. This component collects user information to register a new account using the Date of birth collection, Name collection, and Telephone number collection prebuilt components.
Account types
By default, this component supports the following account types:
- Savings accounts
- Checking accounts (or current accounts)
- Demat accounts
- Salary accounts
Modify the prebuilt_components_open_account_account_type custom entity to add
or remove supported account types.
Limitations
In addition to the common prebuilt component limitations, this prebuilt component has the following limitations:
- This component does not encrypt any data.
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.
New user
- The agent collects the user's phone number and identifies that they aren't registered for an account.
- The agent collects details including the user's full name and date of birth, and generates an application that it sends to their provided phone number.
| User Input | Agent Response |
|---|---|
| Please provide us with the telephone number for validation purposes. | |
| The agent collects the user's telephone number using the Telephone number collection prebuilt component. | |
| Great, we are done collecting the telephone number. We are glad that you would like to open an account with us. |
|
| The agent collects the user's full name using the Name collection prebuilt component. | |
| Thank you, John Doe. | |
| The agent collects the user's date of birth using the Date of birth collection prebuilt component. | |
| Great, we've collected your birthdate. What type of account are you looking to open? You can say savings, checking, salary, or demat. |
|
| Current account | |
| To confirm, you would like to open a new checking account, is that correct? | |
| Yes | |
| Thanks for providing the information. Please wait while we generate your application. Your application ID is 81037. Please complete your application by clicking the link provided on your registered mobile number. |
Existing user
- The agent identifies that the user has been previously authenticated and confirms what type of account the user wants to open.
- The agent creates an application for the user and sends instructions to their registered phone number.
| User Input | Agent Response |
|---|---|
| We are glad that you would like to open a new account with us. What type of account are you looking to open? You can say savings, checking, salary, or demat. |
|
| Savings account please | |
| To confirm, you would like to open a new savings account, is that correct? | |
| Yes that's right | |
| Thanks for providing the information. Please wait while we generate your application. Your application ID is 21430. Please complete your application by clicking the link provided on your registered mobile number. |
Existing application
- The agent identifies that the user has previously opened a single application and presents the user with the current status.
- The user declines to open another application for a new account.
| User Input | Agent Response |
|---|---|
| Please provide us with the telephone number for validation purposes. | |
| The agent collects the user's telephone number using the Telephone number collection prebuilt component. | |
| Great, we are done collecting the telephone number. Your application with ID 12234 for opening a savings account is in progress. Would you like to open another account? |
|
| No | |
| Okay, thank you for calling us. |
Naming conventions
This prebuilt component uses the following naming conventions:
| Feature | Format | Example |
|---|---|---|
| Flow | [Component Name] | Open Account |
| Component Specific Intent | prebuilt_components_[component_name]_[intent_name] | prebuilt_components_open_account_account_type |
| Entity Type | prebuilt_components_[component_name]_[entity_type] | prebuilt_components_open_account_account_type |
| Webhook | prebuilt_components_[component_name]:[webhook_action] | prebuilt_components_open_account:generate_application |
Input parameters
Input parameters configure certain behaviors of the component. One or more conditions within the flow use these parameters to determine how the component behaves. You must set flow-scoped parameters on the start page of the component. You can set session-scoped parameters using a calling flow or on the start page of this component.
This prebuilt component accepts the following input parameters:
| Parameter Name | Description | Input Format |
|---|---|---|
| $session.params.auth_level | (optional) Indicates the authentication level of the caller. | integer |
| $session.params.phone_number | (optional) The customer's registered phone number used for authentication. | string |
| $session.params.min_age_limit | Specifies the minimum age allowed for users who are opening a new account. The default value is 18. |
integer |
| $session.params.max_age_limit | Specifies the maximum age allowed for users who are opening a new account. The default value is 100. |
integer |
| $flow.max_dob_retry_count | Specifies the number of retries allowed when collecting a valid date of birth. The default value is 2. |
integer |
| $flow.max_retry_account_type | Specifies the number of retries allowed when collecting the type of account the user would like to open. The default value is 2. |
integer |
| $flow.max_retry_another_account | Specifies the number of retries allowed when the user wants to change the type of account they have selected. The default value is 2. |
integer |
To configure the input parameters for this component, expand for instructions.
- Open the Dialogflow CX console.
- Choose your Google Cloud project.
- Select your agent.
- Select the Build tab.
- Click the imported component in the Flows section.
- Click the Start Page in the Pages section.
- Click the true Route in the Start Page.
- In the Route window, edit the Parameter Presets values as needed.
- Click Save.
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 |
|---|---|---|
| phone_number | The user's local phone number, without the country code, used to identify the user. | string |
| transfer_reason | Indicates the reason the flow exited, if it was not successful. The returned value is one of the following:agent: the user requested a human agent at some point during the conversation.denial_of_information: the user declined to share information requested by the component.max_no_input: the conversation reached the maximum number of retries for no-input events. See no-input built-in events.max_no_match: the conversation reached the maximum number of retries for no-match events. See no-match built-in events.webhook_error: a webhook error occurred. See webhook.error built-in event. webhook_not_found: a webhook URL was unreachable. See webhook.error.not-found built-in event. |
string |
Basic setup
To set up this prebuilt component, do the following:
- Import the prebuilt component.
- Configure the provided flexible webhooks with settings describing your external services. For more information, see the Webhook setup section.
Webhook setup
To use this component, configure the included flexible webhooks to retrieve the necessary information from your external services.
Telephone verification
The component uses the prebuilt_components_open_account:telephone_verification
webhook to retrieve information about registered accounts and previous
applications associated with the user's phone number.
API request parameters
The component provides the following parameters as inputs to the API request:
| Parameter Name | Description | Input Format |
|---|---|---|
| $session.params.phone_number | The user's local phone number, without the country code, used to identify the user. | string |
API response parameters
The component retrieves the following parameters from the API response:
| Parameter Name | Description | Output Format |
|---|---|---|
| account_count | The number of accounts associated with the registered phone number. These accounts include self-accounts and accounts for which the user has power of attorney. If there are no accounts associated with the given phone number, this value is null. |
integer |
| user_first_name | The registered user's first name. If the phone number is not associated with a registered account, this value is null. |
string |
| user_last_name | The registered user's last name. If the phone number is not associated with a registered account, this value is null. |
string |
| user_dob | The registered user's date of birth, in "YYYY-MM-DD" format. If the phone number isn't associated with a registered account, this value is null. |
string |
| application_count | The number of applications associated with the registered telephone number. If there are no applications associated with the given phone number, this value is null. |
integer |
| application_id | A list containing the application ID of each application associated with the given phone number. For example, ["00000", "11111", "22222"]. Each element in this list represents the same application as the element with the same index in account_type and application_status. If there are no applications associated with the given phone number, this value is null. |
List (string) |
| account_type | A list containing the account type of each application associated with the given phone number. For example, ["savings", "checking", "demat"]. Each element in this list represents the same application as the element with the same index in application_id and application_status. If there are no applications associated with the given phone number, this value is null. |
List (string) |
| application_status | A list containing the status of each application associated with the given phone number. For example, ["in progress", "on hold", "completed"]. Each element in this list represents the same application as the element with the same index in application_id and account_type. If there are no applications associated with the given phone number, this value is null. |
List (string) |
To configure the Telephone verification webhook for this component, expand for instructions.
- Open the Dialogflow CX console.
- Choose your Google Cloud project.
- Select your agent.
- Select the Manage tab.
- Click Webhooks.
- Select the prebuilt_components_open_account:telephone_verification webhook.
- Replace the URL in the Dialogflow CX Webhook URL field with the endpoint for the service you want to integrate with. Select the proper Method in the dropdown.
- Review and update the Request body to form the proper request format for your webhook.
- Review and update the Response configuration to extract specific fields from your webhook's response. Do not modify the parameter names, as these are required by the component to access the returned field values.
- Review and update the Authentication settings as needed.
- Click Save.
Generate application
The component uses the prebuilt_components_open_account:generate_application
webhook to generate an application for a new account.
API request parameters
The component provides the following parameters as inputs to the API request:
| Parameter Name | Description | Input Format |
|---|---|---|
| $session.params.phone_number | The user's local phone number, without the country code, used to identify the user. | string |
| user_first_name | The user's first name. | string |
| user_last_name | The user's last name. | string |
| user_dob | The user's date of birth, in "YYYY-MM-DD" format. | string |
API response parameters
The component retrieves the following parameters from the API response:
| Parameter Name | Description | Output Format |
|---|---|---|
| application_id | The application ID generated for the new account application. | string |
To configure the Generate application webhook for this component, expand for instructions.
- Open the Dialogflow CX console.
- Choose your Google Cloud project.
- Select your agent.
- Select the Manage tab.
- Click Webhooks.
- Select the prebuilt_components_open_account:generate_application webhook.
- Replace the URL in the Dialogflow CX Webhook URL field with the endpoint for the service you want to integrate with. Select the proper Method in the dropdown.
- Review and update the Request body to form the proper request format for your webhook.
- Review and update the Response configuration to extract specific fields from your webhook's response. Do not modify the parameter names, as these are required by the component to access the returned field values.
- Review and update the Authentication settings as needed.
- Click Save.
Complete
The prebuilt component and its webhooks are now set up and ready to test.