Build an Internet Bill Call Planner
Build a local app to plan, rehearse, and log an internet bill call.
Introduction
30 Second Summary
An internet plan can look affordable until a promotion expires or an extra service changes the total. Calling without the right figures makes it harder to judge the options you hear.
In this project, you will use Claude Code to build a free-to-run local web app with HTML, CSS, and JavaScript. The finished app guides your preparation from bill summary through rehearsal to a printable call result.
What You'll Build
When you finish, your browser will show a call planner that turns your bill into a source-backed script for a real provider conversation.
By the end of this project, you'll have:
- A privacy-safe current plan summary that displays only your provider, plan, download speed, monthly price, and promotion end.
- An evidence-backed call plan built from a real linked offer. It checks the total price, price lock, future price, speed, contract, fees, and added services.
- Two rehearsal conversations that test your responses before the real call. A printable result card then shows the truthful outcome plus the annualized price difference.
- Secret Mission: Handle a harder representative who hides the real cost behind a bundle, a short price lock, and an unclear future price.
Are there any prerequisites?
You need a recent internet bill from an account you have permission to manage, plus a few minutes to check real competitor prices at your address.
The local app is free to run, while Claude Code plus the optional Grok Bot route require eligible paid access.
Before We Start
Before any hands-on work begins, this is your moment to choose the internet bill you want to discuss. Defining your goal now gives the provider call a clear purpose.
Set Up Claude Code and Open the Starter App
The bill you chose contains private account details. A dedicated folder gives Claude Code one clear place to work without exposing unrelated personal files.
You will use Claude Code to create a local web app that opens on your computer. This step checks your access before creating that private workspace.
In this step, get ready to:
- Confirm Claude Code v2.1.322 is available.
- Start a Claude Code session inside a dedicated project folder.
- Create the local starter page.
Install and verify Claude Code
A terminal is a text window where commands tell your computer what to do. You will use it to check Claude Code before creating any files.
Check your access before signing in
Claude Free does not include Claude Code. You need an eligible paid Claude plan or an Anthropic Console account.
A payment screen may appear during sign-in. Review the option before agreeing because the local app itself needs no additional API key.
macOS
- Press Cmd + Space to open Spotlight.
- Type Terminal into Spotlight.
- Press Enter to open Terminal.
Windows
- Press Win + X to open the system menu.
- Select Terminal or Windows PowerShell.
- Confirm the command line begins with PS.
- Check the installed Claude Code version by running this command:
claude --version
What does this command do?
- The claude command asks the installed Claude Code CLI to report its version.
- A successful result includes a version number followed by (Claude Code).
✔️ I see v2.1.322
That installation hurdle is cleared. Claude Code is ready to start inside your project folder.
ⓧ I see an older version
Your installed release is older than v2.1.322. Use the native installer to update it before continuing.
macOS
- Update Claude Code on macOS by running this command:
curl -fsSL https://claude.ai/install.sh | bash
What does this command do?
This command downloads the native Claude Code installer from Anthropic. The installer places the current release on your computer.
The terminal reports Claude Code successfully installed! when the update finishes.
- Confirm the updated version by running this command:
claude --version
What should I see?
The output now reports v2.1.322 as the installed release. It also includes (Claude Code).
Windows
- Update Claude Code in PowerShell by running this command:
irm https://claude.ai/install.ps1 | iex
What does this command do?
This command downloads the native Claude Code installer from Anthropic. PowerShell runs the installer on your computer.
The terminal reports Claude Code successfully installed! when the update finishes.
- Confirm the updated version by running this command:
claude --version
What should I see?
The output now reports v2.1.322 as the installed release. It also includes (Claude Code).
ⓧ Command not found
Claude Code is not installed yet. Use the native installer for your operating system.
macOS
- Install Claude Code on macOS by running this command:
curl -fsSL https://claude.ai/install.sh | bash
What does this command do?
This command downloads the native Claude Code installer from Anthropic. The installer adds the Claude Code CLI to your computer.
The terminal reports Claude Code successfully installed! when installation finishes.
- Verify the new installation by running this command:
claude --version
What should I see?
The output reports v2.1.322 as the installed release. It also includes (Claude Code).
Windows
- Install Claude Code in PowerShell by running this command:
irm https://claude.ai/install.ps1 | iex
What does this command do?
This command downloads the native Claude Code installer from Anthropic. PowerShell runs the installer on your computer.
The terminal reports Claude Code successfully installed! when installation finishes.
- Verify the new installation by running this command:
claude --version
What should I see?
The output reports v2.1.322 as the installed release. It also includes (Claude Code).
Still unable to run Claude Code?
Close the terminal after installation. Open a new terminal window before repeating the version check.
Confirm that you used the installer for your operating system. Help me troubleshoot why Claude Code is unavailable after installation.
Create the project folder and sign in
Claude Code treats the folder where a session starts as its working area. The dedicated internet-bill-call folder keeps this app separate from unrelated personal files.
macOS
- Create the project folder on your Desktop by running these commands:
cd ~/Desktop
mkdir internet-bill-call
cd internet-bill-call
What do these commands do?
- The first command moves the terminal to your Desktop.
- The second command creates the internet-bill-call folder.
- The final command moves the terminal into that folder.
Your terminal prompt now ends inside internet-bill-call. That path confirms where Claude Code can create the app.
Windows
- Create the project folder on your Desktop by running these commands in PowerShell:
cd ~/Desktop
mkdir internet-bill-call
cd internet-bill-call
What do these commands do?
- The first command moves PowerShell to your Desktop.
- The second command creates the internet-bill-call folder.
- The final command moves PowerShell into that folder.
Your PowerShell prompt now ends inside internet-bill-call. That path confirms where Claude Code can create the app.
Can't reach the project folder?
Run each folder command on its own line. Confirm that internet-bill-call is spelled the same way every time.
If the Desktop path cannot be found, locate the Desktop in your file browser. Help me reach my internet-bill-call folder from the terminal.
The next action checks whether your account includes Claude Code access. Review any paid option before agreeing because Claude Free does not include Claude Code.
- Start Claude Code inside internet-bill-call by running this command:
claude
What does this command do?
The claude command starts Claude Code in the current folder. The first launch opens a browser for sign-in.
Claude Code asks before file tools work outside the folder where the session started. Review every proposed action before approving it.
- Complete the browser sign-in if it opens.
- Return to the terminal after it shows Login successful.
- Press Enter to continue.
- Review each requested action before approving it.
Your signed-in Claude Code session now runs from internet-bill-call. The session is ready to create the starter file.
Sign-in not completing?
Return to the browser window opened by Claude Code. Finish the account access flow before switching back to the terminal.
If your account lacks access, review the available paid Claude or Anthropic Console route. Help me understand why Claude Code sign-in is not completing.
Create and verify the starter app
A self-contained HTML file can hold the entire starter page in index.html. Opening the file locally keeps the page on your computer.
- Create the starter page by pasting this request into the active Claude Code session:
Create one self-contained file named index.html in this project folder. Use only HTML, CSS, and JavaScript inside that file. Do not install packages, use a CDN, contact a server, or add analytics. Make a clean, accessible starter page titled "Internet Bill Call Planner". Add a notice that says this tool is only for the learner's own account and that they must not enter account numbers, PINs, passwords, security answers, or a full street address. Add five empty section headings: Current bill, Competitor offers, Call plan, Practice, and Result. Explain in the page that "local" means the file opens on this computer rather than being hosted on a website. After writing the file, open index.html in my default browser using the appropriate command for this operating system. Tell me exactly which file you changed.
What does this prompt create?
- The prompt limits Claude Code to one file named index.html.
- The privacy rules keep sensitive account information out of the starter page.
- The dependency restrictions keep the app free from packages or external services.
- The final instruction asks Claude Code to open the local file in your browser.
- Press Enter to send the request.
- Review the proposed index.html file change.
- Approve the index.html file change.
- Approve the local browser-open action.
Claude Code reports that it created index.html. Your browser opens the file directly from the internet-bill-call folder.
Before you check the page, which details do you expect to prove that the starter prompt followed your privacy rules?
- Switch to Safari on macOS or Microsoft Edge on Windows.
- Refresh the local index.html page.
What should I see?
- The page title reads Internet Bill Call Planner.
- The privacy notice limits the tool to your own account.
- The notice forbids account numbers, PINs, passwords, security answers, and full street addresses.
- The local explanation says the file opens on this computer.
- The page shows Current bill, Competitor offers, Call plan, Practice, and Result headings.
Browser did not open?
Use Finder on macOS or File Explorer on Windows to locate the internet-bill-call folder on your Desktop. Double-click index.html to open it.
If the file is missing, return to Claude Code. Confirm that it reported changing index.html. Help me find or open my local starter app.
✔️ Awesome, I've got everything!
Your local starter page is open. The title, privacy notice, local explanation, and five empty sections are visible.
ⓧ I'd like to double check the full code
Compare the generated index.html file with this required starter state.
- Confirm index.html is inside the internet-bill-call folder.
- Confirm the file contains only HTML, CSS, and JavaScript.
- Confirm the page displays Internet Bill Call Planner.
- Confirm the privacy notice forbids account numbers, PINs, passwords, security answers, and full street addresses.
- Confirm the page explains that local operation opens the file on this computer.
- Confirm Current bill, Competitor offers, Call plan, Practice, and Result appear as empty sections.
- Confirm Claude Code created no packages, CDN resources, server requests, analytics, or browser storage.
Your private workspace is ready. Next, you will turn five non-sensitive bill facts into a clear current-plan summary.
Turn Your Bill into a Safe Summary
The starter local web app from the last step gives your call preparation a private home on your computer. It still cannot describe the internet plan you want to discuss.
A specific call plan begins with the exact plan, speed, price, and promotion status from your bill. In this step, you will capture those facts safely and test whether they provide enough evidence for a call request.
In this step, get ready to:
- Identify five non-sensitive facts from your current bill.
- Add a safe current-plan summary to the app.
- Test the planner's evidence limit.
Read the five safe bill facts
Your bill contains personal account information alongside the plan details you need. The planner only needs five facts that describe the service and its price.
What do Mbps and promotion mean?
Mbps means megabits per second. It measures internet speed.
A promotion is a temporary price or discount. Its end date helps you understand when the current price may change.
- Capture the provider name from your bill here: your internet provider.
- Capture the plan name from your bill here: your plan name.
- Capture the download speed from your bill here: your download speed in Mbps.
- Capture the monthly price from your bill here: your monthly price.
- Capture the promotion end from your bill here: your promotion end or Unknown.
- Use Unknown when the bill does not show a promotion end.
- Leave account numbers, PINs, passwords, security answers, and full street addresses on the bill.
Why only five facts?
The summary needs enough information to describe your current service. Account credentials do not improve the call plan.
Keeping the full bill out of the app reduces the personal information copied into your project.
Build the current-plan summary
A form gives each bill fact its own required input. A JavaScript submission handler can display those values without reloading the page.
- Switch back to the Claude Code session in the terminal from earlier.
- Update index.html by pasting this prompt into Claude Code:
Update index.html without adding any external dependency. Replace the Current bill placeholder with a form for provider, plan name, download speed in Mbps, monthly price, and promotion end. Require all five fields, but let the learner type "Unknown" for the promotion end. Add plain-language help under Mbps and promotion. When the form is submitted, prevent the page from reloading and show a "Your current plan" card with the five values. Use textContent when displaying anything the learner typed. Then show the exact status "Blocked: add a linked competitor offer before generating a call plan." Keep the other section headings, privacy notice, and existing visual style. Do not add account number, address, PIN, password, or security-answer fields.
What does this prompt add?
- The five required inputs keep the summary focused on your current service.
- The in-memory bill object holds the submitted plan while the page remains open.
- The textContent property displays your values as plain text.
- The blocked status creates a visible test of whether the bill facts provide enough evidence.
- Send the prompt by pressing Enter.
Claude Code describes its proposed update. It may ask you to approve the change to index.html.
- Review the proposed file change.
- Approve the change to index.html.
Claude Code confirms that it updated the file inside your internet-bill-call folder.
- Return to the browser from earlier.
- Refresh the local page.
You should see five required inputs in the Current bill section. You should also see the Save current plan button.
Still seeing the empty section?
Confirm Claude Code changed index.html inside the internet-bill-call folder. A file with the same name elsewhere will not update this page.
Refresh the browser after Claude Code finishes the edit. Help me check why the Current bill form is missing.
✔️ Awesome, I've got everything!
Great. Double-check that Claude Code saved index.html inside the internet-bill-call folder.
ⓧ I'd like to double check the full code
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Internet Bill Call Planner</title>
<style>
:root {
color-scheme: light;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--ink: #172033;
--muted: #5b6475;
--paper: #ffffff;
--page: #f3f6fb;
--line: #d8dfeb;
--primary: #3157d5;
--primary-dark: #233fa1;
--warning-bg: #fff7df;
--warning-line: #e1b94e;
--success-bg: #eaf8ef;
--success-line: #69ad7c;
--error: #a32020;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--page);
color: var(--ink);
line-height: 1.5;
}
header,
main {
width: min(920px, calc(100% - 32px));
margin: 0 auto;
}
header {
padding: 40px 0 18px;
}
h1,
h2,
h3 {
line-height: 1.2;
}
h1 {
margin: 4px 0 10px;
font-size: clamp(2rem, 6vw, 3.3rem);
}
h2 {
margin-top: 0;
}
.eyebrow {
color: var(--primary);
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.lead,
.help {
color: var(--muted);
}
.notice,
.status,
.summary,
.result-card {
border: 1px solid var(--line);
border-radius: 12px;
padding: 16px;
}
.notice {
background: var(--warning-bg);
border-color: var(--warning-line);
}
section {
margin: 18px 0;
padding: 24px;
border: 1px solid var(--line);
border-radius: 16px;
background: var(--paper);
box-shadow: 0 8px 28px rgba(31, 45, 78, 0.06);
}
form,
.grid {
display: grid;
gap: 16px;
}
.grid.two {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
label {
display: grid;
gap: 6px;
font-weight: 650;
}
input,
select,
textarea,
button {
font: inherit;
}
input,
select,
textarea {
width: 100%;
padding: 11px 12px;
border: 1px solid #aeb8ca;
border-radius: 8px;
background: #fff;
color: var(--ink);
}
textarea {
min-height: 170px;
resize: vertical;
}
button {
width: fit-content;
padding: 11px 16px;
border: 0;
border-radius: 8px;
background: var(--primary);
color: #fff;
font-weight: 700;
cursor: pointer;
}
button:hover {
background: var(--primary-dark);
}
button:disabled {
cursor: not-allowed;
opacity: 0.5;
}
.secondary {
background: #e9edfa;
color: #23345e;
}
.secondary:hover {
background: #dce3f8;
}
.status {
margin-top: 16px;
background: var(--warning-bg);
border-color: var(--warning-line);
font-weight: 700;
}
.summary,
.result-card {
margin-top: 18px;
background: var(--success-bg);
border-color: var(--success-line);
}
.error {
min-height: 1.5em;
margin: 0;
color: var(--error);
font-weight: 700;
}
.offer-list {
display: grid;
gap: 10px;
padding-left: 22px;
}
.offer-list a {
color: var(--primary);
}
.button-row {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
}
.checklist {
display: grid;
gap: 8px;
margin-top: 16px;
}
.checklist label {
display: flex;
align-items: center;
gap: 8px;
font-weight: 500;
}
.checklist input {
width: auto;
}
pre {
white-space: pre-wrap;
overflow-wrap: anywhere;
font-family: inherit;
}
[hidden] {
display: none !important;
}
@media (max-width: 680px) {
.grid.two {
grid-template-columns: 1fr;
}
section {
padding: 18px;
}
}
@media print {
body {
background: #fff;
}
header,
section:not(#resultSection),
#resultForm,
.print-hide {
display: none !important;
}
main,
#resultSection {
width: 100%;
margin: 0;
padding: 0;
border: 0;
box-shadow: none;
}
#resultSection h2,
#resultCard {
display: block !important;
}
}
</style>
</head>
<body>
<header>
<p class="eyebrow">Local planning tool</p>
<h1>Internet Bill Call Planner</h1>
<p class="lead">Build an evidence-backed plan, rehearse it, and record what actually happened.</p>
<div class="notice">
<strong>Privacy rule:</strong> Use this only for your own account. Do not enter an account number, PIN, password, security answer, or full street address. “Local” means this file opens on your computer instead of being hosted on a website. Keep this tab open because entries are not saved after it closes.
</div>
</header>
<main>
<section id="billSection">
<h2>Current bill</h2>
<p class="help">Copy only these five facts from the bill. Do not paste the full bill.</p>
<form id="billForm">
<div class="grid two">
<label>
Provider
<input name="provider" required autocomplete="organization" placeholder="Example Internet Co.">
</label>
<label>
Plan name
<input name="planName" required placeholder="Example Home 400">
</label>
<label>
Download speed in Mbps
<input name="speedMbps" type="number" min="1" step="1" required placeholder="400">
<span class="help">Mbps means megabits per second, a measure of internet speed.</span>
</label>
<label>
Monthly price
<input name="monthlyPrice" type="number" min="0" step="0.01" required placeholder="84.00">
</label>
</div>
<label>
When the promotion ends
<input name="promoEnd" required placeholder="Example: January 2027 or Unknown">
<span class="help">A promotion is a temporary price or discount.</span>
</label>
<button type="submit">Save current plan</button>
</form>
<div id="billSummary" class="summary" hidden>
<h3>Your current plan</h3>
<p id="summaryProvider"></p>
<p id="summaryPlan"></p>
<p id="summarySpeed"></p>
<p id="summaryPrice"></p>
<p id="summaryPromo"></p>
</div>
<p id="evidenceStatus" class="status" hidden></p>
</section>
<section id="offerSection" hidden>
<h2>Competitor offers</h2>
</section>
<section id="planSection" hidden>
<h2>Call plan</h2>
</section>
<section id="practiceSection" hidden>
<h2>Practice</h2>
</section>
<section id="resultSection" hidden>
<h2>Result</h2>
</section>
</main>
<script>
let bill = null;
const billForm = document.getElementById("billForm");
function formatMoney(value) {
return `$${Number(value).toFixed(2)}`;
}
billForm.addEventListener("submit", (event) => {
event.preventDefault();
bill = {
provider: billForm.elements.provider.value.trim(),
planName: billForm.elements.planName.value.trim(),
speed: Number(billForm.elements.speedMbps.value),
price: Number(billForm.elements.monthlyPrice.value),
promoEnd: billForm.elements.promoEnd.value.trim()
};
document.getElementById("summaryProvider").textContent = `Provider: ${bill.provider}`;
document.getElementById("summaryPlan").textContent = `Plan: ${bill.planName}`;
document.getElementById("summarySpeed").textContent = `Download speed: ${bill.speed} Mbps`;
document.getElementById("summaryPrice").textContent = `Monthly price: ${formatMoney(bill.price)}`;
document.getElementById("summaryPromo").textContent = `Promotion ends: ${bill.promoEnd}`;
document.getElementById("billSummary").hidden = false;
const evidenceStatus = document.getElementById("evidenceStatus");
evidenceStatus.textContent = "Blocked: add a linked competitor offer before generating a call plan.";
evidenceStatus.hidden = false;
document.getElementById("offerSection").hidden = false;
document.getElementById("planSection").hidden = false;
});
</script>
</body>
</html>
Test the evidence limit
The required fields prevent an incomplete summary. Submitting the form stores the five values in the in-memory bill variable.
- Enter your internet provider in the Provider field.
- Enter your plan name in the Plan name field.
- Enter your download speed in Mbps in the Download speed in Mbps field.
- Enter your monthly price in the Monthly price field.
- Enter your promotion end or Unknown in the When the promotion ends field.
Before you submit, do you think these bill facts provide enough evidence for the app to generate a call plan?
- Select Save current plan.
You should see a Your current plan card containing your provider, plan, speed, monthly price, and promotion end.
Below the card, you should see Blocked: add a linked competitor offer before generating a call plan. This visible shortfall is intentional.
Why does planning stop here?
The current-plan summary describes what you already receive and pay. It does not provide evidence for a lower price or stronger alternative.
The planner stops before it can turn an unsupported claim into a call request. That evidence gate keeps the future plan grounded in a real offer.
Summary card not appearing?
Check that every field contains a value. Use Unknown when the promotion end is missing from the bill.
Confirm the speed and price fields contain numbers. Help me troubleshoot the current-plan form.
That is your first safe data loop working. The app now turns five bill facts into a readable current-plan summary without collecting account credentials.
Your current plan is now clear. Next, you will add a linked competitor offer so the planner can build an evidence-backed call plan.
Add a Linked Offer and Generate the Call Plan
The summary from the last step gives you a safe view of your current plan. The blocked status shows that the app still lacks evidence for a specific request.
A real competitor offer gives the planner that evidence. A source URL lets you return to the original offer while you check its full terms.
In this step, get ready to:
- Check a real competitor offer at your service address.
- Add a source-link requirement to the local app.
- Generate an evidence-backed call plan with two rehearsal prompts.
Check a real competitor offer
A competitor price becomes useful evidence after you confirm that it is available at your service address. The provider's own site is the source for this check.
- Open a new tab in the browser from earlier.
- Visit a competitor's official website.
- Enter your service address in the competitor's availability checker.
- Confirm that the displayed plan is available at your address.
- Look for the Broadband Facts or Broadband Consumer Disclosure label where available.
What makes an offer comparable?
The headline price is one part of the offer. The introductory period tells you how long that price lasts.
- The post-promotion price shows what the plan costs after the introductory period.
- Monthly fees affect the total amount you pay.
- A contract can limit when you can leave without a penalty.
- A data allowance can affect how much internet use the plan includes.
- The download speed shows the advertised service level in Mbps.
- Record the competitor name here: your competitor name.
- Record the displayed monthly price here: your competitor monthly price.
- Record the displayed download speed here: your competitor download speed.
- Record the public offer link here: https://provider.example/offer.
Keep Personal Details Out
Use your address only in the competitor's official availability checker. Keep your full street address out of the local app.
Save a public offer link that you can reopen without exposing account information. That link keeps your evidence separate from your identity.
Build the evidence workflow with Claude Code
The app needs a gate that accepts source-backed offers. Claude Code can add that workflow while preserving the existing privacy rules.
- Switch back to the Claude Code session inside your internet-bill-call folder.
- Update index.html by pasting this prompt into Claude Code:
Update index.html. Replace the Competitor offers placeholder with a form for competitor name, monthly price, download speed in Mbps, and source link. The JavaScript must reject a missing or invalid link and only accept an absolute URL whose protocol is exactly http: or https:. Show the exact error "Add a real http:// or https:// link before this offer can be used." Store accepted offers in memory for the current browser tab and list each offer with a clickable source link. Do not invent, search for, or prefill any offer.
Replace the Call plan placeholder with a disabled Generate call plan button. Enable it only after at least one linked offer exists. When selected, use the lowest entered monthly price as the offer to mention and generate a plan that: asks the current provider to match or beat it without adding another service; confirms the total monthly price including fees; asks how long the price is locked; asks the post-promotion price; confirms speed, contract term, early termination fee, and added services; says no to unwanted bundles or unclear terms; and allows the learner to choose the same price for faster speed knowingly. Include the source link in the call plan.
Replace the Practice placeholder with two read-only text areas. Rehearsal 1 must tell Claude Code to play the current provider's representative one short turn at a time, push back at least twice, offer a small discount, ask one off-topic question, avoid sensitive account data, and give feedback after the learner decides. Rehearsal 2 must restart with different pushback, a smaller discount, and a different off-topic question. Add buttons that select each text area's contents so the learner can press Cmd+C on Mac or Ctrl+C on Windows. Keep the app local with no network requests and no persistent browser storage.
What does this prompt add?
- The offer form collects a competitor name plus its price.
- The form also collects a speed plus a public source link.
- The link check accepts absolute addresses using only http: or https:.
- The plan generator selects the lowest entered monthly price.
- The practice workflow creates two different roleplay prompts.
- Review Claude Code's proposed change to index.html.
- Approve the file change after confirming that it stays inside the internet-bill-call folder.
- Switch back to the local app in your browser.
- Refresh the page.
You should see the Competitor offers form. You should also see a disabled Generate call plan button.
Don't see the offer form?
Confirm that Claude Code changed the index.html file inside internet-bill-call. Refresh the browser tab that displays that same file.
If the old page remains visible, close the local tab. Double-click index.html in Finder or File Explorer to reopen it. Help me check why my updated local app still shows the old page.
✔️ Awesome, I've got everything!
Great. Your local app now contains the linked-offer gate plus the call-plan workflow.
ⓧ I'd like to double check the full code
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Internet Bill Call Planner</title>
<style>
:root {
color-scheme: light;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--ink: #172033;
--muted: #5b6475;
--paper: #ffffff;
--page: #f3f6fb;
--line: #d8dfeb;
--primary: #3157d5;
--primary-dark: #233fa1;
--warning-bg: #fff7df;
--warning-line: #e1b94e;
--success-bg: #eaf8ef;
--success-line: #69ad7c;
--error: #a32020;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--page);
color: var(--ink);
line-height: 1.5;
}
header,
main {
width: min(920px, calc(100% - 32px));
margin: 0 auto;
}
header {
padding: 40px 0 18px;
}
h1,
h2,
h3 {
line-height: 1.2;
}
h1 {
margin: 4px 0 10px;
font-size: clamp(2rem, 6vw, 3.3rem);
}
h2 {
margin-top: 0;
}
.eyebrow {
color: var(--primary);
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.lead,
.help {
color: var(--muted);
}
.notice,
.status,
.summary {
border: 1px solid var(--line);
border-radius: 12px;
padding: 16px;
}
.notice {
background: var(--warning-bg);
border-color: var(--warning-line);
}
section {
margin: 18px 0;
padding: 24px;
border: 1px solid var(--line);
border-radius: 16px;
background: var(--paper);
box-shadow: 0 8px 28px rgba(31, 45, 78, 0.06);
}
form,
.grid {
display: grid;
gap: 16px;
}
.grid.two {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
label {
display: grid;
gap: 6px;
font-weight: 650;
}
input,
select,
textarea,
button {
font: inherit;
}
input,
select,
textarea {
width: 100%;
padding: 11px 12px;
border: 1px solid #aeb8ca;
border-radius: 8px;
background: #fff;
color: var(--ink);
}
textarea {
min-height: 170px;
resize: vertical;
}
button {
width: fit-content;
padding: 11px 16px;
border: 0;
border-radius: 8px;
background: var(--primary);
color: #fff;
font-weight: 700;
cursor: pointer;
}
button:hover {
background: var(--primary-dark);
}
button:disabled {
cursor: not-allowed;
opacity: 0.5;
}
.secondary {
background: #e9edfa;
color: #23345e;
}
.secondary:hover {
background: #dce3f8;
}
.status {
margin-top: 16px;
background: var(--warning-bg);
border-color: var(--warning-line);
font-weight: 700;
}
.summary {
margin-top: 18px;
background: var(--success-bg);
border-color: var(--success-line);
}
.error {
min-height: 1.5em;
margin: 0;
color: var(--error);
font-weight: 700;
}
.offer-list {
display: grid;
gap: 10px;
padding-left: 22px;
}
.offer-list a {
color: var(--primary);
}
.button-row {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
}
.checklist {
display: grid;
gap: 8px;
margin-top: 16px;
}
.checklist label {
display: flex;
align-items: center;
gap: 8px;
font-weight: 500;
}
.checklist input {
width: auto;
}
pre {
white-space: pre-wrap;
overflow-wrap: anywhere;
font-family: inherit;
}
[hidden] {
display: none !important;
}
@media (max-width: 680px) {
.grid.two {
grid-template-columns: 1fr;
}
section {
padding: 18px;
}
}
</style>
</head>
<body>
<header>
<p class="eyebrow">Local planning tool</p>
<h1>Internet Bill Call Planner</h1>
<p class="lead">Build an evidence-backed plan, rehearse it, and record what actually happened.</p>
<div class="notice">
<strong>Privacy rule:</strong> Use this only for your own account. Do not enter an account number, PIN, password, security answer, or full street address. “Local” means this file opens on your computer instead of being hosted on a website. Keep this tab open because entries are not saved after it closes.
</div>
</header>
<main>
<section id="billSection">
<h2>Current bill</h2>
<p class="help">Copy only these five facts from the bill. Do not paste the full bill.</p>
<form id="billForm">
<div class="grid two">
<label>
Provider
<input name="provider" required autocomplete="organization" placeholder="Example Internet Co.">
</label>
<label>
Plan name
<input name="planName" required placeholder="Example Home 400">
</label>
<label>
Download speed in Mbps
<input name="speedMbps" type="number" min="1" step="1" required placeholder="400">
<span class="help">Mbps means megabits per second, a measure of internet speed.</span>
</label>
<label>
Monthly price
<input name="monthlyPrice" type="number" min="0" step="0.01" required placeholder="84.00">
</label>
</div>
<label>
When the promotion ends
<input name="promoEnd" required placeholder="Example: January 2027 or Unknown">
<span class="help">A promotion is a temporary price or discount.</span>
</label>
<button type="submit">Save current plan</button>
</form>
<div id="billSummary" class="summary" hidden>
<h3>Your current plan</h3>
<p id="summaryProvider"></p>
<p id="summaryPlan"></p>
<p id="summarySpeed"></p>
<p id="summaryPrice"></p>
<p id="summaryPromo"></p>
</div>
<p id="evidenceStatus" class="status" hidden></p>
</section>
<section id="offerSection" hidden>
<h2>Competitor offers</h2>
<p class="help">An offer is a real plan you checked at your address. The app will not use it without a source link.</p>
<form id="offerForm" novalidate>
<div class="grid two">
<label>
Competitor
<input name="offerProvider" required placeholder="Example Fiber Co.">
</label>
<label>
Monthly price
<input name="offerPrice" type="number" min="0" step="0.01" required placeholder="49.00">
</label>
<label>
Download speed in Mbps
<input name="offerSpeed" type="number" min="1" step="1" required placeholder="500">
</label>
<label>
Source link
<input name="offerUrl" placeholder="https://provider.example/offer">
</label>
</div>
<p id="offerError" class="error" role="alert"></p>
<button type="submit">Add linked offer</button>
</form>
<ol id="offerList" class="offer-list"></ol>
</section>
<section id="planSection" hidden>
<h2>Call plan</h2>
<p class="help">Generate the plan only after adding at least one linked offer.</p>
<button id="generatePlan" type="button" disabled>Generate call plan</button>
<div id="planOutput" hidden>
<label for="callPlan">Plan to keep open during the call</label>
<textarea id="callPlan" readonly></textarea>
</div>
</section>
<section id="practiceSection" hidden>
<h2>Practice</h2>
<p class="help">Select a prompt, copy it, and paste it into Claude Code. The practice AI should never receive account credentials.</p>
<label for="rehearsalOne">Rehearsal 1</label>
<textarea id="rehearsalOne" readonly></textarea>
<div class="button-row">
<button class="secondary" type="button" data-select="rehearsalOne">Select Rehearsal 1</button>
</div>
<label for="rehearsalTwo">Rehearsal 2</label>
<textarea id="rehearsalTwo" readonly></textarea>
<div class="button-row">
<button class="secondary" type="button" data-select="rehearsalTwo">Select Rehearsal 2</button>
</div>
<p id="selectionStatus" class="help"></p>
<div class="checklist">
<label><input type="checkbox"> Rehearsal 1 complete</label>
<label><input type="checkbox"> Rehearsal 2 complete</label>
</div>
</section>
<section id="resultSection" hidden>
<h2>Result</h2>
</section>
</main>
<script>
let bill = null;
let offers = [];
let callPlan = "";
const billForm = document.getElementById("billForm");
const offerForm = document.getElementById("offerForm");
const generatePlanButton = document.getElementById("generatePlan");
function formatMoney(value) {
return `$${Number(value).toFixed(2)}`;
}
function isValidOfferUrl(value) {
try {
const parsed = new URL(value);
return parsed.protocol === "http:" || parsed.protocol === "https:";
} catch {
return false;
}
}
function resetAfterBillChange() {
offers = [];
callPlan = "";
document.getElementById("offerList").textContent = "";
document.getElementById("offerError").textContent = "";
generatePlanButton.disabled = true;
document.getElementById("planOutput").hidden = true;
document.getElementById("practiceSection").hidden = true;
}
billForm.addEventListener("submit", (event) => {
event.preventDefault();
bill = {
provider: billForm.elements.provider.value.trim(),
planName: billForm.elements.planName.value.trim(),
speed: Number(billForm.elements.speedMbps.value),
price: Number(billForm.elements.monthlyPrice.value),
promoEnd: billForm.elements.promoEnd.value.trim()
};
resetAfterBillChange();
document.getElementById("summaryProvider").textContent = `Provider: ${bill.provider}`;
document.getElementById("summaryPlan").textContent = `Plan: ${bill.planName}`;
document.getElementById("summarySpeed").textContent = `Download speed: ${bill.speed} Mbps`;
document.getElementById("summaryPrice").textContent = `Monthly price: ${formatMoney(bill.price)}`;
document.getElementById("summaryPromo").textContent = `Promotion ends: ${bill.promoEnd}`;
document.getElementById("billSummary").hidden = false;
const evidenceStatus = document.getElementById("evidenceStatus");
evidenceStatus.textContent = "Blocked: add a linked competitor offer before generating a call plan.";
evidenceStatus.hidden = false;
document.getElementById("offerSection").hidden = false;
document.getElementById("planSection").hidden = false;
});
function renderOffers() {
const list = document.getElementById("offerList");
list.textContent = "";
offers.forEach((offer) => {
const item = document.createElement("li");
const details = document.createElement("span");
const source = document.createElement("a");
details.textContent = `${offer.provider}: ${formatMoney(offer.price)} per month, ${offer.speed} Mbps.`;
source.textContent = "Open source";
source.href = offer.url;
source.target = "_blank";
source.rel = "noopener noreferrer";
item.append(details, " ", source);
list.append(item);
});
}
offerForm.addEventListener("submit", (event) => {
event.preventDefault();
const error = document.getElementById("offerError");
const url = offerForm.elements.offerUrl.value.trim();
if (!offerForm.elements.offerProvider.value.trim() ||
!offerForm.elements.offerPrice.value ||
!offerForm.elements.offerSpeed.value) {
error.textContent = "Enter the competitor, price, and speed before adding the offer.";
return;
}
if (!isValidOfferUrl(url)) {
error.textContent = "Add a real http:// or https:// link before this offer can be used.";
return;
}
offers.push({
provider: offerForm.elements.offerProvider.value.trim(),
price: Number(offerForm.elements.offerPrice.value),
speed: Number(offerForm.elements.offerSpeed.value),
url
});
error.textContent = "";
offerForm.reset();
renderOffers();
generatePlanButton.disabled = false;
document.getElementById("evidenceStatus").textContent = "Ready: a linked competitor offer is available.";
});
function lowestPriceOffer() {
return offers.reduce((best, current) => current.price < best.price ? current : best);
}
function buildCallPlan(best) {
return `GOAL
Ask ${bill.provider} to beat or match a real competitor offer without adding unwanted services.
CURRENT PLAN
Provider: ${bill.provider}
Plan: ${bill.planName}
Speed: ${bill.speed} Mbps
Monthly price: ${formatMoney(bill.price)}
Promotion ends: ${bill.promoEnd}
REAL COMPETITOR OFFER
Provider: ${best.provider}
Speed: ${best.speed} Mbps
Monthly price: ${formatMoney(best.price)}
Source: ${best.url}
OPENING
I am reviewing the price of my internet service. I checked an offer available at my address from ${best.provider}: ${best.speed} Mbps for ${formatMoney(best.price)} per month. Can you match or beat that without adding another service?
QUESTIONS BEFORE I AGREE
1. What is the total monthly price, including every monthly fee?
2. How many months is that price locked?
3. What will the monthly price become after the lock or promotion ends?
4. What download speed will I receive?
5. Does this add a contract or an early termination fee?
6. Does this add equipment, TV, mobile service, a phone line, or another bundle?
WHEN TO SAY NO
Say no if the total price is not lower, unless I knowingly choose the same price for faster speed. Say no to an unwanted bundle, an unclear post-promotion price, a contract I do not want, or any term the representative cannot confirm.
CLOSE
Before changing anything, please repeat the total monthly price, speed, lock length, post-promotion price, contract term, fees, and added services. I will decide only after those details are clear.`;
}
function buildRehearsalOne(best) {
return `Act as a retention representative for ${bill.provider} in a practice call about my own internet plan. Speak one short turn at a time and wait for my reply.
My non-sensitive facts:
- Current plan: ${bill.planName}, ${bill.speed} Mbps, ${formatMoney(bill.price)} per month
- Promotion ends: ${bill.promoEnd}
- Real linked competitor offer saved in my app: ${best.provider}, ${best.speed} Mbps, ${formatMoney(best.price)} per month
During the roleplay:
- Push back at least twice.
- Offer a small discount that is not automatically a good deal.
- Ask one harmless off-topic question.
- Never ask for an account number, address, password, PIN, or security answer.
- Do not invent any provider policy, eligibility rule, price, or competitor fact.
- Do not tell me the best answer while we are in character.
- Continue until I clearly accept, decline, or ask to think about the offer.
After my decision, leave character and give short feedback on whether I confirmed total monthly price, lock length, post-promotion price, speed, contract, fees, and added services. Begin with a normal greeting.`;
}
function buildRehearsalTwo() {
return `Start Rehearsal 2 from the beginning using the same non-sensitive facts. Use different pushback, a smaller discount, and a different harmless off-topic question. Do not make the conversation easier. Stay one short turn at a time, do not invent facts, and never ask for account credentials. After I decide, leave character and check whether I confirmed the total monthly price, lock length, post-promotion price, speed, contract, fees, and added services.`;
}
generatePlanButton.addEventListener("click", () => {
if (!bill || offers.length === 0) {
return;
}
const best = lowestPriceOffer();
callPlan = buildCallPlan(best);
document.getElementById("callPlan").value = callPlan;
document.getElementById("rehearsalOne").value = buildRehearsalOne(best);
document.getElementById("rehearsalTwo").value = buildRehearsalTwo();
document.getElementById("planOutput").hidden = false;
document.getElementById("practiceSection").hidden = false;
});
document.querySelectorAll("[data-select]").forEach((button) => {
button.addEventListener("click", () => {
const textArea = document.getElementById(button.dataset.select);
textArea.focus();
textArea.select();
document.getElementById("selectionStatus").textContent = "Text selected. Press Cmd+C on Mac or Ctrl+C on Windows, then paste it into Claude Code.";
});
});
</script>
</body>
</html>
Test the evidence gate and generate the plan
The evidence gate decides whether an offer can support your request. Testing the weak version first proves that the source requirement is active.
- Fill the Current bill form with the same five non-sensitive facts from earlier.
- Click Save current plan.
- Enter your competitor name in the Competitor field.
- Enter your competitor monthly price in the competitor Monthly price field.
- Enter your competitor download speed in the competitor Download speed in Mbps field.
- Leave the Source link field empty.
Before you submit the offer, do you think evidence without a source can unlock the call plan?
- Click Add linked offer.
You should see Add a real http:// or https:// link before this offer can be used. The offer stays out of the list.
Why was the offer rejected?
The visible shortfall is intentional. A price without a source gives you no page to check during the call.
The app uses isValidOfferUrl(value) to parse the link. It accepts only an absolute address whose protocol is exactly http: or https:.
- Enter https://provider.example/offer in the Source link field.
- Click Add linked offer.
You should see the competitor offer in the list with an Open source link. The status changes to Ready: a linked competitor offer is available.
The Generate call plan button is now enabled. Your accepted offer exists only in the current browser tab.
- Click Open source to confirm that the link returns to the competitor's offer.
Before you generate the plan, what details do you expect it to carry forward from your bill plus the linked offer?
- Click Generate call plan.
You should see a plan that names your current provider plus the lowest-priced linked offer. It includes the offer's source link.
The plan asks about the total monthly price plus fees. It also checks the lock period plus the post-promotion price.
What should the generated plan cover?
- The opening asks the current provider to match or beat the linked offer without adding another service.
- The confirmation questions cover speed plus the contract term.
- The remaining checks cover early termination fees plus added services.
- The refusal guidance rejects unwanted bundles or unclear terms.
- The decision rule allows equal pricing when you knowingly choose faster speed.
- Scroll to the Practice section.
- Confirm that Rehearsal 1 contains a read-only roleplay prompt.
- Confirm that Rehearsal 2 contains a different read-only roleplay prompt.
- Click Select Rehearsal 1.
The first prompt becomes selected for copying. The page tells you to use Cmd+C on macOS or Ctrl+C on Windows.
Plan button still disabled?
Confirm that the accepted offer appears in the list with an Open source link. A rejected offer does not enter the in-memory offers array.
Check that the source begins with http:// or https://. Help me diagnose why my linked offer does not enable the plan button.
Strong progress. Your app now turns a verified competitor offer into a call plan you can keep open under pressure.
Next, you will use both rehearsal prompts to practise handling resistance before the real call.
Rehearse the Call Twice
Your evidence-backed call plan is ready. The next challenge is using it when a representative pushes back.
Reading prepared questions feels simple. Responding under pressure can expose gaps.
Two different roleplays in Claude Code reveal those gaps before the real call. Each rehearsal applies a different kind of resistance.
In this step, get ready to:
- Complete the first roleplay without sharing sensitive account details.
- Complete a second roleplay with different resistance.
- Keep the tested call plan available for the real call.
Complete the first rehearsal
A roleplay turns your call plan into a live exchange. The first prompt tests how you respond to resistance without risking account changes.
You control what enters this rehearsal. The prompt only needs the non-sensitive plan facts already displayed in the app.
- Switch back to the local app tab from earlier.
- Click Select Rehearsal 1 below the first read-only rehearsal area.
- Press Cmd+C (macOS) or Ctrl+C (Windows) to copy the selected prompt.
- Switch back to the same Claude Code session.
- Paste the selected prompt into the Claude Code input.
Before you start, do you think the simulated representative will accept your opening request immediately?
- Press Enter to begin the first rehearsal.
Claude Code starts the simulated call with one short turn. The representative waits for your response.
- Reply as yourself after each representative turn.
- Keep your account number, PIN, password, security answer, or full address out of every reply.
- Continue until you clearly accept or decline the simulated offer.
What should I have seen?
- You handled at least two rounds of pushback.
- The representative offered a small discount.
- The representative asked one harmless off-topic question.
- Claude Code left character after your decision and gave you feedback.
Roleplay not following the prompt?
- Return to the local app tab.
- Click Select Rehearsal 1 again.
- Copy the full selected prompt with the shortcut for your computer.
- Paste the complete prompt into the Claude Code input.
If the roleplay still ends too early, help me continue the first rehearsal correctly.
Complete the second rehearsal
The second prompt applies new resistance. This prevents you from memorizing one easy sequence.
- Switch back to the local app tab.
- Click Select Rehearsal 2 below the second read-only rehearsal area.
- Press Cmd+C (macOS) or Ctrl+C (Windows) to copy the selected prompt.
- Switch back to the same Claude Code session.
- Paste the selected prompt into the Claude Code input.
Before you start, do you think the second representative will be easier to persuade?
- Press Enter to begin the second rehearsal.
Claude Code restarts the call with a different representative response. Use your call plan before making a decision.
- Ask for the total monthly price.
- Ask how long the price is locked.
- Ask what the price becomes after the promotion.
- Ask which download speed the offer includes.
- Ask whether the offer adds a contract.
- Ask about every added fee.
- Ask whether the offer adds equipment, a mobile line, TV service, or another bundle.
- Continue until you clearly accept or decline the simulated offer.
What changed this time?
- The representative used different pushback.
- The representative offered a smaller discount.
- The representative asked a different harmless off-topic question.
- Claude Code left character after your decision and gave you feedback.
Turn feedback into call notes
Feedback shows where pressure made your questions less precise. A short call note keeps each missing question visible during the real conversation.
Before you review both conversations, which rehearsal do you think exposed more weak spots?
- Switch back to the Claude Code session.
- Review Rehearsal 1 for at least two pushbacks.
- Confirm that the first representative offered a small discount.
- Confirm that the first representative asked a harmless off-topic question before the feedback.
- Review Rehearsal 2 for different pushback.
- Confirm that the second representative offered a smaller discount.
- Confirm that the second representative asked a different harmless off-topic question before the feedback.
- Confirm that each rehearsal ended with out-of-character feedback.
That is the pressure test complete. You have responded to two different representatives without sharing sensitive account information.
Before you compare the feedback with your plan, do you expect every missing question to already appear in the plan?
- Compare the feedback from both rehearsals with the generated call plan.
- Write each missing confirmation question in a call note beside the open plan.
- Switch back to the local app tab.
- Select the Rehearsal 1 complete checkbox.
- Select the Rehearsal 2 complete checkbox.
You should see check marks beside both rehearsals. Your generated call plan remains available for the real call.
You have practised the questions that protect you from unclear terms. Next, you will make the real call and record the honest outcome.
Make the Call and Log the Result
Your two rehearsals have pressure-tested the call plan. You now know how to question a small discount without sharing sensitive account information.
Practice becomes useful when it leads to an honest real-world outcome. This step records a saving, an increase, a refusal, or an incomplete call with the same care.
In this step, get ready to:
- Add the final result workflow to the local app.
- Make or attempt the provider call using your tested plan.
- Record the outcome and open a printable result.
Finish the result workflow
The final workflow turns the call into a record you can review. It calculates the twelve-month price difference while keeping the result tied to the exact plan you used.
- Switch back to the Claude Code session from earlier.
- Add the result workflow to index.html by pasting this prompt:
Update index.html one final time. Replace the Result placeholder with a form for outcome, new monthly price, price-lock length in months, and new download speed in Mbps. Explain that if the provider refuses or nothing changes, the learner should enter the old price again and 0 months. When submitted, show Before, After, Lock length, Speed, and the annualized price change calculated as (old monthly price - new monthly price) times 12. Label a positive number "Annualized saving", zero "No annualized price change", and a negative number "Annualized increase". State that annualized means "what the difference would be over 12 months" and is not a guarantee when the lock is shorter. Include the complete call plan used. Add a Print or save result button that calls window.print(), plus print styles that hide forms and buttons. Keep all existing privacy, bill, offer, plan, and practice behavior. Do not add storage, analytics, external libraries, or network requests.
What does this prompt add?
- The result form captures what actually happened during the call.
- The annualized calculation multiplies the monthly difference by twelve.
- The result card preserves the complete call plan beside the outcome.
- The print styles keep the saved result focused on the evidence instead of the forms.
- Review the proposed change to index.html.
- Approve the file change after confirming that the existing bill, offer, plan, and practice sections remain present.
Claude Code confirms that it updated index.html. Your local file now includes the result form, calculation, result card, and print behavior.
- Switch back to the existing index.html tab.
- Refresh the browser to load the updated file.
The refresh clears the tab's temporary entries because the app does not use persistent storage. This keeps your plan facts on your computer for only as long as the current page session.
- Submit the same five non-sensitive bill facts through the Current bill form.
- Add the same real linked offer through the Competitor offers form.
- Select Generate call plan.
You will see the new Result form below the practice section. The regenerated call plan remains available in memory for the open tab.
Result form missing?
Confirm that you refreshed the same local index.html file that Claude Code changed. Generate the call plan again because that action reveals the result section.
Check that Claude Code kept the existing generatePlanButton listener. Help me diagnose why resultSection stays hidden after I generate the call plan.
✔️ Awesome, I've got everything!
Great. Double-check that index.html is saved and the Result form appears after you generate the call plan.
ⓧ I'd like to double check the full code
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Internet Bill Call Planner</title>
<style>
:root { color-scheme: light; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --ink: #172033; --muted: #5b6475; --paper: #ffffff; --page: #f3f6fb; --line: #d8dfeb; --primary: #3157d5; --primary-dark: #233fa1; --warning-bg: #fff7df; --warning-line: #e1b94e; --success-bg: #eaf8ef; --success-line: #69ad7c; --error: #a32020; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.5; }
header, main { width: min(920px, calc(100% - 32px)); margin: 0 auto; }
header { padding: 40px 0 18px; }
h1, h2, h3 { line-height: 1.2; }
h1 { margin: 4px 0 10px; font-size: clamp(2rem, 6vw, 3.3rem); }
h2 { margin-top: 0; }
.eyebrow { color: var(--primary); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.lead, .help { color: var(--muted); }
.notice, .status, .summary, .result-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.notice { background: var(--warning-bg); border-color: var(--warning-line); }
section { margin: 18px 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 8px 28px rgba(31, 45, 78, 0.06); }
form, .grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 6px; font-weight: 650; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #aeb8ca; border-radius: 8px; background: #fff; color: var(--ink); }
textarea { min-height: 170px; resize: vertical; }
button { width: fit-content; padding: 11px 16px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 700; cursor: pointer; }
button:hover { background: var(--primary-dark); }
button:disabled { cursor: not-allowed; opacity: 0.5; }
.secondary { background: #e9edfa; color: #23345e; }
.secondary:hover { background: #dce3f8; }
.status { margin-top: 16px; background: var(--warning-bg); border-color: var(--warning-line); font-weight: 700; }
.summary, .result-card { margin-top: 18px; background: var(--success-bg); border-color: var(--success-line); }
.error { min-height: 1.5em; margin: 0; color: var(--error); font-weight: 700; }
.offer-list { display: grid; gap: 10px; padding-left: 22px; }
.offer-list a { color: var(--primary); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.checklist { display: grid; gap: 8px; margin-top: 16px; }
.checklist label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checklist input { width: auto; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; }
[hidden] { display: none !important; }
@media (max-width: 680px) { .grid.two { grid-template-columns: 1fr; } section { padding: 18px; } }
@media print { body { background: #fff; } header, section:not(#resultSection), #resultForm, .print-hide { display: none !important; } main, #resultSection { width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; } #resultSection h2, #resultCard { display: block !important; } }
</style>
</head>
<body>
<header>
<p class="eyebrow">Local planning tool</p>
<h1>Internet Bill Call Planner</h1>
<p class="lead">Build an evidence-backed plan, rehearse it, and record what actually happened.</p>
<div class="notice"><strong>Privacy rule:</strong> Use this only for your own account. Do not enter an account number, PIN, password, security answer, or full street address. “Local” means this file opens on your computer instead of being hosted on a website. Keep this tab open because entries are not saved after it closes.</div>
</header>
<main>
<section id="billSection"><h2>Current bill</h2><p class="help">Copy only these five facts from the bill. Do not paste the full bill.</p><form id="billForm"><div class="grid two"><label>Provider<input name="provider" required autocomplete="organization" placeholder="Example Internet Co."></label><label>Plan name<input name="planName" required placeholder="Example Home 400"></label><label>Download speed in Mbps<input name="speedMbps" type="number" min="1" step="1" required placeholder="400"><span class="help">Mbps means megabits per second, a measure of internet speed.</span></label><label>Monthly price<input name="monthlyPrice" type="number" min="0" step="0.01" required placeholder="84.00"></label></div><label>When the promotion ends<input name="promoEnd" required placeholder="Example: January 2027 or Unknown"><span class="help">A promotion is a temporary price or discount.</span></label><button type="submit">Save current plan</button></form><div id="billSummary" class="summary" hidden><h3>Your current plan</h3><p id="summaryProvider"></p><p id="summaryPlan"></p><p id="summarySpeed"></p><p id="summaryPrice"></p><p id="summaryPromo"></p></div><p id="evidenceStatus" class="status" hidden></p></section>
<section id="offerSection" hidden><h2>Competitor offers</h2><p class="help">An offer is a real plan you checked at your address. The app will not use it without a source link.</p><form id="offerForm" novalidate><div class="grid two"><label>Competitor<input name="offerProvider" required placeholder="Example Fiber Co."></label><label>Monthly price<input name="offerPrice" type="number" min="0" step="0.01" required placeholder="49.00"></label><label>Download speed in Mbps<input name="offerSpeed" type="number" min="1" step="1" required placeholder="500"></label><label>Source link<input name="offerUrl" placeholder="https://provider.example/offer"></label></div><p id="offerError" class="error" role="alert"></p><button type="submit">Add linked offer</button></form><ol id="offerList" class="offer-list"></ol></section>
<section id="planSection" hidden><h2>Call plan</h2><p class="help">Generate the plan only after adding at least one linked offer.</p><button id="generatePlan" type="button" disabled>Generate call plan</button><div id="planOutput" hidden><label for="callPlan">Plan to keep open during the call</label><textarea id="callPlan" readonly></textarea></div></section>
<section id="practiceSection" hidden><h2>Practice</h2><p class="help">Select a prompt, copy it, and paste it into Claude Code. The practice AI should never receive account credentials.</p><label for="rehearsalOne">Rehearsal 1</label><textarea id="rehearsalOne" readonly></textarea><div class="button-row"><button class="secondary" type="button" data-select="rehearsalOne">Select Rehearsal 1</button></div><label for="rehearsalTwo">Rehearsal 2</label><textarea id="rehearsalTwo" readonly></textarea><div class="button-row"><button class="secondary" type="button" data-select="rehearsalTwo">Select Rehearsal 2</button></div><p id="selectionStatus" class="help"></p><div class="checklist"><label><input type="checkbox"> Rehearsal 1 complete</label><label><input type="checkbox"> Rehearsal 2 complete</label></div></section>
<section id="resultSection" hidden><h2>Result</h2><p class="help">If the provider refuses or nothing changes, enter the old price again and a lock length of 0 months.</p><form id="resultForm"><label>Outcome<select name="outcome" required><option value="Changed plan">Changed plan</option><option value="No change">No change</option><option value="Call incomplete">Call incomplete</option></select></label><div class="grid two"><label>New monthly price<input name="newPrice" type="number" min="0" step="0.01" required></label><label>Price-lock length in months<input name="lockMonths" type="number" min="0" step="1" required></label><label>New download speed in Mbps<input name="newSpeed" type="number" min="1" step="1" required></label></div><button type="submit">Save result</button></form><div id="resultCard" class="result-card" hidden><h3>Before and after</h3><p id="resultOutcome"></p><p id="resultPrices"></p><p id="resultLock"></p><p id="resultSpeed"></p><p id="resultSavings"></p><p class="help">Annualized means what the monthly difference would be over 12 months. It is not a guarantee when the price lock is shorter.</p><h3>Call plan used</h3><pre id="resultPlan"></pre><button id="printResult" class="print-hide" type="button">Print or save result</button></div></section>
</main>
<script>
let bill = null;
let offers = [];
let callPlan = "";
const billForm = document.getElementById("billForm");
const offerForm = document.getElementById("offerForm");
const resultForm = document.getElementById("resultForm");
const generatePlanButton = document.getElementById("generatePlan");
function formatMoney(value) { return `$${Number(value).toFixed(2)}`; }
function isValidOfferUrl(value) { try { const parsed = new URL(value); return parsed.protocol === "http:" || parsed.protocol === "https:"; } catch { return false; } }
function resetAfterBillChange() { offers = []; callPlan = ""; document.getElementById("offerList").textContent = ""; document.getElementById("offerError").textContent = ""; generatePlanButton.disabled = true; document.getElementById("planOutput").hidden = true; document.getElementById("practiceSection").hidden = true; document.getElementById("resultSection").hidden = true; document.getElementById("resultCard").hidden = true; }
billForm.addEventListener("submit", (event) => { event.preventDefault(); bill = { provider: billForm.elements.provider.value.trim(), planName: billForm.elements.planName.value.trim(), speed: Number(billForm.elements.speedMbps.value), price: Number(billForm.elements.monthlyPrice.value), promoEnd: billForm.elements.promoEnd.value.trim() }; resetAfterBillChange(); document.getElementById("summaryProvider").textContent = `Provider: ${bill.provider}`; document.getElementById("summaryPlan").textContent = `Plan: ${bill.planName}`; document.getElementById("summarySpeed").textContent = `Download speed: ${bill.speed} Mbps`; document.getElementById("summaryPrice").textContent = `Monthly price: ${formatMoney(bill.price)}`; document.getElementById("summaryPromo").textContent = `Promotion ends: ${bill.promoEnd}`; document.getElementById("billSummary").hidden = false; const evidenceStatus = document.getElementById("evidenceStatus"); evidenceStatus.textContent = "Blocked: add a linked competitor offer before generating a call plan."; evidenceStatus.hidden = false; document.getElementById("offerSection").hidden = false; document.getElementById("planSection").hidden = false; });
function renderOffers() { const list = document.getElementById("offerList"); list.textContent = ""; offers.forEach((offer) => { const item = document.createElement("li"); const details = document.createElement("span"); const source = document.createElement("a"); details.textContent = `${offer.provider}: ${formatMoney(offer.price)} per month, ${offer.speed} Mbps.`; source.textContent = "Open source"; source.href = offer.url; source.target = "_blank"; source.rel = "noopener noreferrer"; item.append(details, " ", source); list.append(item); }); }
offerForm.addEventListener("submit", (event) => { event.preventDefault(); const error = document.getElementById("offerError"); const url = offerForm.elements.offerUrl.value.trim(); if (!offerForm.elements.offerProvider.value.trim() || !offerForm.elements.offerPrice.value || !offerForm.elements.offerSpeed.value) { error.textContent = "Enter the competitor, price, and speed before adding the offer."; return; } if (!isValidOfferUrl(url)) { error.textContent = "Add a real http:// or https:// link before this offer can be used."; return; } offers.push({ provider: offerForm.elements.offerProvider.value.trim(), price: Number(offerForm.elements.offerPrice.value), speed: Number(offerForm.elements.offerSpeed.value), url }); error.textContent = ""; offerForm.reset(); renderOffers(); generatePlanButton.disabled = false; document.getElementById("evidenceStatus").textContent = "Ready: a linked competitor offer is available."; });
function lowestPriceOffer() { return offers.reduce((best, current) => current.price < best.price ? current : best); }
function buildCallPlan(best) { return `GOAL\nAsk ${bill.provider} to beat or match a real competitor offer without adding unwanted services.\n\nCURRENT PLAN\nProvider: ${bill.provider}\nPlan: ${bill.planName}\nSpeed: ${bill.speed} Mbps\nMonthly price: ${formatMoney(bill.price)}\nPromotion ends: ${bill.promoEnd}\n\nREAL COMPETITOR OFFER\nProvider: ${best.provider}\nSpeed: ${best.speed} Mbps\nMonthly price: ${formatMoney(best.price)}\nSource: ${best.url}\n\nOPENING\nI am reviewing the price of my internet service. I checked an offer available at my address from ${best.provider}: ${best.speed} Mbps for ${formatMoney(best.price)} per month. Can you match or beat that without adding another service?\n\nQUESTIONS BEFORE I AGREE\n1. What is the total monthly price, including every monthly fee?\n2. How many months is that price locked?\n3. What will the monthly price become after the lock or promotion ends?\n4. What download speed will I receive?\n5. Does this add a contract or an early termination fee?\n6. Does this add equipment, TV, mobile service, a phone line, or another bundle?\n\nWHEN TO SAY NO\nSay no if the total price is not lower, unless I knowingly choose the same price for faster speed. Say no to an unwanted bundle, an unclear post-promotion price, a contract I do not want, or any term the representative cannot confirm.\n\nCLOSE\nBefore changing anything, please repeat the total monthly price, speed, lock length, post-promotion price, contract term, fees, and added services. I will decide only after those details are clear.`; }
function buildRehearsalOne(best) { return `Act as a retention representative for ${bill.provider} in a practice call about my own internet plan. Speak one short turn at a time and wait for my reply.\n\nMy non-sensitive facts:\n- Current plan: ${bill.planName}, ${bill.speed} Mbps, ${formatMoney(bill.price)} per month\n- Promotion ends: ${bill.promoEnd}\n- Real linked competitor offer saved in my app: ${best.provider}, ${best.speed} Mbps, ${formatMoney(best.price)} per month\n\nDuring the roleplay:\n- Push back at least twice.\n- Offer a small discount that is not automatically a good deal.\n- Ask one harmless off-topic question.\n- Never ask for an account number, address, password, PIN, or security answer.\n- Do not invent any provider policy, eligibility rule, price, or competitor fact.\n- Do not tell me the best answer while we are in character.\n- Continue until I clearly accept, decline, or ask to think about the offer.\n\nAfter my decision, leave character and give short feedback on whether I confirmed total monthly price, lock length, post-promotion price, speed, contract, fees, and added services. Begin with a normal greeting.`; }
function buildRehearsalTwo() { return `Start Rehearsal 2 from the beginning using the same non-sensitive facts. Use different pushback, a smaller discount, and a different harmless off-topic question. Do not make the conversation easier. Stay one short turn at a time, do not invent facts, and never ask for account credentials. After I decide, leave character and check whether I confirmed the total monthly price, lock length, post-promotion price, speed, contract, fees, and added services.`; }
generatePlanButton.addEventListener("click", () => { if (!bill || offers.length === 0) return; const best = lowestPriceOffer(); callPlan = buildCallPlan(best); document.getElementById("callPlan").value = callPlan; document.getElementById("rehearsalOne").value = buildRehearsalOne(best); document.getElementById("rehearsalTwo").value = buildRehearsalTwo(); document.getElementById("planOutput").hidden = false; document.getElementById("practiceSection").hidden = false; document.getElementById("resultSection").hidden = false; });
document.querySelectorAll("[data-select]").forEach((button) => { button.addEventListener("click", () => { const textArea = document.getElementById(button.dataset.select); textArea.focus(); textArea.select(); document.getElementById("selectionStatus").textContent = "Text selected. Press Cmd+C on Mac or Ctrl+C on Windows, then paste it into Claude Code."; }); });
resultForm.addEventListener("submit", (event) => { event.preventDefault(); const outcome = resultForm.elements.outcome.value; const newPrice = Number(resultForm.elements.newPrice.value); const lockMonths = Number(resultForm.elements.lockMonths.value); const newSpeed = Number(resultForm.elements.newSpeed.value); const annualizedChange = (bill.price - newPrice) * 12; let changeText = "No annualized price change: $0.00"; if (annualizedChange > 0) changeText = `Annualized saving: ${formatMoney(annualizedChange)}`; else if (annualizedChange < 0) changeText = `Annualized increase: ${formatMoney(Math.abs(annualizedChange))}`; document.getElementById("resultOutcome").textContent = `Outcome: ${outcome}`; document.getElementById("resultPrices").textContent = `Before: ${formatMoney(bill.price)} per month | After: ${formatMoney(newPrice)} per month`; document.getElementById("resultLock").textContent = `Price-lock length: ${lockMonths} months`; document.getElementById("resultSpeed").textContent = `Download speed: ${newSpeed} Mbps`; document.getElementById("resultSavings").textContent = changeText; document.getElementById("resultPlan").textContent = callPlan; document.getElementById("resultCard").hidden = false; });
document.getElementById("printResult").addEventListener("click", () => { window.print(); });
</script>
</body>
</html>
Make or attempt the provider call
A live provider call can feel more pressured than rehearsal. You stay in control because you can pause, decline, or end the call whenever the terms remain unclear.
Why the human route comes first
Calling from your own phone works without optional software or a separate calling plan. It also gives you direct control over any identity check the provider requires.
The optional automated route carries extra responsibilities because you remain the caller of record. Use it only when you have eligible access and can supervise the whole call.
Choose one calling route below. Both routes use the same linked evidence and confirmation questions.
Human route
- Keep the generated call plan visible in the existing browser tab.
- Find the customer-service number printed on your bill or listed on the provider's official site.
- Call the official customer-service number from your own phone.
- State the opening from your plan in your own words.
- Ask for a retention or loyalty specialist if the first representative cannot review alternatives.
- Describe only the competitor terms shown on the linked source page.
- Confirm the total price, lock length, future price, speed, contract, fees, and added services before deciding.
- Accept, decline, or ask for time after the full terms are clear.
A refusal or no-change result still completes the call attempt. The useful outcome is an accurate record of what the provider offered.
Optional Grok Bot route
The optional Grok Bot route is available for eligible users in the United States. It requires an eligible paid plan.
- Visit https://x.ai/bot in your browser.
- Download the Grok Bot desktop app for your operating system.
- Press Cmd+Space on macOS or the Windows key on Windows to open system search.
- Type Grok Bot into system search.
- Press Enter to open the app.
- Choose Sign in on the welcome screen.
- Complete the sign-in flow in your browser.
Automated calling involves disclosure, recording, and approval responsibilities. Grok Bot identifies itself as a virtual assistant and may record the call, so supervise every stage.
- Record the provider's official customer-service number here: provider's official customer-service number.
- Capture the complete generated plan here: paste the call plan from the app.
- Prepare the supervised call by pasting this prompt into Grok Bot:
Call [[PROVIDER_PHONE="provider's official customer-service number"]] about my own internet account. Use the platform's required virtual-assistant disclosure and do not try to hide that you are AI. Use only the current-plan and linked competitor details in the call plan below. Never invent an offer, price, quote, eligibility fact, or account fact. Do not accept a change until you ask me to approve the exact total monthly price, all monthly fees, speed, price-lock length, post-promotion price, contract term, early termination fee, and added services. Decline bundles, mobile lines, TV, equipment changes, and longer contracts unless I approve them. If the representative asks for an account number, password, PIN, security answer, or identity verification, stop and ask me to answer or take over. If the representative refuses an AI caller, end politely and tell me to use the human route.
[[CALL_PLAN="paste the call plan from the app"]]
What does this call prompt control?
- The assistant uses only the facts and source-backed offer in your plan.
- The assistant pauses before accepting any account change.
- The assistant asks you to take over when identity verification is required.
- The assistant ends the call if the representative refuses an AI caller.
- Review the displayed callee before the call begins.
- Choose Call only when the displayed number matches the provider's official number.
- Choose Cancel if the displayed number or call plan is incorrect.
- Monitor the live call card for any request that needs your answer.
- Use Take over if account verification or a material decision requires you.
- End the call if the representative refuses the automated caller.
Can't complete the automated call?
Confirm that your account includes eligible Grok Bot access and that you are calling within the United States. Use the human route if the calling option is unavailable.
Never disable the virtual-assistant disclosure. Help me decide when to take over or switch to the human route.
Record and print the outcome
The result must reflect what happened during your call attempt. A refused request or an unfinished call is a valid outcome when you record it truthfully.
What does annualized mean?
The app subtracts the new monthly price from the old monthly price. It multiplies that difference by twelve to show what the change would amount to over one year.
A shorter price lock can produce a different real total. The annualized figure is a comparison tool instead of a guaranteed saving.
- Select the truthful result in the Outcome field.
- Enter the confirmed monthly price in the New monthly price field.
- Enter the confirmed number of months in the Price-lock length in months field.
- Enter the confirmed download speed in the New download speed in Mbps field.
If the provider refused the request or nothing changed, use the old monthly price again. Enter 0 for the lock length.
- Select Save result.
You will see a result card with Before, After, Price-lock length, Download speed, and the annualized difference. The card also shows the complete call plan used.
Before you print, do you expect the forms and buttons to appear in the saved result?
- Select Print or save result.
You will see the browser print dialog. The preview keeps the result and call plan while hiding the forms and buttons.
Result or print preview incorrect?
Confirm that you generated the call plan before saving the result. The result card reads the current bill and callPlan values from the open tab.
Check that every result field contains a valid number where required. Help me diagnose an incorrect annualized result or print preview.
You have completed the full path from bill review to a truthful printable outcome. Your app now preserves the evidence, decision terms, annualized comparison, and call plan in one local result.
Secret mission
Handle the Hard Offer
Take on a retention representative who combines an attractive headline price with an unwanted bundle, a six-month lock, and an unclear future price. Uncover every condition before you accept, decline, or ask for time.
Clean Up Your Resources
Clean Up Your Resources
Your app runs locally, so its files do not create hosting charges. Choose whether to leave the project in place, pause it for later, or remove it.
Cost warning
A Claude Code or Grok Bot subscription can renew after you close the local app.
Grok Bot usage plus long calls may draw from a weekly allowance or paid top-ups.
- Review any paid subscription you started for this project before its next renewal.
- Cancel each unused subscription through the vendor's billing settings.
Resources you used:
- The local internet-bill-call folder containing index.html.
- Temporary in-memory app data held by the open browser tab.
- Any printed or PDF result you chose to save.
Keep everything running
No action is needed while you are actively using the call planner. Keeping the browser tab open preserves its current in-memory data.
- Leave the browser tab open so your current bill details remain available.
- Keep the internet-bill-call folder in its current location.
- Retain any printed or PDF result you want for your records.
Pause - I'll come back to this later
Shut down the active session while keeping the local project files for your return. Save the result first because closing the browser tab clears its temporary entries.
- Select Print or save result in the result card.
- Finish the browser print dialog using your preferred output.
- Return to the Claude Code terminal from earlier.
- Enter exit to end the active session.
- Close the browser tab.
You're set for a clean return. The temporary form entries are cleared while the internet-bill-call folder plus your saved result remain available.
Delete - I don't want to use this again
Deleting the folder is permanent. A saved PDF or printed result remains available unless you remove that too.
- Close the browser tab to clear the temporary form data.
- Return to the Claude Code terminal from earlier.
- Enter exit to end the active session.
- Delete any saved PDF result using Finder or File Explorer.
- Dispose of any printed result securely if it contains billing details.
Remove the local project folder:
macOS
- Press Cmd+Space to open the search bar.
- Type Finder.
- Press Enter to open Finder.
- Search for the internet-bill-call folder.
- Control-click the internet-bill-call folder to open its shortcut menu.
- Select the delete option for the folder.
Windows
- Press Windows logo key + E to open File Explorer.
- Search for the internet-bill-call folder.
- Right-click the internet-bill-call folder to open its shortcut menu.
- Select the delete option for the folder.
That closes the loop. The local app files plus the temporary browser data are now gone.
Nice Work!
Nice Work!
You did it! You used Claude Code to build a local Internet Bill Call Planner that turns real bill facts into an evidence-backed call plan.
You rehearsed the conversation before making or attempting your provider call. Your planner now preserves an honest record of the result.
You've learned how to:
- Build a dependency-free local app in index.html. Keep sensitive account details out of its forms.
- Enforce a source-backed evidence gate before generating a call plan. Turn linked competitor offers into two tailored rehearsal prompts.
- Complete two call rehearsals before making or attempting the real provider call. Produce a printable before-and-after result with the exact call plan used.
- Secret Mission: Handle a hard offer by uncovering an unwanted bundle, a six-month lock, and an unclear post-promotion price before making a clear decision.
Ready to quiz yourself?