The credit card enrollment prebuilt component lets new and existing customers apply for a new credit card.
The component begins by collecting the user's telephone number to identify whether they're a new or existing customer. For a new user, the component collects required details including their monthly income and category of expenses or credit card benefits that they want. After all required information has been collected, the component arranges a callback and provides the request number to the user.
For an existing customer, the component retrieves registered user information and presents available credit card options to the user based on their preferences and retrieved information including their credit score. After the customer selects a credit card option, the component sends a link to complete the enrollment procedure using registered channels including WhatsApp or SMS.
This component uses the Telephone number collection and Zip code collection components to collect and validate user details.
Limitations
In addition to the common prebuilt component limitations, this prebuilt component includes the following limitations:
- This component doesn't encrypt any data.
Sample dialogs
The 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 checks whether the user is calling using a registered phone number to identify whether they're a new user.
- The agent collects the category of credit card that the user wants to enroll for and collects information to identify the user, including the ZIP code and telephone number.
- The agent arranges a call back and provides the request number to the user.
| User Input | Agent Response |
|---|---|
| Can you confirm if you are an existing customer of our bank? | |
| I'm not | |
| We are glad that you would like to apply for a credit card with us. We have a wide range of credit cards that are suitable for you. To provide you with the best available credit cards, could you state your monthly income in USD? |
|
| 5000 dollars | |
| Which expenses or benefits are you interested in? We have a range of options available, like travel, fuel, and shopping. | |
| I like shopping | |
| Your selected response falls under the shopping category. If you want to proceed further, say yes. | |
| Yes | |
| The agent collects the user's ZIP code using the Zip code collection prebuilt component. | |
| You mentioned the zip code is 10011, is that correct? | |
| Yes that's right | |
| Great, we're done with collecting the zip code. | |
| The agent collects the user's telephone number using the Telephone number collection prebuilt component. | |
| Got it. The number you mentioned is +16502530000, is that correct? | |
| Yes | |
| Great, we're done collecting the telephone number. One of our representatives will call you back for the related cards based on your criteria. Your request number is 993835. |
Existing customer
- The agent identifies a registered customer using their telephone number and then requests information like the category and type of card the user wants to enroll for.
- Once the user confirms this information, the agent prompts the user to select a channel to complete the enrollment process and sends the link to the registered channel.
| User Input | Agent Response |
|---|---|
| We are glad that you continue selecting our product and services. We have a wide range of credit cards that are suitable for you. Which expenses or benefits are you interested in? We have a range of options available, like travel, fuel, and shopping. |
|
| I want a card I can use when I go on my next vacation | |
| Your selected response falls under the travel category. If you want to proceed further, say yes. | |
| Yes | |
| There are 3 types of cards to suit your type of request: platinum travel card, gold travel card, classic travel card. Would you like to know information about all cards or a specific one? For example, if you are specifically looking for a classic card, say classic card. | |
| Can you tell me about the platinum card? | |
| Sure, for a platinum travel card the annual fee is 95 dollars. Benefits include: get 10,000 bonus miles every year, earn unlimited 2x miles on all other purchases, miles are easy to earn and easy to use. You can find more information about benefits or bonuses on our website. Confirm if you want to enroll for the platinum travel card. |
|
| Yes, let's do that | |
| We will share a link with the enrollment procedure steps. Do you want us to share these card details with your mobile number through SMS or WhatsApp? | |
| SMS please | |
| Okay, we are sending the link to your registered mobile number. This action may take a few seconds. Can you please confirm if you have received the link by saying yes or no? | |
| I've got it | |
| Great, now you can open the link and check the card enrollment details. Once the data is completed, the issuance of the new card will be initiated and sent to your current address. |
Denial of information
When the user declines to provide information required to enroll for a credit card, the component exits with a failure message.
| User Input | Agent Response |
|---|---|
| Can you confirm if you are an existing customer of our bank? | |
| No I'm not | |
| We are glad that you would like to apply for a credit card with us. We have a wide range of credit cards that are suitable for you. To provide you with the best available credit cards, could you state your monthly income in USD? |
|
| I don't want to tell you that information | |
| Thank you for calling. We're sorry, but we are unable to proceed further without the requested information at this time. |
Naming conventions
This prebuilt component uses the following naming conventions:
| Feature | Format | Example |
|---|---|---|
| Flow | [Component Name] | Credit Card Enrollment |
| Component Specific Intent | prebuilt_components_[component_name]_[intent_name] | prebuilt_components_cc_enroll_collect_cardtype |
| Entity Type | prebuilt_components_[component_name]_[entity_type] | prebuilt_components_cc_enroll_expense_category |
| Webhook | prebuilt_components_[component_name]:[webhook_action] | prebuilt_components_credit_card_enrollment:get_available_card |
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 by using a calling flow or on the start page of this component.
This prebuilt component takes the following input parameters:
| Parameter Name | Description | Input Format |
|---|---|---|
| $session.params.auth_level | (optional) Indicates the current authentication level of the user. | integer |
| $session.params.phone_number | (optional) The user's phone number. If this parameter is not provided, the component collects the phone number from the user. | string |
| $flow.max_retry_count | Specifies the number of retries given to the user. The default value is 3. |
integer |
| $flow.currency_name | Specifies the currency expected when collecting monthly income details. The default value is "USD". |
string |
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, follow these steps:
- 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.
Get account details
The component uses the
prebuilt_components_credit_card_enrollment:get_account_details webhook to
retrieve the user's account details, if an account exists.
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. | integer |
| credit_score | The user's registered credit score. | integer |
To configure the Get account details 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_credit_card_enrollment:get_account_details 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.
Get card count
The component uses the
prebuilt_components_credit_card_enrollment:get_card_count webhook to retrieve
the number of credit cards associated with the registered user 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 |
API response parameters
The component retrieves the following parameters from the API response:
| Parameter Name | Description | Output Format |
|---|---|---|
| card_count | The total number of credit cards across a registered user's accounts. | integer |
To configure the Get credit card count 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_credit_card_enrollment:get_card_count 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.
Get available credit cards
The component uses the
prebuilt_components_credit_card_enrollment:get_available_card webhook to
retrieve the list of credit cards available to the user for a specific expense
category based on their credit score.
API request parameters
The component provides the following parameters as inputs to the API request:
| Parameter Name | Description | Input Format |
|---|---|---|
| $flow.expense_category | The expense category the user has selected to enroll in. Valid values are defined by the prebuilt_components_cc_enroll_expense_category custom entity. By default, fuel, shopping, and travel are supported. |
string |
| $flow.credit_score | The user's credit score, retrieved by the component using the Get account details webhook. | integer |
API response parameters
The component retrieves the following parameters from the API response:
| Parameter Name | Description | Output Format |
|---|---|---|
| available_card_names | A list of credit cards available to the user. For example, ["gold shopping card","classic shopping card"]. |
List (string) |
| cards_count | The number of credit cards available to the user. | integer |
To configure the Get available cards 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_credit_card_enrollment:get_available_card 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.
Get selected credit card details
The component uses the
prebuilt_components_credit_card_enrollment:get_selected_card webhook to
retrieve the annual fees and benefits for the selected credit card.
API request parameters
The component provides the following parameters as inputs to the API request:
| Parameter Name | Description | Input Format |
|---|---|---|
| $flow.card_type | The credit card type the user has selected to enroll in. Valid values are defined by the prebuilt_components_cc_enroll_card_type custom entity. By default, classic, gold, and platinum are supported. |
string |
| $flow.expense_category | The expense category the user has selected to enroll in. Valid values are defined by the prebuilt_components_cc_enroll_expense_category custom entity. By default, fuel, shopping, and travel are supported. |
string |
| $flow.credit_score | The user's credit score, retrieved by the component using the Get account details webhook. | integer |
API response parameters
The component retrieves the following parameters from the API response:
| Parameter Name | Description | Output Format |
|---|---|---|
| selected_card_benefits | Information about the benefits of the selected credit card. | string |
| selected_card_annual_fee | The annual fee of the selected credit card. | integer |
| selected_card_name | The name of the selected credit card. | string |
To configure the Get selected credit card details 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_credit_card_enrollment:get_selected_card 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.
Submit enrollment request
The component uses the prebuilt_components_credit_card_enrollment:submit_enroll
webhook to create a credit card enrollment request based on the new user's
provided preferences and user details.
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 |
| $flow.zipcode | The user's provided ZIP code. | string |
| $flow.monthly_salary | The user's provided monthly salary. | integer |
| $flow.currency_name | Currency of the monthly salary, configured in the component's input parameters. See input parameters. | string |
API response parameters
The component retrieves the following parameters from the API response:
| Parameter Name | Description | Output Format |
|---|---|---|
| request_number | The request number for the successful registration of the credit card enrollment request. | integer |
To configure the Submit enrollment request 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_credit_card_enrollment:submit_enroll 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.
Send message
The component uses the prebuilt_components_credit_card_enrollment:send_message
webhook to send a message containing a link to complete credit card enrollment
for existing customers.
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 |
| $flow.channel | The channel the user has selected to receive the message on. Valid values are defined by the prebuilt_components_cc_enroll_channel custom entity. By default, SMS and WhatsApp are supported. |
string |
| $flow.selected_card_name | A list of credit cards selected by the user. For example, ["gold shopping card","classic shopping card"]. |
List (string) |
API response parameters
The component retrieves the following parameters from the API response:
| Parameter Name | Description | Output Format |
|---|---|---|
| message_sent | Indicates whether the message was successfully sent to the channel specified by the user. | boolean |
To configure the Send message 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_credit_card_enrollment:send_message 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.