Gen UI Components
Rendered with fixture data. No API calls.
General
Savings, CDs, and mortgage calculators.
example_card
Renders a card with a title, summary, and optional link.
With URL
Example Result Title
A short description of what this card represents.
https://www.bankrate.com/mortgages/mortgage-rates/Without URL
Result With No Link
Sometimes there is no URL to show.
savings_calculator
Renders an interactive high-yield savings account calculator. Invoke when the user asks how much they will earn in a savings account or asks about savings growth over time. For CDs, use cd_calculator instead.
Input phase
Default rate is Bankrate’s top offer as of July 2, 2026.
Output phase — with contributions
Including $5,750 you add over time
| Month | Balance | Interest earned |
|---|---|---|
| 0 | $10,000 | $0 |
| 1 | $10,040 | $40 |
| 2 | $10,330 | $80 |
| 3 | $10,622 | $122 |
| 4 | $10,915 | $165 |
| 5 | $11,209 | $209 |
| 6 | $11,505 | $255 |
| 7 | $11,801 | $301 |
| 8 | $12,099 | $349 |
| 9 | $12,398 | $398 |
| 10 | $12,698 | $448 |
| 11 | $12,999 | $499 |
| 12 | $13,302 | $552 |
| 13 | $13,605 | $605 |
| 14 | $13,910 | $660 |
| 15 | $14,216 | $716 |
| 16 | $14,523 | $773 |
| 17 | $14,832 | $832 |
| 18 | $15,142 | $892 |
| 19 | $15,453 | $953 |
| 20 | $15,765 | $1,015 |
| 21 | $16,078 | $1,078 |
| 22 | $16,393 | $1,143 |
| 23 | $16,709 | $1,209 |
| 24 | $17,026 | $1,276 |
Input phase — no contributions
Default rate is Bankrate’s top offer as of July 2, 2026.
cd_calculator
Renders an interactive CD (certificate of deposit) calculator. Invoke when the user asks about CD earnings, wants to compare CD terms or rates, or asks about locking in a rate for a fixed period.
Input phase
Default rate is Bankrate’s top CD offer as of July 2, 2026.
Output phase — 1yr
Input phase — 6mo
Default rate is Bankrate’s top CD offer as of July 2, 2026.
mortgage_affordability
Renders an income-based mortgage affordability calculator. Invoke when the user asks how much home they can afford based on their annual income.
Input phase
car, student loans, cards — not rent
Output phase
Comfortable budget28% DTI
≈ $2,774 / mo
30-yr fixed · 6.875% · $60k down
- Comfortable home price
- $374,342
- Comfortable monthly payment
- $2,774
- Lender max home price
- $409,050
- Lender max monthly payment
- $3,071
Zero-budget state
Your monthly debts are already above the comfortable limit.
Try reducing your monthly debt or increasing your income above, then recalculate.
- Comfortable home price
- $0
- Comfortable monthly payment
- $0
- Lender max home price
- $0
- Lender max monthly payment
- $0
mortgage_affordability_by_payment
Renders a payment-based mortgage affordability calculator. Invoke when the user says what monthly payment they can afford rather than stating their income.
Input phase
total housing budget incl. taxes & insurance
Output phase
Your budget
≈ $2,476 / mo
30-yr fixed · 6.875% · $60k down
- Home budget
- $339,634
- Estimated monthly payment
- $2,476
Zero-budget state
Your budget
≈ $198 / mo
30-yr fixed · 6.875% · $5k down
- Home budget
- $27,339
- Estimated monthly payment
- $198
mortgage_payment
Renders an interactive mortgage payment breakdown calculator. Invoke when the user names a home price or asks what a monthly payment would be for a given scenario.
Input phase
20% down, 30-yr — Output phase
| Component | Monthly amount |
|---|---|
| Principal & interest | $2,628 |
| Property tax | $458 |
| Homeowner's insurance | $208 |
| Total monthly | $3,294 |
| Total interest over 30 years | ≈ $546,000 |
| Total cost over 30 years | ≈ $1,186,000 |
5% down (PMI) — Output phase
| Component | Monthly amount |
|---|---|
| Principal & interest | $2,496 |
| Property tax | $367 |
| Homeowner's insurance | $167 |
| PMI | $253 |
| Total monthly | $3,283 |
| Total interest over 30 years | ≈ $519,000 |
| Total cost over 30 years | ≈ $1,182,000 |
15-yr with HOA — Output phase
| Component | Monthly amount |
|---|---|
| Principal & interest | $3,211 |
| Property tax | $413 |
| Homeowner's insurance | $188 |
| HOA | $300 |
| Total monthly | $4,111 |
| Total interest over 15 years | ≈ $218,000 |
| Total cost over 15 years | ≈ $740,000 |
Refi Calculator Gen-UI
Refinance-specific interactive components. Fixture data only — no live API calls.
refi_term_comparison
Renders a side-by-side refinance term comparison (10/15/20/30-yr) showing monthly payment, interest, break-even, and lifetime savings for each term. Invoke when the user asks which refinance term is best or wants to compare 15-yr vs 30-yr.
Input phase
15-yr at 6.25%
Estimates use national-average stub rates. Actual rates vary by credit, lender, and market.
refi_vs_stay_put
Renders a refinance vs. stay-put comparison with cumulative cost chart. Invoke when the user wants to know if refinancing is worth it or asks to compare their current loan against a new rate.
Input phase
Stay put
$2,328
/month
Refinance
$1,940
/month
Save $388/mo
refi_break_even_explainer
Renders a visual break-even explainer card with a progress track. Invoke when the user asks what break-even means, how long until refinancing pays off, or wants the break-even explained from their closing costs and monthly savings.
Standard break-even (3 years)
Break-even point
After 3.0 years, every monthly payment is pure savings.
Quick break-even (13 months)
Break-even point
After 13 months, every monthly payment is pure savings.
No savings (payment increases)
Break-even point
Refinancing increases your monthly payment.
cash_out_refi_calculator
Renders a cash-out refinance calculator showing new loan amount, LTV, monthly payment, and LTV warnings. Invoke when the user wants to access home equity via a cash-out refinance.
No on-page scenario yet
Fill in your loan balance, home value, and current rate on the calculator above, and I can price a cash-out refinance against those exact numbers.
Exceeds 80% LTV cap
$150,000 would put this loan over the 80% loan-to-value cap most lenders apply to cash-out refinances. Based on your balance and home value, you can take out up to $85,000.
Upstream error
Could not calculate this cash-out scenario right now — please try again.
Settled result — golden UAT fixture (3.7-year break-even)
Cash you receive
New loan: $325,000 · 65.0% LTV
3.7 years
heloc_vs_cashout_refi
Renders a HELOC vs. cash-out refinance comparison showing monthly payments, total interest, LTV, and closing costs for both options. Invoke when the user asks about tapping home equity and is deciding between a HELOC and a cash-out refi.
No on-page scenario yet
Fill in your loan balance, home value, and current rate on the calculator above, and I can compare a HELOC against a cash-out refinance for those exact numbers.
Exceeds 80% LTV cap
$150,000 would put the cash-out refi side of this comparison over the 80% loan-to-value cap most lenders apply to cash-out refinances. Based on your balance and home value, the cash-out refi side maxes out at $85,000.
Upstream error
Could not calculate this cash-out scenario right now — please try again.
Settled comparison — HELOC cheaper monthly
HELOC
$71
/mo interest-only (draw period)
$123/mo repayment phase
Rate: 8.5% variable · LTV: 65%
Cash-out refi (lower payment)
$2,112
/mo (new fixed-rate loan)
Rate: 6.77% fixed · LTV: 65%
Settled comparison — no crossover (HELOC stays cheaper)
HELOC (lower payment)
$354
/mo interest-only (draw period)
$615/mo repayment phase
Rate: 8.5% variable · LTV: 73%
Cash-out refi
$2,372
/mo (new fixed-rate loan)
Rate: 6.77% fixed · LTV: 73%
heloc_rate_table_link
Renders a routing card — a labeled door to bankrate.com's live HELOC rate table. No rate, APR, or payment figure. Invoke only after heloc_vs_cashout_refi or cash_out_refi_calculator has rendered, or the user has named a HELOC themselves — never as a cold open.
With equity available
A HELOC may fit this better
Your 3.5% rate is well below today's — a cash-out refi would reset your whole balance to a higher rate.
About $145,000 in equity available
Without equity available
A HELOC may fit this better
You only need a small amount relative to your balance — no reason to touch your first mortgage.
rate_comparison_chart
Renders a side-by-side rate comparison card with cumulative cost chart. Shows the original estimate vs. a selected lender rate — monthly payments, monthly savings, break-even, closing costs, lifetime savings, and a cumulative cost line chart. Invoke when the user selects a lender rate and wants to compare it against their original estimate.
Lower rate selected (saves monthly)
Rate comparison
Original estimate
7.50%
$2,328/mo
Selected lender
6.125%
$1,940/mo
Save $388/mo
Similar rate (minimal savings)
Rate comparison
Original estimate
6.00%
$1,889/mo
Selected lender
6.125%
$1,914/mo
current_rates_card
Renders live refinance rates: Best on Bankrate, a top lender rate, and the national average — rate and APR only.
30-yr refinance rates
Rates shown are for a conventional 30-year refinance refinance. Actual rate depends on credit score, loan amount, and location.
15-yr refinance rates
Rates shown are for a conventional 15-year refinance refinance. Actual rate depends on credit score, loan amount, and location.
refi_rate_alert_enrollment
Inline refinance target-APR alert setup with account/sign-in steps when needed.
Refinance alert — complete scenario, guest
Refi Rate Alert Enrollment — states
Auth and request states are controller state, not tool props — rendered here directly against RefiRateAlertEnrollmentView. No network calls.
1. Review — complete scenario
Choose the APR that would make refinancing worth another look. We'll email you when eligible offers meet your target.
Current best APR shown here: 6.72% (estimated)
2. Review — missing target APR
Choose the APR that would make refinancing worth another look. We'll email you when eligible offers meet your target.
Current best APR shown here: 6.72% (estimated)
Enter a target APR between 3.00% and 10.00%.
3. Review — existing alert / update mode
Choose the APR that would make refinancing worth another look. We'll email you when eligible offers meet your target.
Current best APR shown here: 6.72% (estimated)
You already have a refinance alert at 5.75% APR. Saving will update it.
4. Email entry
Create an account or sign in
Enter your email to create a free account or log in. I'll hold on to the rate alert and create it for you.
5. OTP entry with mock hint
Enter the code we sent
We sent a 6-digit code to j***@example.com.
6. Saving
7. Success — created
We'll email you when eligible refinance offers reach 5.75% APR or lower.
8. Success — updated
We'll email you when eligible refinance offers reach 5.75% APR or lower.
9. Recoverable OTP error
Enter the code we sent
We sent a 6-digit code to j***@example.com.
10. Save / network error
Something went wrong setting up your alert. Your details are still here — try again.
Chat Components
Interactive components rendered inside the AI chat thread. Fully live — changes here update everywhere they appear in chat.
question_card
AI-generated clarifying question card with dynamic answer input. Three variants: choice (pill buttons), number-input (numeric field + unit), text-input (free-text field). Supports answered/locked state with an Edit answer button that trims stale messages.
Choice — unanswered (closing costs vs. lowest rate)
To make this concrete for you:
Are you trying to minimize cash due at closing, or are you OK paying fees to lock the lowest rate?
Choice — answered (locked state with Edit button)
To make this concrete for you:
Are you trying to minimize cash due at closing, or are you OK paying fees to lock the lowest rate?
Number input — how long do you plan to stay? (unanswered)
This matters for your break-even:
How long do you realistically expect to keep this home before selling or refinancing again?
Number input — answered
This matters for your break-even:
How long do you realistically expect to keep this home before selling or refinancing again?
bankrate_insight
Renders a personalized "Bankrate insight" callout card on article pages. The AI generates the insight copy based on the user's persona and the article context. Includes an "Ask Bankrate" CTA that opens the chat panel.
Mortgage Refinancer — credit score near tier boundary
Insights for you
At a 690 credit score, you're right at the edge of the best rate tier — lenders often draw the line at 700+. Raising your score even 10–15 points before you apply could lower your rate more than shopping around for a different lender would.
First-Time Buyer — DTI and affordability insight
Insights for you
Your debt-to-income ratio is sitting around 38%, which most lenders accept — but at 36% or below you'd unlock better rate offers. Paying down $150/month of an existing balance could shift your DTI into that preferred range before you submit your application.
Saver — CD ladder opportunity
Insights for you
With rates still above 5% on 12-month CDs, laddering a portion of your savings across 3-, 6-, and 12-month terms locks in today's yield while keeping a third of your money accessible every quarter — better than leaving it all in a standard savings account.
QuestionCard
AI-generated clarifying questions rendered inline in the chat thread.
Yes / No / Not sure — choice (unanswered)
This helps me understand your situation better.
Do you plan to stay in your home for at least 3 more years?
Yes / No / Not sure — choice (answered)
This helps me understand your situation better.
Do you plan to stay in your home for at least 3 more years?
Text input + Not sure button (unanswered)
This helps me tailor the numbers to your situation.
What's your current credit score, or your best estimate?
Open-ended text prompt — no buttons (unanswered)
What is your main priority with this refinance?
Conversational Intake Cards
Default form cards rendered at each stage of the conversational calculator flow.
GoalSelectionCard
Stage 1 — user picks their refinance goal.
Unanswered
What's your main goal?
Pre-selected (lower-payment)
What's your main goal?
MortgageDetailsCard
Stage 2 — remaining balance, current rate, and term.
Empty
Tell me about your current mortgage
Pre-filled
Tell me about your current mortgage
PropertyCreditCard
Stage 3 — property value, ZIP code, and credit score range.
Empty
A few more details
Pre-filled
A few more details
PreferencesCard
Stage 4 — new loan term and rate to compare.
With live rate data
What new loan would you like to compare?
New loan term
Rate to use
Rates loading
What new loan would you like to compare?
New loan term
Rate to use
RefiResultCard
Stage 5 — personalized refinance calculation results.
Monthly savings — lower payment goal
You could reduce your monthly payment by
by refinancing to a 30-year loan at the Best rate on Bankrate