Lead-to-Account Association Engine
BlueprintBuildDesign and deploy a complete lead-to-account matching configuration. Architect discovers your current Lead and Account schema, generates bounded specs for match scoring fields, domain-based matching rules, and permission sets — then deploys through sandbox verification.
The Prompt
We need to build out our lead-to-account matching from scratch. Current state: leads come in, nobody knows which account they belong to. Goal: custom fields for domain matching, scoring rules, and permission sets — deployed safely through sandbox first. Use the Architect blueprint for L2A association. Deploy to our dev sandbox, verify, then promote to production.
Bounded AI Output, Not Open-Ended Generation
Architect doesn't just "ask AI to design your org." It discovers your current state, generates bounded specs within enforced safety limits (max fields, max rules), and requires approval tokens before any deployment. Every proposal gets a SHA-256 hash — change the spec and the token invalidates.
How Architect Handles This
Discover Schema
Query Lead, Account, and Contact objects. Pull existing custom fields, field counts, and current matching config.
Generate Bounded Specs
AI generates custom fields, validation rules, and permission sets — within safety limits (max fields, max rules enforced).
Review Proposal
PROPOSAL.md with full spec: fields, rules, permissions. Proposal hash locks the spec for approval.
Deploy Sandbox
Approval token required. Metadata pack planned and applied to sandbox org.
Verify
Scouts re-run against sandbox to confirm all fields present, permissions assigned, no drift.
Deploy Production
Second approval token. Same metadata pack applied to production org with receipt.
"Need to build L2A matching from scratch. Let me initialize an Architect project and discover the current org state first."
"Discovery shows 8 custom Lead fields and 5 custom Account fields. No existing L2A matching config detected. Safe to propose new fields."
Proposal includes bounded specs
L2A Association Engine deployed. 4 fields, 2 rules, 1 permission set. Sandbox verified. Production receipted.
Output Artifacts
CRM Changes
- 4 custom fields — Domain, Match Score, Matched Account (Lead + Account)
- 2 validation rules — Business email required, domain format check
- 1 permission set — L2A_Admin with full CRUD on matching fields
Local Artifacts
- PROPOSAL.md — Full spec with rationale and safety analysis
- metadata_pack/ — SFDX-format fields, rules, and permission set XML
- deploy receipts — Before/after evidence for sandbox and production
Cross-CRM: Available for both Salesforce (Lead ↔ Account) and HubSpot (contacts ↔ companies). Use --variant hubspot at init.
Results
Try This Blueprint
Start a free trial and run the L2A Association Engine on your own org.