Temple University, Japan Campus (TUJ) • Case Study Series

Autonomous Municipal BD Agent: Step-by-Step Technical Guide

Greater Tokyo Context Gemini Spark Agent
For Computer Science & Engineering Students

Building an Autonomous AI Agent for Municipal Strategic Capture

This page is the living home of a real production system, rebuilt as a classroom case study: an AI agent that runs the weekly business-development cycle for a municipal engineering practice — monitoring procurement portals, tracking opportunities before they are advertised, maintaining one-page account strategies (Gold Sheets), and delivering it all as a single HTML dashboard. Below you will find the mental model, the toolchain as it was actually built, the weekly pipeline, and a complete step-by-step build — with the actual working prompts — that you can follow to build your own.

Course & School Applied AI • TUJ Tokyo
Prerequisites None — the build is prompts and a file, not code
Reasoning Engine A current Gemini model, on a Spark agent — see the Platform facts box (Step 1.1)
Primary Deliverable Standalone HTML Dashboard

Living document — this page is updated as the course progresses, instead of issuing new file versions. Last updated: October 24, 2026 • Web edition v1.5

1

The Core Mental Model: From Basic Python to Autonomous Agents

Procedural Python Script

Rigid and hardcoded. Tells the machine line-by-line what to do. Crashes when a portal's HTML changes; cannot read a 50-page council agenda and understand what matters in it.

fetch() ➔ parse() ➔ crash()

Conversational Chatbot

Understands language and reasons, but has no hands. Cannot browse dynamic procurement sites, keep state between weeks, produce files, or run on a schedule.

prompt ➔ talk back (no actions)

Autonomous AI Agent

Reasoning plus execution: it browses real pages, applies written rules to what it finds, updates structured state, renders the deliverable, and runs on a clock — with a human approving the result.

Brain + Hands + Rules + Memory + Clock

The Agent Engineering Equation

Autonomous Agent = Brain (LLM) + Hands (Tools) + Rules (Instructions) + Memory (State) + Clock (Schedule)
1. The Brain (LLM) A large language model (LLM) — in the original, a Gemini model on a Spark agent: long-context reasoning over portals, plans, agendas, and bios; extraction into strict schemas.
2. The Hands (Tools) The agent platform's real-browser browsing (essential for JavaScript portals), file generation, Drive archive, and email.
3. The Rules (Instructions) A standing instruction pack: methodology, data schemas, and guardrails — two-tier gating, zero fabrication, privacy firewall.
4. The Memory (State) The agent forgets everything between tasks. What it keeps lives outside it — in this build, one Markdown system file (§4) that every task starts from and updates.
5. The Clock (Schedule) A scheduled run inside the agent platform: the full weekly cycle executes itself on a fixed weekly schedule — pick a slot and keep the rhythm.
The one failure every rule on this page exists to catch: hallucination

A language model will sometimes state a fluent, confident, completely invented fact — a deadline, a name, a figure — because producing plausible text is what it does. It is not lying; it has no way to know. That single behavior is why this system verifies everything against official pages, why Tier 2 has no deadline field, and why a human approves every cycle. When a checkpoint looks paranoid, this is what it is defending against.

2

The Toolchain: What Was Actually Used — and What Was Not

This table is deliberately literal. The original system was built by directing an AI agent conversationally — writing specifications, schemas, templates, and rules — not by writing application code. Students consistently overestimate how much code a system like this needs; the honest answer is: none, until you choose to rebuild it in code (see §9).

LayerWhat was usedWhat it does in this system
Agent platformGoogle Gemini — a Spark agent — Google's personal agent in the Gemini app (Platform facts: Step 1.1)The runtime that executes the weekly pipeline: browses portals, reads documents, updates strategy artifacts, renders the dashboard, runs on schedule.
Reasoning modelA current Gemini modelReads posting pages, capital plans, agendas, and bios; extracts structured records that conform to the schemas.
Web accessThe agent's built-in real-browser browsingEssential: many procurement portals are JavaScript single-page apps; only a real browser render exposes their content.
InterfaceOne HTML file: Tailwind CSS (CDN) + Font Awesome (CDN) + vanilla JavaScriptThe dashboard. No framework, no build step, no server — it opens from a file or any static host.
StateBrowser localStorage + JSON export/importlocalStorage persists state between sessions; the JSON file is the backup and the interchange format handed from one weekly run to the next. (In the classroom build, this memory role is played in the open by the bd-system.md file — §4.)
ScheduleScheduled agent run — weekly, on a fixed scheduleThe trigger that starts each weekly cycle, inside the agent platform.
DistributionGoogle Drive archive + email pushEach cycle's dashboard is archived to a dated Drive folder and emailed to the operator.
Methodology contentMiller Heiman Strategic Selling / LAMP (Large Account Management Process) templatesGold Sheets, Buying Influences, Red Flags, Win-Results — embedded in the agent's instructions as schemas and checklists. Content, not code.
Explicitly NOT used in the original build

No GitHub Copilot. No Cursor or any code editor. No hand-written Python, no database server, no backend API, no user accounts. The "program" is five things: (1) data schemas, (2) prompt modules, (3) a state file, (4) a schedule, (5) a rendered artifact — plus a human verification gate. That is the central lesson of this case study: a domain expert who can articulate a methodology can build the tool that executes it.

3

The Weekly Pipeline: Six Stages, Input → Output

Before building anything, see the whole machine. One weekly cycle runs six stages. Everything the system knows lives in one system file — a single Markdown document (the format is explained in §4 — "memory is a file"); every stage consumes it and produces a new version of it. The dashboard is just a view of that file; the archive is a snapshot of it; next week's scan diffs against it. (In the original, this state lived inside the dashboard itself, with JSON as its backup — §2; the classroom build keeps it in the open, as this file.)

StageActor / ToolInputOutput
0 · Configure (once)Human + agentPortal registry; methodology templates; fit rules; your service linesThe standing instruction pack (registry + schemas + guardrails)
1 · ScanAgent, real-browser browsingPortal registry; last cycle's system fileRaw candidate list — unverified leads, plus an honest "unreadable sources" list
2 · Verify & classifyAgent + rules; official pages as ground truthRaw candidates; two-tier schema; fit rulesUpdated system file: Tier 1 (verified) + Tier 2 (early signals) + events + Red Flag list
3 · StrategizeAgent, methodology templatesUpdated state; existing Gold Sheets; public dossier sourcesUpdated Gold Sheets & dossiers; Red Flags become next actions
4 · RenderAgent generates the fileSystem file; dashboard module layoutThis cycle's single-file dashboard HTML
5 · PublishScheduled run + Drive + emailRendered HTMLDated archive copy + the operator's inbox copy
6 · Review gateHuman operator (15–30 min)Dashboard; spot-checks at official sourcesApproved state + execution log — next week's baseline. The loop closes here.
The schema is a contract

A Tier 2 (pre-RFP) record has no deadline field — not "the field is usually empty," but the schema does not contain one. In this prompt-based build the schema is text the agent is asked to follow, so the rule is enforced three ways: the schema itself, the Step 2.2 checkpoint (a deadline that appears is removed and the row regenerated), and the Step 4.1 audit. A code build can make the same rule structural — a record type with no deadline field cannot carry one (§9).

4

Build It Step by Step (With the Actual Prompts)

Eleven steps, in four phases — in the order the original system was actually built, which is also the order of the builder's own skill file: who you are and where you look first, then the weekly workflows, then the deliverable, then trust and automation. Each step states its goal, gives you the exact prompt to paste (use the Copy button), what you should get back, and a checkpoint that tells you the step is really done. Replace the [BRACKETED] parts with your own market, and treat any line starting <<REPLACE: as a note to you — act on it, then delete the marker before you paste. (One exception: Prompt 3's DEPLOYMENT block is written for Greater Tokyo in full sentences, not brackets — if your market is not Greater Tokyo, rewrite that whole block for your territory.) Classroom default market: Greater Tokyo municipal water.

The whole build in 30 seconds

You are building exactly one thing: a single file — bd-system.md — that remembers everything your business-development system knows: your market, your portals, what is open, who matters, and what to do next.

Portals publish→ Agent scans→ Agent verifies→ The file updates→ Dashboard renders→ You review — 15–30 min↻ every week

The eleven steps below assemble that file piece by piece. Each step adds exactly one section, and nothing is shown to you before the step that creates it. If you ever feel lost, come back to this box: whatever step you are on, you are either adding a section to the file, or teaching the agent to maintain it.

The one idea to carry in: memory is a file

An agent that "remembers" through chat history forgets, drifts, and cannot be audited. This system keeps its memory in one Markdown file that you can open, read, and repair by hand. The agent starts every task by reading the file and ends by returning it, updated — that discipline is the whole trick. You will start the file at Step 1.2 with three sections; its complete skeleton arrives at Step 1.4, when you teach the data model. (The builder calls his version a "skill file" — the same object, under his name.)

One honesty note before you start: the prompts on this page are faithful reconstructions of the builder's working instructions — the originals were conversational and were never exported as a document. §6 tells the full story.

The build at a glance — four phases

Phase 1 · Foundation (Steps 1.1–1.4): choose the platform, define your practice, build the registry, install the instructions, prove the data model.
Phase 2 · The Weekly Workflows (Steps 2.1–2.5): scan → verify → events → dossiers → Gold Sheets — the work itself, one workflow per step.
Phase 3 · The Deliverable (Step 3.1): the dashboard, generated from the system file and archived by date.
Phase 4 · Trust & Automation (Step 4.1): audit, operating rules, and the weekly schedule.

The destination: the thirteen prompts in this build are scaffolding. They assemble into one Final Prompt at the end of Step 4.1 — the complete instructions your agent runs on.

Time: Phase 1 (Steps 1.1–1.4), about 2 hours. Steps 2.1–2.2, 2–3 hours (real portals are slow, and official PDFs are long). Steps 2.3–2.5, about 2 hours. Steps 3.1–4.1, about 2 hours, plus two weekly cycles to feel the rhythm. Short on time? Run the fast track first — 1.1 → 1.2 → 1.3 → 1.4 → 2.2 → 3.1 — for an end-to-end skeleton, then add 2.3, 2.4, 2.5, and 4.1.

The Agentic Loop — how every step below works
1 · Read→ 2 · Edit→ 3 · Check→ 4 · Adjust→ back to 1

You never accept the agent's first output. In every step: read the source material yourself, let the agent make the change, check the result against the step's checkpoint, then adjust — and write what you learned into the system file or the standing instructions, so the next loop starts smarter. The checkpoints in this build are the Check stage; the meta-rule in §6 ("the fix goes into the instructions") is the Adjust stage. The finished system runs the same loop by itself, every week (§3).

One input rule for every prompt: unless a prompt says otherwise, begin by handing the agent your current system file — upload it, or paste its full text. The instructions tell the agent the job; the file tells it the current state of your market. A task started without the file is a task started from amnesia. Save each accepted cycle as bd-system-YYYY-MM-DD.md, and diff it against the previous cycle before you trust it (diff -u old.md new.md, or your editor's compare view) — a verified row that silently changed is a bug, not an edit.

Words you need first. Solicitation / tender: a public request for proposals or prices — the thing you are hunting. RFQ vs RFP: an RFQ asks "are you qualified?"; an RFP asks "what exactly would you do, and for how much?" Tier: Tier 1 is verified and live; Tier 2 is an early signal, not yet a tender. Gold Sheet: the one-page strategy for one account. Catalyst: the event that makes now the right moment. Cone of silence: after a tender is published, vendors stop lobbying about it. Red Flag: anything unknown or unverified — named, never hidden. The full glossary waits at the end of §4.

Phase 1 · Foundation — Steps 1.1–1.4 (Phase 1 of 4)

Decide who you are and where you look; then teach the agent its job. You finish this phase with a working agent and the first sections of your system file.

Phase 1 of 4 · Foundation — Step 1.1

Step 1.1 — Choose your agent

Goal: Pick a platform that can actually run this system. For this project, an "agent" is the five parts from §1 working together: an LLM (the brain), tools (the hands — above all a real browser), standing instructions (the rules), a memory it carries between tasks (in this build, the system file), and a clock (a loop that runs on schedule and produces the files you keep). Score every candidate against six criteria — the project fails without #1 and #3:

You produce: your platform — and a named home for the system you are about to build.

  1. Real-browser browsing — it must open JavaScript portal pages and return their real content. Test it on one of your target portals first. The pass/fail test: ask it — "Open https://www.e-procurement.metro.tokyo.lg.jp/ and list the first five posting titles with dates. If the page is empty, or you can only summarize the homepage, say 'unreadable' and why." If it fails, do not let it work from memory: paste the portal's page text or its PDFs into the chat, or take the code route (§9).
  2. Long context — a model can only hold so much in mind at once (its context window, measured in tokens); the registry, the schemas, the system file, and the source documents must all fit at the same time.
  3. File output — it must generate complete files you can download (the dashboard HTML, the updated system file).
  4. Persistent instructions — a custom agent / project where your master instructions (Prompt 3) live permanently.
  5. Scheduling — a built-in scheduled run is ideal; running Prompt 13 by hand weekly also works for a class project.
  6. Access you actually have — a platform your university provides beats a better one you cannot log into.
OptionPaid plan?Renders JavaScript?Scheduled runs?Notes
Google Gemini — Spark agent (the original build)Yes — AI Pro US$19.99/mo; Ultra from $99.99Yes — browser access, incl. Chrome auto-browse (rolling out)Yes — Schedules built inWorkspace apps, Drive/Gmail. Personal accounts only — see the Platform facts box below.
ChatGPT (agent mode, Projects, Tasks)Yes — Plus and above for agent modeYes — agent mode browses pages visuallyYes — TasksThe same prompts run here. Check your plan's agent-mode limits.
Claude (Projects, web search)Yes — Pro and above for ProjectsNo — search and text fetch; JavaScript portals may come back "unreadable"No — run Prompt 13 by handStrong long-document handling. If your portals are JavaScript apps, this fails criterion #1 — use the paste-the-text workaround, or pick another row.
DIY: Python + an LLM APIAPI usage, billed per tokenYou build itYou build it (cron)The most work and the most learning — you write the loop yourself. See §9 for the build-it-in-code instructions.

Platform facts — checked October 23, 2026. Gemini Spark is Google's personal agent inside the Gemini app, shaped by Tasks, Skills and Schedules. Google's support pages say it needs a personal Google Account (work and school accounts are not supported), age 18+, Keep Activity on, and a paid plan — Google AI Pro (US$19.99/month) or Google AI Ultra (from US$99.99/month). It is available in Japan and in most countries where Gemini Apps are supported — not the EEA, the UK, Switzerland or Nigeria. The model under Spark is Gemini's current one and changes over time (Google's posts have named successive Gemini Flash models), so this page deliberately prints no model number as a requirement. The builder's own notes name the builds he used; they do not appear on Google's public pages, so they are not printed here. Source: Google One support — "Use Google AI Ultra benefits".

Checkpoint: You can name your platform and point to where each of the six criteria lives in it. If one is missing, state which and how you will compensate — no scheduler, for example, means running Prompt 13 by hand. Two criteria cannot be waived: without real browsing (#1) or file output (#3) the system cannot run at all — if your platform lacks either, choose a different one. The tool is not the method — any platform that meets the six criteria produces similar results, so choose by the access you actually have.

Next: Step 1.2 — Define your practice: who you are, where you play, what you sell →

Phase 1 of 4 · Foundation — Step 1.2

Step 1.2 — Define your practice: who you are, where you play, what you sell

Goal: Before any tool work: the background every later step assumes. The builder's own skill file opens with exactly this — a summary, a territory, a team — so yours does too. Invent your (fictional) consulting practice: a name, a home base in Greater Tokyo, the services you sell, and the one line you compete on. Draw your territory the way the original does: named agencies in, everything else explicitly out. And state your goal for this system in one sentence: what does winning look like this semester? The classroom default territory is Greater Tokyo: TMG Bureau of Waterworks, TMG Bureau of Sewerage, Setagaya City, Yokohama City Waterworks Bureau, Kawasaki City, Hachioji City, MLIT Kanto Regional Development Bureau — accept it, or draw your own; Prompt 3 will use whatever you decide here. Run Prompt 1 in a plain chat on your chosen platform — the custom agent does not exist yet; that is Step 1.4. Steps 1.2–1.3 produce the material it is assembled from.

You produce: the first three sections of your bd-system.md — Summary, Territory, Team & Positioning (Start the file now: a title line, then these three sections — the complete skeleton arrives at Step 1.4.).

PROMPT 1 — DRAFT MY PRACTICE DEFINITION

I am setting up a business-development intelligence practice.
Interview me, then draft the first three sections of my system file.

Ask me, one at a time:
1. My firm's name, where its office is, and the nearest
 station - the 45-minute event radius is measured from
 that station.
2. The 3-5 services we sell to municipalities - chosen
   deliberately, against real Tokyo-area demand, not improvised. Mark each service
 core or adjacent: core = what we lead with and can prove;
 adjacent = what we can credibly support. Anything not
 listed is out - the fit ratings depend on this.
3. Our one-line positioning: what we lead with that a generalist
   firm cannot honestly say.
4. My territory: the agencies I cover - and the neighboring
   regions I explicitly exclude.
5. My goal for this system, in one sentence.
6. My team: 2-3 members - fictional name, credential, background.
 (Dossiers and ice-breakers draw on these people.)

Then return three sections, in this order:
## Summary - what this practice is; what this system does.
## Territory - covered agencies; strict exclusions.
## Team & Positioning - who we are; our people (names,
 credentials, backgrounds); what we lead with.
Plain language. Where I have not decided, write [UNDECIDED] -
do not decide for me.

A worked example (fictional). Hoshino Water Partners, office by Shinjuku Station. Services: (1) pipe-network asset management and renewal planning; (2) leakage detection and pressure management; (3) operational dashboards for water utilities. Positioning — weak: "We provide high-quality engineering consulting services." (Any firm could say it; it belongs to none.) Strong: "We lead with renewal plans costed from the utility's own pipe-age and leak data — a generalist firm cannot honestly claim a leakage track record." Territory: TMG Waterworks, TMG Sewerage, Yokohama, Kawasaki, Setagaya, Hachioji, MLIT Kanto; exclusions: private operators, and everything outside Kanto. Goal: "A running system that surfaces two pursuable pre-RFP windows a month by semester's end."

Checkpoint: Read the three sections as a stranger. Could you say, in one breath, who this firm is, where it plays, and why it wins? If the positioning sentence could belong to any firm, it belongs to none — sharpen it. Save the sections at the top of your bd-system.md; Step 1.3 builds on the Territory section, and Step 2.2's fit ratings key off the service lines you just chose. Resolve every [UNDECIDED] before Step 1.4 — the master instructions cannot be written around blanks.

Your file so far: Summary · Territory · Team & Positioning

Next: Step 1.3 — Build your portal registry →

Phase 1 of 4 · Foundation — Step 1.3

Step 1.3 — Build your portal registry

Goal: Build the registry: the explicit list of where opportunities in your market are published. In the builder's skill file this section is called "Procurement Hubs" and groups portals by platform — public sourcing hubs, portal networks, city bidding pages. The registry is the system's coverage boundary: anything not in it does not exist for the system. Your agency list (6–12 agencies) comes from Step 1.2's Territory section, and your service lines are already decided there — everything downstream keys off them, especially the fit ratings in Step 2.2. Draft the list, then paste Prompt 2. (Also a plain chat — the agent still does not exist.)

You produce: the Portal Registry section of your bd-system.md.

PROMPT 2 — REGISTRY

Here are the agencies in my market:
[PASTE YOUR LIST - e.g., Tokyo Bureau of Waterworks; Tokyo Bureau of
Sewerage; Setagaya City; Shinjuku City; Yokohama City Waterworks Bureau;
MLIT Kanto Regional Development Bureau]

For each agency, find and record:
- the official procurement / tender portal name and its direct URL,
- whether the portal is JavaScript-rendered (a single-page app),
- the categories of procurement it publishes,
- the notice types it publishes (tender notices, proposal calls,
 and so on),
- whether it is public without login - if it needs a login,
 record "login required"; do not guess.
Return a registry table. If you cannot find an agency's portal, say so
explicitly - do not substitute a similar-sounding site.

Checkpoint: Click every link yourself. A registry row you have not personally opened does not count. If the agent returns aggregator sites, reply: "Official sources only. Replace every aggregator with the agency's own portal, or mark the row 'portal not found'."

Your file so far: Summary · Territory · Team & Positioning · Portal Registry

Next: Step 1.4 — Install the master instructions, and teach the data model →

Phase 1 of 4 · Foundation — Step 1.4

Step 1.4 — Install the master instructions, and teach the data model

Goal: Give the agent its permanent job description — assembled from what you have already written, not handed down ready-made: Prompt 3's deployment section is your Step 1.2 territory and your Step 1.3 registry, written into the instructions. Create a new custom agent / project (name it Municipal BD Analyst — [Your Market]) and paste Prompt 3 as its standing instructions. If your platform has no persistent instructions, paste Prompt 3 at the start of every session. Where Prompt 3 lives on your platform (checked Oct 2026): on Gemini, a Spark Skill — Gems hold instructions too, but they cannot browse on a schedule; on ChatGPT, a Project's instructions (or a custom GPT — mind the length check below); on Claude, a Project's instructions. What you install here is the seed of the Final Prompt — this same document, completed, is assembled at the end of Step 4.1. Where each schema is first used: Tier 1 and Tier 2 at Step 2.2, Event at Step 2.3, Dossier at Step 2.4, Gold Sheet at Step 2.5 — all five are defined once, in Prompt 3. Lines starting <<REPLACE: inside a prompt are notes to you, not to the agent — act on them, then delete the marker before you paste. Length check: Prompt 3 is long — if your platform caps instruction length (some surfaces do), attach Prompt 3 as a project knowledge file instead of pasting it into the instruction box, and tell the agent that file outranks the chat.

You produce: a working agent carrying your instructions — and, after the schema check below, proof it holds the data model.

PROMPT 3 — MASTER INSTRUCTIONS (paste once)

ROLE
You are the business-development (BD) intelligence analyst for an engineering
consulting practice that sells professional services to municipal governments.
You run a weekly intelligence cycle and maintain a single dashboard.

METHODOLOGY (Miller Heiman)
- Every priority account is managed on a one-page Gold Sheet (account level,
  1-3 year horizon).
- For every account, identify the four Buying Influences: Economic Buyer
  (approves the money), User Buyer (lives with the result), Technical Buyer
  (can veto, cannot approve), Coach (an insider who teaches us how to win).
- Assess each account's Response Mode: Growth (expanding),
  Trouble (hurting), Even Keel (stable, no urgency), or
  Overconfident (complacent).
- Every unknown or risk is a Red Flag. Surface Red Flags explicitly; never
  hide them.
- Every recommendation is expressed as a Win-Result: what the specific client
  person gains.

DATA SCHEMAS (never change these without my instruction)
Tier 1 - Verified Solicitation (defined here): agency, solicitation_id, scope,
 application_deadline, question_deadline, submission_deadline,
 opening_date (each: date + time, JST, and the original Japanese
 quote; "not stated" when the notice omits it), portal,
 direct_link, fit (core / adjacent / out), status.
Tier 2 - Pre-RFP Target (defined here): agency, initiative, catalyst_and_timing
 (a timing window only if the source states or implies one;
 otherwise "timing unknown" - never a single release date),
 lead_capability, portal_base, strategic_action, source_url,
 source_date, source_quote_original (the Japanese line that
 supports the timing).
  (There is NO deadline field in Tier 2. Never add one.)
Gold Sheet (defined here): account_overview, response_mode, buying_influences (for each:
  name, role, stance (supportive / neutral / opposed /
  unknown), win_result), competitive_landscape, vulnerabilities,
  strategy, win_results, action_plan, red_flags, last_updated, window_opens, window_closes
 (dates, each with a source; "window unknown" if no source
 states them).
Dossier (defined here): name, title, agency, buying_influence, plus six dimensions:
  (1) responsibility & role, (2) background & pedigree,
  (3) core similarities, (4) conferences & gatherings,
  (5) high-frequency keywords, (6) ice-breaker pitch.
  Every factual claim must name its public source.
Event (defined here): name, date, time, venue, target_stakeholders
 (expected roles, not confirmed attendees),
  registration_link, source.

DEPLOYMENT - GREATER TOKYO (this build's territory)
<>
- Territory: Tokyo Metropolis (23 Special Wards + Tama), Kanagawa
  (Yokohama, Kawasaki), Saitama, Chiba. Nothing outside it.
- Target agencies: TMG Bureau of Waterworks, TMG Bureau of Sewerage,
  Setagaya City, Yokohama City Waterworks Bureau, Kawasaki City,
  Hachioji City, MLIT Kanto Regional Development Bureau.
- Official portals (verify here, nowhere else): Tokyo e-Procurement,
  e-Tokyo Joint, MLIT PPI, Yokohama e-Bidding.
- Events: JSCE (Japan Society of Civil Engineers), JWWA (Japan
  Water Works Association), JSWA (Japan Sewage Works
  Association) and MLIT forums - within a 45-minute
  transit radius of our office (origin station:
 [YOUR OFFICE STATION]), inside a rolling 14-day window.

GUARDRAILS (hard rules)
1. Tier 1 requires a confirmed ID, its dates verified on the official
posting page (every date the notice states), and a direct link. If you cannot verify, the item goes to
   the Red Flag list. Never guess a date, an ID, or a name.
2. Public information only. Never invent people, postings, or figures.
3. You never contact anyone. You draft; I send.
 Exception: the weekly digest email to my own address.
4. Once a solicitation is posted, no positioning contact about it
   (the "cone of silence" - once a tender is public, vendors must not
   lobby about it; all communication goes through the official
   channel). The positioning work happens before posting, in Tier 2.
5. Anything shared outside the practice uses fictional data, labeled DEMO.

WEEKLY CYCLE
Scan -> Verify & classify -> Events & briefings ->
Update dossiers & Gold Sheets -> Render dashboard ->
Archive & send to me -> I review and approve.
Scan window: deadlines up to 45-60 days out; farther
deadlines enter the window in later cycles.

OUTPUT DISCIPLINE
After every task, return (a) a short human summary of what changed,
(b) the complete updated system file (Markdown) - one downloadable
.md file or one code block - its sections following the schemas
above, and (c) a CHANGELOG listing every row or section added,
changed or removed. Do not change any row you were not asked
to change. If anything is
uncertain, say so in the summary and add a Red Flag.

Checkpoint: Ask two test questions. "A rumor says City X will issue an RFQ next month, no posting yet — which tier, and what fields?" (Correct: Tier 2, and no deadline.) "You found a posting but the deadline is only on an aggregator site — what do you do?" (Correct: verify on the official page, or Red-Flag it.) Wrong answers mean the instructions did not land — re-paste and test again.

Then teach the data model. Before the agent touches real data, make it prove it holds the schemas correctly:

The file those schemas describe. Here is the complete bd-system.md skeleton. Do not fill in the new sections by hand — your Summary, Territory, Team & Positioning, and Portal Registry are already written (Steps 1.2–1.3); each workflow step adds its own section as real data arrives. Save an empty copy now; Prompt 4 makes the agent prove it can restate it.

bd-system.md — the complete skeleton
Template
# BD System — [Your Practice] — updated [DATE]

## Summary
What this practice is · what this system does · the goal, in one sentence

## Territory
Covered agencies · Strict exclusions

## Team & Positioning
Who we are · The services we lead with · Our one-line positioning

## Portal Registry
Agency | Portal | URL | JS-rendered? | Categories watched | Notice types | Public without login?

## Tier 1 — Verified Solicitations
Agency | ID | Scope | Application | Questions | Submission | Opening | Link | Fit | Status

## Tier 2 — Pre-RFP Targets (no deadline field — by design)
Agency | Initiative | Catalyst & timing | Lead capability | Strategic action | Source (link, date)

## Gold Sheets
### [Agency] — Response Mode: [Growth / Trouble / Even Keel / Overconfident]
Buying influences · Red Flags · Current position · Window opens / closes (each with a source) · Next action

## Dossiers
### [Name] — [Title], [Agency]
The six dimensions, one short block each

## Events (next 14 days)
Date | Event | Venue | Named speakers / hosts | Link

## Red Flags
What is unverified — and why

## Execution Log
[Date] — what ran, what changed

## Operating Rules
The boundaries — left empty until Step 4.1, when your audit writes them
PROMPT 4 — SCHEMA CHECK

Using the schemas in your instructions, produce:
1. An empty Tier 1 template and an empty Tier 2 template (field names only).
2. One FILLED example of each, using entirely fictional data, labeled
   FICTIONAL EXAMPLE.
3. A list of the differences between Tier 1 and Tier 2.
Do not browse anything for this task.

Checkpoint: The fictional Tier 2 example must contain no deadline anywhere — and must carry its source: link, date, and the quoted line. If it has one, reply: "Tier 2 has no deadline field by design. Remove it and regenerate." Note this moment: you have just enforced a schema — the core skill of agent building.

Your file so far: the header and registry, plus empty templates for Tier 1 · Tier 2 · Events · Dossiers · Gold Sheets · Red Flags · Execution Log · Operating Rules

Next: Step 2.1 — Run the first scan →

Phase 2 · The Weekly Workflows — Steps 2.1–2.5 (Phase 2 of 4)

The five jobs the system does every week: scan, verify, events, dossiers, Gold Sheets. You finish this phase with a living system file — real state, honestly labeled.

Working with Japanese sources — read this before your first scan

Almost everything you are about to read — portal postings, assembly agendas and minutes, capital plans, officials' bios — is published in Japanese. That is expected, and it is not a blocker: your agent reads Japanese and reports to you in English; you verify with the links and dates it gives you. Three habits matter. (1) Era dates: official documents often date things by era year (Wareki) — Reiwa 8 is 2026 — but a fiscal year is different: Reiwa 8-nendo (fiscal year 2026) runs April 2026 to March 2027, and is recorded as FY2026, never as a date. Prompt 6 forces a conversion check on every deadline; never skip it. (2) Agendas are the government's to-do list: an assembly agenda and its attached materials are where a city announces what it plans to discuss, approve, and spend on — that is why Step 2.1 scans them. (3) Names: keep each official's Japanese name alongside the romanized one in your system file, so a source can always be found again. (4) Verify without reading Japanese: translate the page in your browser (right-click, Translate), then press Ctrl+F and search for the exact Japanese string the agent quoted. If the string is on the page, the quote is real; read the translated date beside it.

Phase 2 of 4 · The Weekly Workflows — Step 2.1

Step 2.1 — Run the first scan

Goal: Collect raw, unverified candidates — solicitations, planning signals, and events — from your registry sources. (Pipeline Stage 1.) First run: one agency only — your strongest registry entry; widen to the full registry after the Step 2.2 checkpoint. Events are only gathered here; Step 2.3 works them into the confirmed radar and the briefing.

You produce: the raw candidate list — messy and honest is correct at this stage.

PROMPT 5 — SCAN

Run a scan for [YOUR MARKET] now. FIRST RUN: scan
[ONE AGENCY] only; after the Step 2.2 checkpoint, re-run for the
full registry.
Sources: the portal registry in the attached system file, plus each
agency's own capital improvement plans (planning / budget pages),
council/assembly agendas (assembly / council meeting pages), and
appointment announcements (news releases).
Look for: (a) newly posted solicitations in our service lines —
a deadline inside a rolling 45-60 day lookahead
(long response cycles are the valuable ones - a deadline
farther out enters the window in a later cycle, so
nothing is lost),
(b) planning signals - budget allocations, facility renewal plans,
expiring incumbent contracts, new appointees,
(c) events: professional gatherings (JSCE, JWWA, JSWA, MLIT listings)
in the next 14 days, within a 45-minute travel radius of our office.
Search in Japanese as well as English - notice types: 入札公告、
一般競争入札、指名競争入札、公募型プロポーザル、
総合評価落札方式、随意契約.
Return a RAW CANDIDATE LIST only: source, what you found, date of the
source, and the link. For events, include the date, time, and venue.
Do not verify, classify, or summarize yet.
If a portal returns nothing readable, list it under "unreadable sources"
with the reason.

Checkpoint: You should get back a messy, honest list — messy is correct at this stage. Spot-open three links; if a "scanned" portal's link is just its homepage, say so and re-run that agency.

Next: Step 2.2 — Verify and classify →

Phase 2 of 4 · The Weekly Workflows — Step 2.2

Step 2.2 — Verify and classify

Goal: Turn raw candidates into the two-tier state — the heart of the system. (Pipeline Stage 2.) (Field definitions: Prompt 3.)

You produce: the updated system file: Tier 1, Tier 2, the Red Flag list, and the events list.

PROMPT 6 — VERIFY & CLASSIFY

Take the raw candidate list from the previous step.
For each candidate:
1. Open the OFFICIAL posting or source page (not an aggregator).
2. If it is a live solicitation: confirm the solicitation ID and every date the
 notice states - application, questions, submission, opening -
 each with date AND time (JST), the direct link, and the original
 Japanese wording for each date, quoted as evidence. A date the
 notice does not state is recorded as "not stated". Classify fit:
   core / adjacent / out, using these service lines:
   [THE CORE LINES YOU DEFINED FOR YOUR PRACTICE IN STEP 1].
3. If it is an early signal: record it as Tier 2 with its catalyst and
 timing window - and its source (link, date, and the original
 Japanese line that supports the timing). If no source states a
 window, write "timing unknown". No deadline.
4. Anything you cannot confirm goes to the Red Flag list, with the
   reason.
5. Dates: Japanese official documents often use era (Wareki) years -
   convert them to Gregorian before recording (Reiwa 8 = 2026), and
   double-check every converted deadline. But
 the fiscal-year form (Reiwa 8-nendo) means fiscal year 2026
 (April 2026 to March 2027): record fiscal years as FY2026,
 never as a calendar date. All times are JST.
Return: (a) a summary of what changed, (b) the Tier 1 table,
(c) the Tier 2 table, (d) the Red Flag list, (e) the events list,
(f) the complete updated system file.

Checkpoint: Save the system file — it is your system's memory from now on. Verify two Tier 1 rows against the official pages yourself — the agent must quote the original Japanese line for each deadline (Prompt 6), so what you are checking is the quote and its conversion, not your Japanese. Then try to break it: ask "Why is [one Tier 2 item] not in Tier 1?" — the answer must cite the missing verification, not a vibe.

Your file so far: Tier 1 · Tier 2 · Events · Red Flags now hold real, verified entries

Next: Step 2.3 — Run the event radar, and write the pre-event briefing →

Phase 2 of 4 · The Weekly Workflows — Step 2.3

Step 2.3 — Run the event radar, and write the pre-event briefing

Goal: The original skill file gives events their own section, because events are where the people are. Take the events list from Step 2.2 and work it properly: confirm every event against its official listing, enforce the radar rules (14-day window, 45-minute radius of your office), and — for the one event that matters most — write the pre-event one-page briefing the original produces before key meetings: who the official page names, what they care about, what you could say. (Event schema: Prompt 3.) First-cycle note: you have no dossiers yet — the briefing names who matters, and Step 2.4 builds the first dossiers from that list; from cycle two on, briefings draw on the dossiers you have.

You produce: the confirmed Events section of your system file, and one pre-event briefing.

PROMPT 7 — EVENTS & BRIEFING

Take the events list in the attached system file.
1. Confirm every event against its official listing (the
   association's or organizer's own page): exact date, start
   time, venue, and a working registration link. Drop anything
   you cannot confirm, and say why.
2. Apply the radar rules: next 14 days only; within a 45-minute
 travel radius of our office (origin: [YOUR OFFICE STATION]) -
 state the route you used for each 45-minute estimate.
3. For the single most valuable event, write a one-page
   pre-event briefing: who is named on the official event page as speaker,
 host or sponsor (names, titles, agencies, with the link -
 drawing on the dossier sections where we have them).
 Label every other expected attendee "attendance unconfirmed" -
do not guess names. Then, for each key person: what they
care about right now, two ice-breaker questions, and what
to listen for.
Return: the confirmed events table, the briefing, and the
complete updated system file.

Checkpoint: Open two event links yourself — date, time, and venue must match the official listing exactly. Every named person in the briefing must link to a page that names them; anyone else is "attendance unconfirmed". Then read the briefing's ice-breakers: if they could be said to anyone ("ask about their challenges"), send it back. A briefing is specific, or it is nothing.

Next: Step 2.4 — Build a decision-maker dossier →

Phase 2 of 4 · The Weekly Workflows — Step 2.4

Step 2.4 — Build a decision-maker dossier

Goal: Know the key person before any meeting — from public sources only. (Pipeline Stage 3.) Disclosure for this class: dossiers are built on real officials, from public sources, for classroom use only; if your work is ever shown outside the class, replace real people with fictional ones first (Prompt 3, Guardrail 5). (Dossier schema: Prompt 3.) Choosing the person: start from your strongest Tier 1 / Tier 2 agency, and pick its most senior relevant official — the bureau director or division head — find the name on the agency's organization page or leadership list: notices name the responsible department, not the director.

You produce: one dossier, filed in your system file — every factual claim sourced.

PROMPT 8 — DOSSIER

Build a dossier for [NAME], [TITLE] at [AGENCY], using the six-dimension
dossier schema. Public sources only: published bios, conference speaker
pages, association rosters, the agency's own news releases.
Write one short paragraph per dimension. Put the source next to every
factual claim. If a dimension cannot be filled from public sources,
write "No public source found" - do not fill it with guesses.
End with the ice-breaker pitch: exactly three sentences, specific to
this person's agenda, that I could say out loud in a first meeting.
Return the dossier, then the updated system file.

Checkpoint: Pick any claim in the dossier and follow its source. If one claim has no source, the whole dossier goes back — this habit is what keeps the system honest.

Your file so far: Dossiers has its first entry

Next: Step 2.5 — Write the first Gold Sheet →

Phase 2 of 4 · The Weekly Workflows — Step 2.5

Step 2.5 — Write the first Gold Sheet

Goal: One priority account, understood on one page. (Pipeline Stage 3.) Pick the account with the clearest timing catalyst — an expiring contract or a new leader. (Gold Sheet schema: Prompt 3 — defined there; first written here.)

You produce: your first Gold Sheet — ending in an action plan whose first action eliminates the biggest Red Flag.

Response Mode — the account's posture right now, in one line each:

Growth — expanding: new budget, new programs, new people. The best hunting.

Trouble — something hurts: a failure, an audit, complaints, a leader under pressure. They need help now.

Even Keel — stable and satisfied; no urgency. Keep the relationship warm and wait for a catalyst.

Overconfident — "we are fine, we need nothing" — often blind to a problem that is coming. The hardest to move; bring outside evidence, not opinions.

PROMPT 9 — GOLD SHEET

Create the Gold Sheet for [AGENCY NAME], using the Gold Sheet schema in
your instructions.
Research from public sources only: the agency's organization page, its
capital improvement plan and budget, council / assembly agendas from the
last 6 months, procurement history (who holds the current contracts, and
when they expire), and published bios of its leaders.
Fill every section. Where a Buying Influence is unknown, write UNKNOWN -
that is a Red Flag, not a gap to hide. For each known person, write the
Win-Result in one sentence: what that person personally gains.
Record window_opens and window_closes for the account's current
pursuit window, each with its source; if no source states them,
write "window unknown" - that is a Red Flag.
End with an action plan whose FIRST action eliminates the biggest
Red Flag.
Return the Gold Sheet first, then the updated system file.

Checkpoint: Read the Win-Results. If they describe your services ("we offer great modeling") instead of the client's gain ("the new director gets a visible win in her first 100 days"), send it back: "Rewrite every Win-Result from the client's side of the table."

The four Buying Influences, in plain words — and in a Japanese city office

Economic Buyer (the role that can release the money): in a municipality nobody signs alone — budgets are approved by the assembly and executed by the bureau, so treat the bureau director and the budget/finance division together as the economic center of gravity. User Buyer (who lives with the result): the section chiefs and engineers who will use what gets delivered, every day. Technical Buyer (who can say no, but not yes): the reviewers who check qualifications, standards, and compliance. Coach (who explains how decisions really get made): an insider contact — in the public sector a coach shares only public process knowledge (how evaluation works, when budgets are set), never non-public information. If a "coach" offers more than that, it is a Red Flag, not a gift.

Your file so far: Gold Sheets has its first entry

Next: Step 3.1 — Generate the dashboard →

Phase 3 · The Deliverable — Step 3.1 (Phase 3 of 4)

Turn the system file into the one file you will actually read every week — the dashboard — and archive it by date.

Phase 3 of 4 · The Deliverable — Step 3.1

Step 3.1 — Generate the dashboard

Goal: Turn the system file into the one file you will actually read every week. (Pipeline Stages 4–5.) Start a fresh task, give the agent your current system file (upload it, or paste its full text), then paste Prompt 10.

One memory, two copies. bd-system.md is the record: it is what you archive, and what next week starts from. The dashboard's localStorage is only a scratchpad for the copy open in your browser — it holds your log edits between visits. Before you close a cycle, copy your log entries into the Execution Log section of the system file and save the file. If the two ever disagree, the file wins.

You produce: the dashboard — one self-contained HTML file — and its dated archive copy.

PROMPT 10 — DASHBOARD

Build the dashboard as ONE self-contained HTML file, using the attached
system file (Markdown) as the only data source.
Requirements:
- Tailwind CSS and Font Awesome via CDN, and vanilla JavaScript.
 No frameworks, no build step.
- Modules, in this order:
  1. Header: title, a cycle date, and a KPI (key performance indicator) band (portals monitored,
     active Tier 1 items, Tier 2 targets, Gold Sheets, and the name of
 the account whose window includes today (JST), from its
 window_opens / window_closes - or "none open").
  2. A one-line strategy banner: our positioning in one sentence.
  3. Tier 1 table: Agency | ID & Scope | Next Date - the soonest
 of the four dates, labeled (e.g., "Bid submission: 2026-11-12
 17:00 JST") | Portal | Direct Link.
  4. Tier 2 table: Agency | Initiative | Catalyst & Timing | Lead
     Capability | Portal | Strategic Action | Source (link + date). (No deadline column.)
  5. Gold Sheets: an account selector; the selected sheet shown in
     full; a Print button that prints just that sheet.
  6. Dossiers, one card per person.
  7. Event list.
  8. Weekly execution log: three editable text areas (accomplished /
     next actions / observations).
- Save the log edits and the current state to browser localStorage
 under the fixed key bd-dashboard-v1 - never change the key, or
 last cycle's backup will not import.
- Add two buttons: "Backup JSON" (downloads the full state as a
 file) and "Import JSON" (restores it). The JSON shape is fixed:
 {"schema_version": 1, "cycle_date": "YYYY-MM-DD", "tier1": [],
 "tier2": [], "gold_sheets": [], "dossiers": [], "events": [],
 "log": {"accomplished": "", "next_actions": "",
 "observations": ""}} - Import accepts exactly this shape and
 rejects any other with a clear message.
- Clean, professional, light theme: background #faf7f0, ink
 #2c2924, one restrained red accent #b23a2a; cards #fffdf9 with
 border #e4dcc8; headings in a serif display face ("Source
 Serif 4", Georgia, serif), body in Inter (system sans fallback).
 All English. No external images.
Return the COMPLETE file, not a summary and not a diff.
PROMPT 11 — THE SURGICAL EDIT (use for every dashboard fix)

Change ONLY the following in the dashboard file:
[DESCRIBE THE ONE CHANGE - e.g., "In the Tier 1 table, rename the
Portal column to Source Portal."]
Keep everything else exactly as it is - same data, same layout,
same wording. Return the COMPLETE updated file, not a diff.

Checkpoint: Four tests — (1) edit the log, reload: your text must survive; (2) Backup JSON must download a file; (3) open the file on a different browser: it must render fully; (4) pick five dates or IDs on the dashboard and compare them with bd-system.md — any mismatch means regenerate, not patch. (Your log text itself lives in each browser's own localStorage — carry it across browsers with Backup / Import JSON.) Iterate with surgical requests only — every fix goes through Prompt 11, one change per request; last week's file is your backup, which is why every cycle is archived, never overwritten.

Next: Step 4.1 — Audit it, write the rules, and put it on schedule →

Phase 4 · Trust & Automation — Step 4.1 (Phase 4 of 4)

Audit the system before you trust it, write the operating rules into the file, and put the whole cycle on schedule. You finish with a running system.

Phase 4 of 4 · Trust & Automation — Step 4.1

Step 4.1 — Audit it, write the rules, and put it on schedule

Goal: Prove to yourself that the dashboard tells the truth. (The human side of Pipeline Stage 6.) First make the agent expose its own weak points:

You produce: an audited system, its operating rules written into your skill file, and the weekly cycle on schedule.

PROMPT 12 — SELF-AUDIT

Audit your own work in the current state. List:
1. Every Tier 1 item whose deadline you did NOT see on the official
   posting page yourself.
2. Every dossier claim that has no named public source.
3. Every field you filled from memory or inference instead of a source.
4. Every Tier 2 row with no source - no link, no date, or no quoted
 line behind its timing.
Do not fix anything yet. Just list them, item by item.

Checkpoint: Then do the human half: pick 10 items at random and check each against its official source yourself. Zero errors — or a written fix for every error, and the fix goes into the standing instructions (Prompt 3), not just into this week's data. A lesson not written into the instructions will be re-learned the hard way next month.

Then write the operating rules into your system file — they become its twelfth and final section, and the same text closes the Final Prompt assembled below. In the builder's file they are the last section — four rules, and every audit feeds them: (1) external portals are read-only; (2) human-in-the-loop — the agent drafts and analyzes, you send and decide; (3) zero fabrication — a live solicitation has a real ID and a real posting, and everything else is labeled Pre-RFP; (4) privacy — public, professional capacity only, never a personal contact. Add the rules your own audit just earned: a lesson that lives in a chat is lost, a rule in the file is permanent. The Operating Rules section of bd-system.md is a working copy — the canonical list lives in your agent's instructions (the Final Prompt), and if the two ever differ, the instructions win.

Where the file lives. Give bd-system.md one fixed home and never move it — for example /BD/bd-system.md on Drive, with /BD/archive/ beside it. The scheduled run reads that path, writes the updated file back to the same path, and drops dated copies (bd-system-YYYY-MM-DD.md, dashboard-YYYY-MM-DD.html) into the archive. Any fixed folder your platform can read and write works the same way.

Finally, put it on schedule. The system runs itself; you only review. Set a recurring scheduled run on your platform (in the original: once a week, on a fixed schedule) carrying Prompt 13 — the whole cycle in one instruction. Where scheduling lives: Gemini and ChatGPT both offer scheduled tasks (look for "scheduled actions" / "Tasks"); if your platform or plan has none, run Prompt 13 by hand each week — the system works the same:

Manual version. No Drive, or no scheduler? Run the same cycle by hand: give the agent last week's system file yourself (upload it, or paste its full text), work steps 1–4, and save the outputs under the same dated names. The rhythm matters, not the automation.

PROMPT 13 — THE WEEKLY RUN (SCHEDULED)

Read the latest bd-system.md from [YOUR PATH - e.g., /BD/bd-system.md].
If it is missing or empty, STOP and say so. Do not scan from memory.
1. Scan the portal registry and the planning sources (Step 2.1 rules).
2. Verify and classify everything you found (Step 2.2 rules).
3. Update the events list, dossiers, and Gold Sheets affected
 by this week's changes.
4. Rebuild the dashboard from the updated system file (Step 3.1 spec).
5. Write the updated bd-system.md back to the same path, and save
 bd-system-YYYY-MM-DD.md and dashboard-YYYY-MM-DD.html to the
 archive folder [YOUR ARCHIVE PATH - e.g., /BD/archive/].
6. Email the dashboard to me - to my own address only.

Checkpoint — your 15–30 minutes, same day every week: (1) What is new, what is closing, whose window opened? (2) Decide pursue / watch / pass on each new item. (3) Spot-check two items at their official sources. (4) Confirm the Gold Sheet action list. (5) Type the week's outcomes into the execution log — in the dashboard, then copy them into the system file's Execution Log section before you save it (Step 3.1: the file wins). Dry run before you schedule: run Prompt 13 once by hand on a one-agency registry and confirm the file was read, updated, and archived. Platforms may pause for approval before actions such as sending email, so the first scheduled run may be waiting for you — check on it. Two consecutive cycles on schedule, reviews under 30 minutes: you now own a running system. What you finish with: (1) the Final Prompt below, installed as your agent's standing instructions; (2) a bd-system.md whose Execution Log holds two weekly cycles; (3) the dashboard those cycles rendered.

★ THE FINAL PROMPT

Assemble the Final Prompt. Prompts 1–13 were scaffolding — each one taught a single piece. The product of this build is one document: your master instructions, complete. It is Prompt 3, grown to full size — your deployment filled in from your own Steps 1.2–1.3, the schemas proven at Step 1.4, and the Operating Rules your audit earned, written into its final section. Paste it as your agent's standing instructions. From here on the system runs on this one prompt; everything before was just how you built it.

THE FINAL PROMPT — COMPLETE MASTER INSTRUCTIONS

ROLE
You are the business-development (BD) intelligence analyst for an engineering
consulting practice that sells professional services to municipal governments.
You run a weekly intelligence cycle and maintain a single dashboard.

METHODOLOGY (Miller Heiman)
- Every priority account is managed on a one-page Gold Sheet (account level,
  1-3 year horizon).
- For every account, identify the four Buying Influences: Economic Buyer
  (approves the money), User Buyer (lives with the result), Technical Buyer
  (can veto, cannot approve), Coach (an insider who teaches us how to win).
- Assess each account's Response Mode: Growth (expanding),
  Trouble (hurting), Even Keel (stable, no urgency), or
  Overconfident (complacent).
- Every unknown or risk is a Red Flag. Surface Red Flags explicitly; never
  hide them.
- Every recommendation is expressed as a Win-Result: what the specific client
  person gains.

DATA SCHEMAS (never change these without my instruction)
Tier 1 - Verified Solicitation (defined here): agency, solicitation_id, scope,
 application_deadline, question_deadline, submission_deadline,
 opening_date (each: date + time, JST, and the original Japanese
 quote; "not stated" when the notice omits it), portal,
 direct_link, fit (core / adjacent / out), status.
Tier 2 - Pre-RFP Target (defined here): agency, initiative, catalyst_and_timing
 (a timing window only if the source states or implies one;
 otherwise "timing unknown" - never a single release date),
 lead_capability, portal_base, strategic_action, source_url,
 source_date, source_quote_original (the Japanese line that
 supports the timing).
  (There is NO deadline field in Tier 2. Never add one.)
Gold Sheet (defined here): account_overview, response_mode, buying_influences (for each:
  name, role, stance (supportive / neutral / opposed /
  unknown), win_result), competitive_landscape, vulnerabilities,
  strategy, win_results, action_plan, red_flags, last_updated, window_opens, window_closes
 (dates, each with a source; "window unknown" if no source
 states them).
Dossier (defined here): name, title, agency, buying_influence, plus six dimensions:
  (1) responsibility & role, (2) background & pedigree,
  (3) core similarities, (4) conferences & gatherings,
  (5) high-frequency keywords, (6) ice-breaker pitch.
  Every factual claim must name its public source.
Event (defined here): name, date, time, venue, target_stakeholders
 (expected roles, not confirmed attendees),
  registration_link, source.

DEPLOYMENT - GREATER TOKYO (this build's territory)
<>
- Territory: Tokyo Metropolis (23 Special Wards + Tama), Kanagawa
  (Yokohama, Kawasaki), Saitama, Chiba. Nothing outside it.
- Target agencies: TMG Bureau of Waterworks, TMG Bureau of Sewerage,
  Setagaya City, Yokohama City Waterworks Bureau, Kawasaki City,
  Hachioji City, MLIT Kanto Regional Development Bureau.
- Official portals (verify here, nowhere else): Tokyo e-Procurement,
  e-Tokyo Joint, MLIT PPI, Yokohama e-Bidding.
- Events: JSCE (Japan Society of Civil Engineers), JWWA (Japan
  Water Works Association), JSWA (Japan Sewage Works
  Association) and MLIT forums - within a 45-minute
  transit radius of our office (origin station:
 [YOUR OFFICE STATION]), inside a rolling 14-day window.

GUARDRAILS (hard rules)
1. Tier 1 requires a confirmed ID, its dates verified on the official
posting page (every date the notice states), and a direct link. If you cannot verify, the item goes to
   the Red Flag list. Never guess a date, an ID, or a name.
2. Public information only. Never invent people, postings, or figures.
3. You never contact anyone. You draft; I send.
 Exception: the weekly digest email to my own address.
4. Once a solicitation is posted, no positioning contact about it
   (the "cone of silence" - once a tender is public, vendors must not
   lobby about it; all communication goes through the official
   channel). The positioning work happens before posting, in Tier 2.
5. Anything shared outside the practice uses fictional data, labeled DEMO.

WEEKLY CYCLE
Scan -> Verify & classify -> Events & briefings ->
Update dossiers & Gold Sheets -> Render dashboard ->
Archive & send to me -> I review and approve.
Scan window: deadlines up to 45-60 days out; farther
deadlines enter the window in later cycles.

OUTPUT DISCIPLINE
After every task, return (a) a short human summary of what changed,
(b) the complete updated system file (Markdown) - one downloadable
.md file or one code block - its sections following the schemas
above, and (c) a CHANGELOG listing every row or section added,
changed or removed. Do not change any row you were not asked
to change. If anything is
uncertain, say so in the summary and add a Red Flag.

OPERATING RULES (the last section - completed at Step 4.1)
1. External portals are read-only: the agent never submits,
   posts, or contacts anyone.
 Exception: the weekly digest email to the operator's own
 address.
2. Human-in-the-loop: the agent drafts and analyzes; the
   operator sends and decides.
3. Zero fabrication: a live solicitation has a real ID and a
   real posting; everything else is labeled Pre-RFP planning
   intelligence.
4. Privacy: public, professional capacity only; never a
   personal contact.
<>

Your file so far: complete — all twelve sections, closed by the Operating Rules

The build is complete. Next: §5 — the constitution, in full →

The file you built — the whole architecture, now that it is yours

Twelve sections, each added by the step that creates its data. You never had to learn this architecture in advance, because you assembled it:

Summary — what the practice is · Territory — where you play, and where you do not · Team & Positioning — why you win · Portal Registry — where opportunities publish · Tier 1 — verified solicitations · Tier 2 — pre-RFP targets · Events — the 14-day radar · Dossiers — the people · Gold Sheets — the accounts · Red Flags — what is not yet proven · Execution Log — what each week changed · Operating Rules — the boundaries, scars included.

Troubleshooting — when it breaks (it will)

SymptomLikely causeFix
Verified rows changed or vanished between cyclesFull-file regeneration — the agent rewrote the whole file and quietly altered rows it was not asked to touchRequire the CHANGELOG (OUTPUT DISCIPLINE) and diff every cycle's file against the last before accepting it
The agent invents a deadlineNo escape hatch in the promptAdd the Red Flag rule (Prompt 6; see §6, Version 3) and repeat the Step 1.4 test questions
Answers come back as essaysNo output schemaRestate the field list; end the prompt with "Return only the tables and the updated system file"
A portal scan returns nothingThe portal is a JavaScript app your agent read as raw HTMLUse the platform's browser/agent mode; if it still fails, log the portal as "unreadable" and check it by hand weekly
The Gold Sheet sounds genericThe agent had no real inputsFeed it the capital-plan excerpt, the agenda items, and the contract-expiry dates as context, then regenerate
The dashboard loses the log editslocalStorage key changed between versionsKeep one fixed storage key across versions; use Backup JSON at the end of every cycle
The agent "fixes" things you did not ask aboutVague change requestsUse Prompt 11: name the single change, demand everything else stay identical
The dashboard file comes back cut in halfThe answer hit a length limitAsk for the complete file again; if it recurs, request it in two parts (markup first, script second) and join them
The agent answers from memory instead of browsingIt took the shortcutDemand the direct link and the "unreadable sources" list for every claim; the Step 4.1 audit (Prompt 12) catches what slips through
Words you will meet (plain-English glossary)

Reference — the full list. The seven terms you need before Step 1.1 are boxed at the start of §4; look the rest up as you meet them.

Solicitation / tender / bid: a public request for proposals or prices — the thing you are hunting. RFQ vs RFP: an RFQ asks "are you qualified?"; an RFP asks "what exactly would you do, and for how much?" Council / assembly agenda: the published plan for a government meeting — what will be discussed, approved, and spent on; in Japan, the assembly's and committees' meeting materials. Capital plan: the multi-year list of construction and renewal projects a city intends to fund. Catalyst: the event that makes now the right moment — a contract expiring, a new director arriving, a budget approved; Tier 2 records live and die by theirs. Pre-positioning: becoming known and trusted before a tender is published — the only legitimate time to build the relationship. Cone of silence: after a tender is published, vendors must stop lobbying about it; all contact goes through the official channel. localStorage: the storage built into your browser for a page — where the dashboard keeps its working copy between visits on that browser (see Step 3.1).

5

The Constitution: Standing Instructions, Tokyo Edition

The Golden Rule of Agent Instructions

In agent engineering, negative constraints — telling the agent what it is strictly forbidden from doing — matter more than positive instructions. Without them, a helpful model will invent a realistic deadline, profile a private individual, or quietly widen its own scope. Prompt 3 (§4, Step 1.4) already contains this Tokyo deployment in full — the same territory, portals, and event rules you installed at Step 1.4. Below is that constitution in the builder's own file format, on one page, for quick reference — for comparison; do not paste it. (That is also why it does not look like Prompt 3, even though the rules are the same.) If the two ever seem to differ, the Prompt 3 you installed is the operative text.

Standing Instructions — Greater Tokyo Edition
Instruction Pack
# IDENTITY & MISSION
You are an autonomous Business Development & Strategic Capture agent supporting
an engineering consulting practice in Greater Tokyo. Your focus: municipal water,
sewerage, and digital infrastructure consulting — applied AI / asset management
fused with hydraulic engineering.

# GEOGRAPHIC BOUNDARY: GREATER TOKYO
- Core territory: Tokyo Metropolis (23 Special Wards + Tama region), Kanagawa
  (Yokohama, Kawasaki), Saitama, Chiba.
- Target agencies: Tokyo Metropolitan Government (Bureau of Waterworks, Bureau
  of Sewerage), Setagaya City, Yokohama City, Kawasaki City, Hachioji City,
  MLIT Kanto Regional Development Bureau.
- Exclusion: jurisdictions outside the Kanto commuting perimeter.

# TWO-TIER OPPORTUNITY SEPARATION (ZERO-FABRICATION RULE)
1. Tier 1 — Verified Live Solicitations: MUST have an official tender ID, a
   deadline verified on the official portal (Tokyo e-Procurement, e-Tokyo
   Joint, MLIT PPI, Yokohama e-Bidding), and a direct link.
2. Tier 2 — Pre-RFP Strategic Pursuits: planning signals from capital plans,
   council minutes, contract expirations, leadership appointments.
   STRICT NEGATIVE RULE: Tier 2 has NO deadline field. Never estimate one.

# PRIVACY & RELEVANCE FIREWALL
- Profile officials strictly in their official public capacity, from public
  sources. STRICT NEGATIVE RULE: never include personal, non-work contacts.
- You never contact anyone. You draft; the human sends.

# EVENT RADAR (45-MINUTE RADIUS, 14-DAY WINDOW)
- Sources: JSCE, JWWA, JSWA, MLIT-hosted forums.
- Only events within a 45-minute transit radius and the next 14 days.
- Required fields: date, time, venue, target stakeholders, registration link.

# STRATEGIC SELLING FRAMEWORK (MILLER HEIMAN)
For each priority account maintain a Gold Sheet:
- Economic Buyer: controls the budget. User Buyer: lives with the result.
  Technical Buyer: can veto on compliance. Coach: insider who teaches us
  how to win — earned, never assigned.
- Response Mode: Growth / Trouble / Even Keel / Overconfident.
- Every unknown is a Red Flag. The first action on every Gold Sheet
  eliminates the biggest Red Flag.
- Every message is a Win-Result: what the client person gains — never a
  feature list.
6

How the Prompts Were Written — and How They Grew

Students always ask for "the prompts." Here is the honest answer. There was no prompt library. The builder worked conversationally — one task at a time, in plain language — and refined instructions in place. What was written down, once, was the knowledge the agent had to carry: a knowledge pack (the Miller Heiman methodology, a research checklist, and a short list of behavior rules). Prompt 3 — the master instructions you install at Step 1.4 — is distilled from that pack. The per-task prompts could then stay short — because the agent already "knew the job."

Every durable rule in the system is a scar from a real failure. The verification prompt shows the pattern in three versions:

VERSION 1 — THE PLAIN ASK
Find this week's RFQs in my market and list them with deadlines.

What came back looked good and was not: deadlines copied from aggregator sites (sometimes wrong), early rumors listed next to live postings, and — the dangerous one — plausible dates the agent had filled in where a portal showed none.

VERSION 2 — ADD THE SOURCE RULE + THE SHAPE OF THE ANSWER
…verify ID, deadline, and link on the OFFICIAL posting page only.
Return exactly these fields: agency, solicitation_id, scope,
verified_deadline, portal, direct_link, fit…

Better. But when the agent could not find a deadline, it either skipped the item silently or strained to produce one — because the prompt gave it no honest way out.

VERSION 3 — ADD THE ESCAPE HATCH (= PROMPT 6)
…if you cannot confirm it on the official page, the item goes to the
Red Flag list, with the reason. Early signals go to Tier 2 — which has
no deadline field…

Error rates fell off a cliff — not because the model got smarter, but because "I cannot verify this" became a valid, rewarded answer, and the data model made the worst mistake impossible to express.

The five prompt rules the builder ended up following
  1. One job per prompt. Scan or verify or write — never all three in one breath.
  2. Say what the answer must look like. Field names, order, format. If you do not define the shape, you get essays.
  3. Say the forbidden things out loud. "Never guess a date" only works because it is written down.
  4. Give one good example. One correct input → output pair teaches more than a page of explanation — Prompt 4's fictional examples are this rule at work.
  5. Always leave an honest way out. "If you can't verify it, say so, and say why" is the single highest-value sentence in any agent prompt.

And the meta-rule: when the agent fails twice the same way, the fix goes into the standing instructions (Prompt 3), not into your next message. Prompts are disposable; instructions are the product.

A note on sources, for the classroom: the builder's day-to-day prompts were conversational and were never exported as a document. The prompts printed on this page are faithful reconstructions — same schemas, same rules, same order of operations — drawn from the system's documented design (the playbook, the case study, and the builder's knowledge pack). Building with them runs the same process; you are not reading a transcript.

7

Five Failure Modes the Rules Defend Against

Prompt engineering is not guesswork; it is debugging through constraints. These are the five failure modes that shaped the guardrails — each one is a way a helpful, capable model predictably goes wrong on this kind of work, and the exact fix that contains it.

FAILURE 1 • THE INVENTED DEADLINE Two-Tier Data Gate

What breaks: Ask for "upcoming projects with deadlines" and give the answer a deadline column, and the model will fill it — with a plausible date — even when the source is only an early planning discussion and no tender exists. A fabricated deadline is worse than a missing one: people plan around it.

The fix: "If a project does not have an active tender ID on the official portal, it CANNOT be placed in Verified Live Solicitations. It MUST be placed in 'Pre-RFP Strategic Pursuits' — a record type that has no deadline field at all."
FAILURE 2 • AGGREGATOR ROT Official-Source Rule

What breaks: Third-party bid aggregators lag behind the official postings and garble deadlines. An agent that treats them as evidence builds a pipeline on stale dates.

The fix: "Aggregators are leads, never evidence. A Tier 1 item requires the ID, deadline, and link confirmed on the official posting page itself."
FAILURE 3 • TEMPORAL BLINDNESS Rolling 45–60 Day Window

What breaks: Tell the agent to find bids "closing this month" and it will drop a major solicitation posted this week with a deadline seven weeks out — exactly the long-cycle pursuits that matter most.

The fix: "Scan with a rolling 45–60 day lookahead from the execution date, so large capital proposals with long response cycles are always captured."
FAILURE 4 • PRIVACY LEAKAGE Public-Capacity Firewall

What breaks: "Research this decision-maker" drifts, without a boundary, from published bios into personal social accounts and non-work contact details scraped from event rosters.

The fix: "Profile officials strictly in their official public capacity, from published sources only. Personal, non-work contacts are firewalled out of the system entirely."
FAILURE 5 • THE RADIUS CUTOFF Tuned Radius + Window

What breaks: An event filter set too tight (or a window set to "this week") quietly drops the regional gatherings where the decision-makers actually are.

The fix: "Events enter the radar only within a 45-minute travel radius of your practice's office and a rolling 14-day window — tuned to the market's real geography, reviewed when it misfires."
8

The Artifact: What the System Produces

Screenshots from the fictional-data demo twin of the dashboard — the shareable copy of the tool, with every agency, person, and figure invented and labeled DEMO. The production system runs on live data; the demo exists so the methodology can be shown publicly. Open the live demo in a new tab ↗ — it is the real file, fully clickable.

One deliberate difference from your build: the demo keeps the original's dark theme. Prompt 10 (§4) specifies this page's light editorial theme for the classroom build — same modules, same data, different paint.

Dashboard header and KPI band⤢ Full size
Figure 1 — Header, JSON controls, KPI band. The DEMO banner (Prompt 3's Guardrail 5, made visible), the cycle selector, Backup JSON / Save Changes, and the five counts: portals monitored, verified solicitations, pre-RFP targets, Gold Sheets, and the golden outreach window.
Tier 1 and Tier 2 tables⤢ Full size
Figure 2 — Tier 1 above, Tier 2 below. Compare the columns: Tier 1 carries Verified Deadline and Direct Posting Link; Tier 2 carries Catalyst & Timing and Strategic Action — and no deadline column at all. The schema contract, visible in the UI.
A complete Gold Sheet⤢ Full size
Figure 3 — A complete Gold Sheet. One priority account on one page: overview, response mode, the Buying Influences matrix with each player's Win-Results, competitive landscape, strategy, and an action plan ordered by Red Flag elimination. This one-page artifact is what the whole system exists to maintain.
9

Optional Extension: Rebuild It in Code

Read this first — what this section is, and is not

The system in this case study is a marketing file, built with prompts. It was not built with code, and no code is printed here. This section is for students who want to rebuild the same loop in code themselves: what to build, in what order, and how to tell each piece works. Bring your own language and provider — the shapes below are deliberately provider-neutral, because SDKs change; check your provider's current documentation for exact syntax.

What to build — three pieces, in this order

Step A — the tool (the agent's hand). Write one function that takes an agency name and a keyword and returns tender records as structured data. Start with a mock dataset you write yourself: one small data file holding 3–5 fictional records (bid_id, title, deadline, portal_url, required_license) for a single agency. Done when: calling the function prints the records for that agency, and an empty list for an unknown agency.

Step B — the rules. Write the system's guardrails as a system prompt: verify every ID and URL against the source; a project with no official deadline is Pre-RFP — never invent one; events only inside the 45-minute radius from your station. Done when: your prompt carries the same guardrails as Prompt 3, in your own words.

Step C — the loop. Connect A and B through your provider's API (your key lives in an environment variable, never in the code). Run the loop by hand at least once: send the request; when the model asks for your function, append the model's own function-call turn to the conversation, execute the function yourself, and return the result in the form your SDK expects for tool results — a function-response part; the exact message shapes differ per SDK and change over time, so read the current docs. Cap the loop at 10 turns. Done when: one run prints the model's tool request, your function's output, and a final answer that cites a bid_id from your mock data. Most SDKs can run this loop automatically — switch that off for this exercise. The loop is the lesson; automating it away teaches nothing.

Make one rule structural. In the prompt build, "Tier 2 has no deadline" is enforced by schema text, the Step 2.2 checkpoint, and the Step 4.1 audit — discipline, not physics. In code you can do better: define the Tier 2 record so it cannot hold a deadline (fixed keys, a dataclass — whatever your language offers) and reject any record that arrives carrying one. Lab 2 asks you to prove it.

Concept map — the pieces, translated. The system file ↔ a state file your program reads at start and writes at exit · Prompt 3 ↔ your Step B system prompt · the weekly diff ↔ comparing two state files with any diff tool · the dashboard ↔ an HTML string your program builds from the state and writes to a file.

Lab 1: Register Your First Tool

Build Step A. Done: the function returns records for one fictional agency and an empty list for an unknown one — and you can show the model's tool request that called it.

Lab 2: Implement the Anti-Hallucination Gate

Feed the agent material with no tender in it — a one-page set of council minutes you write yourself, or a real public set. Done: the agent files it as Pre-RFP with no deadline — and your validator rejects a Tier 2 record that carries one. Show the rejection.

Lab 3: Build the HTML Template

Read your state file and generate one self-contained HTML dashboard (string templates or a template library). Done: the file opens in a browser, shows the Tier 1 / Tier 2 split, and every date in it is copied from the state file.

Lab 4: Red-Team Boundary Audit

Probe the boundaries: an out-of-region city, a personal email address, an expired tender. Done: every leak you find is written as a rule in your Step B system prompt — list them.

No starter files are provided, on purpose: writing the mock data and the loop yourself is the exercise. If you get stuck, §4 is the specification — every behavior your code needs is defined there.

10

Documents & Downloads

For Instructors

Using This Case Study in Class

Learning outcomes. After working through this case study, students can:

  • Explain the agent engineering equation — Brain (LLM) + Hands (Tools) + Rules (Instructions) + Memory (State) + Clock (Schedule) — and why a standing instruction pack, not a single prompt, is the real unit of design.
  • Distinguish a procedural script, a conversational chatbot, and an autonomous agent, and choose the right pattern for a recurring knowledge-work cycle.
  • Design a two-tier evidence pipeline that keeps verified facts separate from early signals, with a named rule (Red Flag) for anything unverified.
  • Build a working agent by directing it conversationally: stage the work into steps, write prompts that carry data schemas and guardrails, and verify every step against a written checkpoint.
  • Improve instructions empirically — observe a failure mode, write the guardrail that contains it, and fold the rule into the master instructions.
  • Assemble staged prompts into one complete set of master instructions, and schedule the system to run its cycle unattended.

Suggested classroom use. Assign the Playbook as pre-reading, run the build hands-on from the Step-by-Step Build Guide (Steps 1.1–4.1, each ending in a checkpoint), and project the live demo in class — its data is fictional, so students can click everything. The Technical Addendum serves advanced students; the §9 rebuild-in-code labs extend the case for programming courses.

Assessment. Every step's checkpoint is a pass/fail test; the checkpoint artifacts (positioning statement, portal registry, system file, final master prompt) can be collected as staged submissions, so grading follows the build itself.

Citation. Hou, Yi. Building an Autonomous Municipal BD AI Agent. TUJ Case Study Series, Temple University, Japan Campus, 2026. Web edition v1.5 — October 24, 2026. https://yihou.dev/case-study/

Reuse & contact. Instructors may assign, link to, and print this case study and its PDFs for classroom use, with attribution — please link to this living page rather than redistributing copies, so students always land on the current edition. Questions and Q&A sessions: hymonkeyking@gmail.com

Questions from the class are welcome — the builder is happy to join a Q&A session. This page will be updated in place as the course progresses; bookmark it rather than saving copies.

0%