309 lines
17 KiB
Markdown
309 lines
17 KiB
Markdown
# Design: SquareMCP — Chat-First AI Business Communications Manager
|
||
|
||
Generated by /office-hours on 2026-05-13
|
||
Branch: main
|
||
Repo: garfield/hermes-mcp
|
||
Status: APPROVED
|
||
Mode: Startup
|
||
|
||
## Problem Statement
|
||
|
||
Non-technical business professionals (mortgage brokers, publishers, real estate agents,
|
||
coaches) spend 3-5+ hours per week manually copying and pasting content across social
|
||
media platforms. They lose leads from slow follow-up, post inconsistently, and remain
|
||
invisible online — not because they don't care, but because the current tools (Buffer,
|
||
Hootsuite) require them to think like marketers, not business owners.
|
||
|
||
**Updated 2026-05-13 — from first user interview (mortgage broker):**
|
||
The pain is not just time. It's effectiveness. He said: *"I send out lots of emails and
|
||
social media, it burns my time, and I get little response."* The content isn't converting.
|
||
He also wants to monitor his email and have AI respond with appropriate answers/questions.
|
||
|
||
The real product is a full communications loop — not just outbound scheduling:
|
||
- **Outbound:** AI drafts platform-optimized content (text + video), user approves, posts
|
||
- **Inbound:** AI monitors email, reads incoming responses, drafts appropriate replies for approval
|
||
- **Effectiveness layer:** AI understands what drives mortgage leads and writes content
|
||
that actually gets responses — not just content that gets posted
|
||
|
||
SquareMCP is positioned as the managed infrastructure layer that gives AI agents
|
||
authenticated access to those platforms. The wedge: a chat-first interface where a
|
||
business owner talks to Claude about their work, and Claude drafts, adapts, and publishes
|
||
on their behalf — with a human approval step before posting, and the ability to unlock
|
||
autonomous posting as trust builds.
|
||
|
||
## Demand Evidence
|
||
|
||
- Founder uses it personally
|
||
- Two named business owners ready to start the moment they get a sign-up link:
|
||
- A mortgage broker / agent — loses deals from slow lead follow-up, wastes hours on
|
||
manual posting, invisible online from inconsistent presence
|
||
- A book and magazine publisher — same manual posting pain, different content type
|
||
- Both were waiting on multi-tenant SaaS completion (shipped 2026-05-12)
|
||
|
||
**User interview — mortgage broker call, 2026-05-13:**
|
||
Direct quote paraphrased: *"I send out lots of emails and social media, it burns my time,
|
||
and I get little response. I want a way to push out information and videos and monitor my
|
||
email and respond with appropriate answers and questions."*
|
||
|
||
Key signals from this call:
|
||
1. **"Gets little response"** — the problem is effectiveness, not just time. Current content isn't converting to leads.
|
||
2. **"Videos"** — video is a first-class content need, not an edge case
|
||
3. **"Monitor email and respond"** — inbound email management is as important as outbound posting
|
||
This is the first real user interview. All three points should drive v1 scope.
|
||
|
||
## Status Quo
|
||
|
||
Both prospective users manually log in to each platform and post one at a time.
|
||
No scheduling tools, no AI, no templates. Estimated 3-5 hours/week wasted.
|
||
This is a "no education needed to sell" pain — they already know what they're losing.
|
||
|
||
## Target User & Narrowest Wedge
|
||
|
||
**Target user:** Mortgage broker or independent financial professional.
|
||
- Gets promoted: consistent brand presence + fast lead follow-up = more referrals, more deals
|
||
- Gets fired: slow response + invisible online = leads going to a competitor who shows up
|
||
- Content needs: listings, rate updates, educational finance posts, client testimonials,
|
||
market commentary — all compliant with NMLS/financial disclosure requirements
|
||
|
||
**Narrowest wedge:** A mortgage broker creates one week of approved content in under
|
||
15 minutes. Success metric: they say "I'd pay $99/month for this."
|
||
|
||
## Constraints
|
||
|
||
- Multi-tenant **auth** is working (app.squaremcp.com — signup/login/JWT/API key/per-customer Redis credentials).
|
||
Note: MCP session → customer **tool dispatch** threading is not complete; tool calls still use
|
||
single-user env vars. At launch, each customer maps 1:1 to a dedicated env var set (single-tenant
|
||
mode). True multi-user concurrent dispatch is a follow-on sprint.
|
||
- All 10+ platform integrations exist in the codebase (LinkedIn, Facebook, Instagram, Email confirmed working)
|
||
- MicroK8s single-node — scale to ~100 users before infra changes needed
|
||
- TikTok app review pending — not available for launch integrations
|
||
- Email password reset not yet wired to SMTP — affects onboarding flow
|
||
- MCP session → customer threading not fully complete — tool calls still use single-user env vars
|
||
|
||
## Premises
|
||
|
||
1. The real wedge is NOT "MCP gateway for developers." The MCP infrastructure is
|
||
the engine, not the product. The product is "tell Claude what you do, and it
|
||
manages your business communications."
|
||
|
||
2. Real competitors are Buffer/Hootsuite and hours of manual posting — not Kong or
|
||
Composio. Beat them with AI content generation + draft+approve workflow → trust
|
||
ladder toward autonomous posting as users get comfortable.
|
||
|
||
3. Distribution is the critical unsolved problem. Non-technical users search "AI
|
||
social media assistant" or "AI for mortgage professionals" — not "MCP gateway."
|
||
The marketing site and SEO must reflect the end-user value, not the infrastructure.
|
||
|
||
## Cross-Model Perspective
|
||
|
||
Codex (gpt-5.5) reviewed this cold and said:
|
||
|
||
**Steelman:** "SquareMCP is strongest as an AI operator for small business outreach,
|
||
starting with social posting and lead follow-up for relationship-driven professionals.
|
||
The product is not 'connect your tools to agents'; it is 'tell Claude what kind of
|
||
business you run, connect your accounts, and it drafts, posts, replies, and follows up
|
||
across channels with your approval.'"
|
||
|
||
**Key reveal:** "The most revealing answer is that both users manually post to each
|
||
platform individually — hours of copy-paste per week. That says the first product should
|
||
be a dead-simple workflow replacement for a painful, repeated, already-understood job."
|
||
|
||
**Challenged premise:** Codex challenged whether "AI agency" might be too abstract for
|
||
first users. The winning wedge might be AI-assisted batching with approval, not autonomous
|
||
management. Founder resolved this by choosing both: start with draft+approve, unlock
|
||
autonomous posting incrementally.
|
||
|
||
**48-hour prototype suggestion:** Mortgage broker-only vertical, LinkedIn + Facebook +
|
||
Instagram + Email, onboarding form with business profile, "Create weekly content plan"
|
||
button, approval queue, schedule or manual publish. Success metric: one week of content
|
||
in under 15 minutes, user says they'd pay $99/month.
|
||
|
||
## Approaches Considered
|
||
|
||
### Approach A: Vertical-First MVP (Mortgage Broker)
|
||
- Structured UI: business profile form → "Generate weekly content" → approval queue → publish
|
||
- LinkedIn + Facebook + Instagram + Email only
|
||
- No MCP branding
|
||
- Ships in 3-5 days
|
||
- Risk: Low (backend done, just new SPA workflow)
|
||
|
||
### Approach B: Horizontal Platform + Vertical Templates
|
||
- Universal onboarding with vertical selection (mortgage broker, publisher, real estate, coach)
|
||
- Each vertical pre-loads content strategy, tone, platform mix, compliance disclaimers
|
||
- Universal UI, vertical-specific configs
|
||
- 1.5-2 weeks
|
||
- Risk: Medium (premature before first vertical is proven)
|
||
|
||
### Approach C: Chat-First Interface (Chosen)
|
||
- Chat window is the primary interface: "Write me a LinkedIn post about today's rate drop"
|
||
- Claude drafts; user edits and approves with one click; posts to configured platforms
|
||
- Guided onboarding solves blank-canvas problem: suggested prompts, vertical templates
|
||
- Trust ladder: draft+approve → scheduled → autonomous
|
||
- Vertical learning: system accumulates context about user's business, tone, audience
|
||
|
||
## Recommended Approach
|
||
|
||
**Approach C with guided onboarding → evolves into B.**
|
||
|
||
Chat-first interface with:
|
||
1. **Guided onboarding:** Business profile setup (vertical, tone, platforms, compliance notes).
|
||
First session walks user through 3-5 suggested first prompts. No blank canvas.
|
||
2. **Vertical-aware prompts:** System knows "this is a mortgage broker" and surfaces
|
||
contextual suggestions ("Rate update," "New listing," "Market commentary," "Testimonial
|
||
request") as prompt chips in the chat UI.
|
||
3. **Draft + approve step:** Every post is a draft first. One-click "Approve & post" or
|
||
"Approve & schedule." Autonomous mode is an unlock after 10+ approved posts.
|
||
4. **Platform-aware adaptation:** One input → Claude generates per-platform variants
|
||
(LinkedIn long-form, Facebook friendly, Instagram caption + hashtags, email nurture).
|
||
5. **Vertical learning:** System accumulates approved content as examples. Future drafts
|
||
improve based on what the user kept vs. edited. Storage: a `user_content_examples` table
|
||
(user_id, platform, prompt_input, approved_output, created_at). At draft time, the 3 most
|
||
recent approved posts for that platform are injected into Claude's system prompt as "examples
|
||
of this user's approved style." No vector store needed for v1.
|
||
|
||
**Why C over A:** The chat interface is the actual differentiation vs. Buffer/Hootsuite.
|
||
A structured form UI is Buffer with AI behind it. The chat interface with guided prompts
|
||
is a new product category: "talk to your business communications manager."
|
||
|
||
The blank-canvas risk is solved by onboarding design, not by adding a form. Suggested
|
||
prompts + vertical context give new users immediate direction. "Chat-first" and "guided"
|
||
are compatible: structure comes from vertical-aware prompt chips, not form fields. The
|
||
mortgage broker sees 5 chips on first login: "Rate update post," "New listing announcement,"
|
||
"Client testimonial request," "Market commentary," "Refinance education." They tap one or
|
||
type freely. No blank canvas.
|
||
|
||
**Platform specs for content generation:**
|
||
|
||
| Platform | Target length | Format | API constraint |
|
||
|-----------|------------------|--------------------------------------|---------------------------------------|
|
||
| LinkedIn | 800–1300 chars | Paragraphs, optional bullet list | Text only for initial post |
|
||
| Facebook | 150–400 chars | Conversational, 1-2 sentences | Text + optional image URL |
|
||
| Instagram | 138–150 chars | Caption + 5-10 hashtags | **Requires media.** v1 scope: user pastes image URL in the chat. Claude generates caption only; user provides the image. No auto-media generation. |
|
||
| Email | 200–400 chars | Subject line + 3-4 sentence body | SMTP via imap.ts/smtp.ts (email posting works independently of the password-reset SMTP gap) |
|
||
|
||
Generation pipeline: all platform variants are generated async when the user submits a prompt
|
||
(before approval). Results are stored in a `drafts` table (user_id, session_id, platform,
|
||
draft_text, status: pending/approved/rejected). The approval UI shows pre-generated drafts
|
||
instantly. If one platform generation fails, that draft shows an error state and the user can
|
||
regenerate it individually — other platform drafts are unaffected.
|
||
|
||
**Autonomous mode unlock:** After 10 cumulative approved posts, the user's settings page shows
|
||
a toggle: "Auto-post approved content." The approved_post_count is tracked in the `users` table.
|
||
When enabled, Claude posts immediately on generation via a background job (cron-triggered or
|
||
queue-based — existing MicroK8s infra can handle a simple setTimeout/setInterval worker for v1).
|
||
The toggle is off by default and can be disabled at any time; posts already queued when disabled
|
||
are cancelled. Users see a confirmation when toggling on ("Your posts will publish automatically
|
||
without review").
|
||
|
||
**NMLS compliance:** For mortgage broker users, the system prompt includes: "Always append the
|
||
user's NMLS disclaimer to any post containing rate, loan, or financial advice content. The user's
|
||
NMLS number and required disclosure are stored in their business profile." User configures
|
||
their disclosure text during onboarding. System does not post content without it for this vertical.
|
||
|
||
## Open Questions
|
||
|
||
1. **Publisher vertical:** What platforms matter most for a book/magazine publisher?
|
||
LinkedIn + Instagram? Email newsletter? TikTok? This shapes the second vertical config.
|
||
Ask the publisher directly before building vertical #2.
|
||
|
||
2. **Pricing:** $99/month works for the mortgage broker hypothesis. Does the publisher have
|
||
different willingness to pay? B2B vs. B2C publisher changes the pricing conversation.
|
||
Validate with the pilot user before setting a price.
|
||
|
||
3. **Approval UX on mobile:** Mortgage brokers are often on their phones. Does the
|
||
approval flow work on mobile? app.squaremcp.com is currently a desktop-first SPA.
|
||
At minimum, the approval page should be responsive before launch.
|
||
|
||
4. **Content calendar view:** Out of scope for v1. A list view of scheduled/posted content
|
||
is sufficient at launch. Calendar view is a v2 feature once users are posting regularly.
|
||
|
||
## Success Criteria
|
||
|
||
- Mortgage broker creates and approves one week of content in under 15 minutes on first session
|
||
- Publisher does the same within their first 3 sessions (more content variety = longer)
|
||
- Neither user asks "what should I type?" — guided prompts eliminate the blank canvas
|
||
- Both users say they would pay $99/month unprompted
|
||
- Zero NMLS/compliance violations in mortgage broker posts (disclaimer always present)
|
||
- Zero posting errors on LinkedIn, Facebook, Instagram (if credentials deployed), Email in first 2 weeks
|
||
- Partial platform failures handled gracefully — one failed post doesn't block the others
|
||
|
||
## Distribution Plan
|
||
|
||
**Problem:** "MCP gateway" is invisible to non-technical SMBs. Squaremcp.com must lead
|
||
with end-user value, not infrastructure language.
|
||
|
||
**Immediate (weeks 1-2):**
|
||
- Direct outreach to the 2 pilot users — get first sessions happening this week
|
||
- Rewrite squaremcp.com hero section to lead with "AI that posts for you" not "MCP gateway"
|
||
|
||
**Near-term (weeks 3-8):**
|
||
- Post in mortgage professional communities: ActiveRain, mortgage Facebook groups,
|
||
LinkedIn hashtag #mortgagepro, Bigger Pockets
|
||
- Content marketing: "How I automated my social media with AI" — founder doing it first
|
||
- Referral: mortgage broker A tells mortgage broker B
|
||
|
||
**Technical distribution:**
|
||
- Existing SaaS signup at app.squaremcp.com — already works
|
||
- Onboarding email automation (needs SMTP password reset wire-up first)
|
||
- CI/CD: existing MicroK8s pipeline via local registry — deploy on push to main
|
||
|
||
## Dependencies
|
||
|
||
- **Blocking launch:** SMTP email wire-up for password reset (users can't recover accounts)
|
||
|
||
- **Blocking multi-user:** MCP session → customer threading (tool calls still use single-user env vars).
|
||
Resolution: launch in single-tenant mode — one customer key maps to one set of env vars. Multi-user
|
||
threading is a follow-on sprint after first user validates the product. Each new user gets their own
|
||
credential record but the session binding stays 1:1 until threading is complete.
|
||
|
||
- **Blocking Instagram at launch:** Instagram credentials not deployed to K8s. Either deploy before
|
||
launch (30-min task) or remove Instagram from the launch platform set and add it in week 2.
|
||
Decision needed before first user signs up. LinkedIn + Facebook + Email can ship without it.
|
||
|
||
- **Non-blocking for launch:** TikTok app review, Discord credentials, payment automation
|
||
|
||
## The Assignment
|
||
|
||
Call or voice message the mortgage broker today. Don't show them anything — just ask:
|
||
"If you could have an AI write all your social media posts for this week, what would you
|
||
want it to know about your business?" Write down exactly what they say. That's your
|
||
onboarding form.
|
||
|
||
## Reviewer Concerns
|
||
|
||
The following items were flagged by adversarial review as needing resolution before
|
||
implementation — they are documented here rather than blocking the design doc approval:
|
||
|
||
1. **`drafts` table schema is incomplete** — created_at, scheduled_at, error_message, and
|
||
regeneration tracking columns are unspecified. Engineering should define these before
|
||
building the approval pipeline.
|
||
|
||
2. **`user_content_examples` ↔ `drafts` relationship unspecified** — the design doc does
|
||
not state whether approved drafts auto-migrate to the examples table or require explicit
|
||
user action. Engineering decision: auto-migrate on "Approve & post."
|
||
|
||
3. **Token cost per generation is unknown** — 4 platform variants per user prompt × usage
|
||
volume is unestimated. At $99/month, model costs should be estimated before pricing
|
||
is locked. Ballpark: 4 × ~500 tokens = ~2000 tokens/generation × 1000 calls/user/month =
|
||
could be significant at high usage. Monitor with existing usage tracking.
|
||
|
||
4. **Vertical learning system prompt budget** — when fewer than 3 approved examples exist,
|
||
inject whatever is available (0–2). No special handling needed for the zero-history case.
|
||
|
||
## What I noticed about how you think
|
||
|
||
- You said "I want both options for users — start with one and move to 2 incrementally
|
||
when comfortable." That's a trust ladder, not a binary. You're thinking about the user's
|
||
psychology, not just the feature set. Most founders would have just picked one.
|
||
|
||
- You built the entire multi-tenant SaaS platform overnight before this conversation and
|
||
then said the product is still "pre-users." You ship before you ask for permission.
|
||
That's a very specific kind of urgency.
|
||
|
||
- You named "mortgage broker" and "publisher" — not "SMBs" or "professionals." The
|
||
specificity is further along than most founders at this stage realize.
|
||
|
||
- You chose the harder technical path (C over A) because you saw the product clearly.
|
||
"Very hand-holding and then learn new verticals" — that's the product thesis in one
|
||
sentence.
|