Truffle Nation · Product brief

Funnel Intelligence OS

A private operating system that connects customer truth, funnel strategy, scripts, assets, Meta delivery, CRM revenue, experiments, and evidence-backed memory.

Primary recommendation: Build the system as a new authenticated module inside the existing Truffle CRM. Deploy it on the same BakeBetter VPS as the Explainer Hub, while keeping the private app, database, workers, assets, and secrets isolated from the public explainer directory.
30 daysUseful identity + evidence MVP
12–14 wkFull release sequence for one strong engineer
95%+Target share of active Meta spend mapped
1 truthCRM owns revenue and attribution identity
01

Executive decision

Build an evidence graph, not another idea folder.

Truffle Nation already has most of the machinery. The missing product is the relationship layer that joins what the team knows, what it launches, what happened, why the evidence supports a conclusion, and what should be tested next.

Every durable learning must point to the exact ICP, offer version, angle, creative version, landing-page version, campaign, date range, spend, and CRM result that supports it.

What the system stores

  • ICPs, pains, desires, beliefs, objections, mechanisms, and proof.
  • Funnels, campaigns, experiments, concepts, hooks, scripts, pages, creatives, and assets.
  • Meta facts, CRM stages, payments, revenue, learnings, and decisions.

What makes it different

  • Exact versions and IDs instead of filenames and memory.
  • Revenue truth beside platform attribution.
  • Controlled-test labels and confidence instead of “this felt like a winner.”
Pro tipStart with identity and evidence. Add generative AI only after ten real campaigns can be traced from impression to collected revenue.
02

What exists now

Reuse the working parts and remove the duplicate truth.

Truffle CRMLeads, stages, payments, UTMs, campaign/ad-set/ad names, click IDs, page versions, customer insights, permissions, and analytics.
Meta ingestionDaily ad-level pulls across three accounts with pagination, retries, actions, values, and idempotent upsert.
Ad GeneratorConcept, copy, image ad, landing-page, rendering, and workflow code. Its local campaign database is currently empty.
Customer truthOnboarding and offboarding data already captures before/after states, pains, fears, desires, objections, outcomes, and testimonial consent.
Winning corpusEvidence-backed buyer, price, hook, creative-engine, webinar, and tracking conclusions already exist in tn-winning-angles.
Asset corpusReference ads, advertorials, VSL funnels, UGC concepts, sales scripts, webinar files, and landing pages create the first import set.
WarningThe biggest product risk is a second source of truth. The CRM is closest to collected revenue, so canonical campaign identity and performance memory belong there.
03

Product and data model

Strategy, execution, measurement, and memory stay distinct but connected.

1

Customer + offer

Product, offer version, ICP, pain, desire, belief, objection, mechanism, and proof.

2

Plan + test

Funnel template, live instance, campaign brief, hypothesis, control, and variants.

3

Produce exact versions

Concept, angle, hook, script version, copy, page version, creative, and asset checksum.

4

Measure

Meta campaign/ad-set/ad/creative IDs, daily facts, page events, CRM stages, payments, and revenue.

5

Learn + decide

Evidence bundle, confidence, counterevidence, conclusion, owner, and next action.

LayerCore recordsPurpose
StrategyBrand, product, offer version, ICP, insight, mechanism, proofApproved reusable context
FunnelTemplate, instance, stage, campaign, platform objectSeparate machinery from one launch
IdeasExperiment, arm, concept, angle, hook, topicMake ideas falsifiable
ContentScript/version, copy, creative, asset/version, page/versionAttach exact material to results
FactsSync run, raw payload, performance fact, CRM event, metric definitionAuditable shared numbers
MemoryEvidence, learning, decision, annotation, data issuePreserve conclusions and uncertainty
04

Memory and AI

Chat history is not company memory.

Layer 1–2

Evidence + identity

Raw Meta responses, CRM events, customer answers, files, transcripts, and page snapshots connected to normalized products, ICPs, offers, campaigns, scripts, pages, assets, and IDs.

Layer 3–4

Meaning + action

Saved comparison cohorts become evidence bundles. Human-approved claims become learnings with confidence, counterevidence, expiry, decisions, and review dates.

Key ruleAI outputs become records. Every generated concept, hook, script, or analysis stores its selected context, sources, model, prompt version, owner, status, and downstream result.
05

Meta, CRM, and attribution

The token grants access. The database creates history.

The Meta access token does not contain historical performance. It authorizes Insights requests. The system must pull, store, refresh, normalize, map, and reconcile that data.

1

Secure connection

Server-side token, minimum scopes, expiry and permission health. Never send tokens to the browser.

2

Raw + normalized storage

Append-only payload audit plus daily facts by remote ID, date, metric, attribution window, and breakdown.

3

Rolling refresh

Re-fetch the last 28 days so late conversions and attribution changes update old results.

4

CRM reconciliation

Show Meta actions/value beside qualified leads, bookings, attendance, enrollment, payments, revenue, and refunds.

WarningNever compare unrelated campaigns and call the difference causation. Match product, offer, ICP, funnel, traffic temperature, geography, language, placement, optimization, attribution, seasonality, spend band, and page version.
TN_{product}_{offer}_{funnel}_{icp}_{angle}_{concept}_{format}_{version}_{date}

utm_source=meta
utm_medium=paid_social
utm_campaign=<internal_campaign_slug>
utm_content=<experiment_arm_slug>
utm_term=<creative_slug>
tn_funnel_id=<uuid>
tn_creative_id=<uuid>
tn_page_version=<version>
06

Analysis views

One dashboard cannot answer every decision.

Executive

Spend, CRM revenue, CAC, ROAS, qualified rate, close rate by product, offer, ICP, and funnel.

Funnel diagnostic

Impression → engagement → click → page → lead → qualified → booked → showed → purchased.

Creative matrix

Concept, angle, hook, proof, format, language, awareness, volume, efficiency, and fatigue.

Experiment board

Hypothesis, control, variants, allocation, primary metric, guardrails, result, and decision.

Asset performance

Every place a script, page, or creative version ran and its downstream business result.

Learning + quality

Claims, evidence, stale review queue, token health, missing mappings, broken links, and reconciliation gaps.

07

Architecture choice

Extend the CRM. Do not start greenfield.

Future option

B. Standalone app

Clean boundary, but creates a second identity, auth, permissions, data join, and deployment surface. Use only if this becomes an independent multi-brand SaaS.

Staging only

C. Airtable / Notion

Fine for temporary inventory. Weak for high-volume facts, versioning, token security, historical backfills, and evidence-linked analysis.

Architecture decisionKeep Prisma and move production analytics from SQLite to PostgreSQL 16 before large historical imports. Keep SQLite for local development only.
08

Shared VPS deployment

Reuse the server pattern without mixing public and private surfaces.

The target VPS already runs Nginx, PM2, PostgreSQL 16, Redis, the Truffle CRM, the Ad Generator, and the static Explainer Hub. The plan should use what is there.

ComponentRecommended locationRule
Private UI + APIcrm.bakebetterapps.com/funnel-intelligenceReuse CRM login and permissions.
App processExisting CRM process behind NginxNo extra process until isolation is useful.
DatabaseDedicated Postgres DB/schema and role on localhostLeast privilege; never expose publicly.
WorkerSeparate PM2 process using Redis or Postgres jobsResumable, idempotent, observable.
FilesExternal object storageDo not turn the VPS disk into the permanent DAM.
Public briefexplain.bakebetterapps.comNo tokens, PII, private links, or live performance.
BackupsEncrypted off-VPS destinationSame-server backup is not disaster recovery.
Security boundaryNever place the private application or its data inside the public Explainer web root. The two systems may share a VPS, not a trust boundary.
09

The 30-day MVP

The smallest valuable version is identity plus evidence.

First corpus: the proven Online paid-webinar funnel

Import ten known campaigns, their exact Meta IDs, offer and ICP, angles, ads, page versions, CRM payments, and the current winning-angle conclusions. Make this one slice trustworthy before scaling scope.

10

Release roadmap

Seven releases, each with a testable exit.

Lock terminology, metric formulas, UTM/naming contract, source inventory, Postgres/object-storage choices, backup, and rollback. Exit: classify ten campaigns without ambiguity.

11

Risks and success measures

Make trust measurable.

95%+Active Meta spend mapped to campaign and exact creative version.
100%New launches carry page version and required internal IDs.
<10 minFind every script, file, page, and result for one campaign.
<48 hrTurn a concluded test into an approved learning.
FailureRescue
Meta names changeJoin on remote IDs and internal mappings.
Page changes mid-campaignImmutable version, checksum, screenshot, and effective dates.
Token expiresHealth checks, alerting, resumable backfill.
Late conversions change resultsRolling 28-day refresh and data-freshness label.
Low-spend ad appears to winSpend/sample floor and insufficient-data state.
AI invents a causal reasonCitations, counterevidence, confidence, human approval.
Asset link rotsCanonical object storage, checksums, and link checks.
SQLite hits fact-table scalePostgres before historical backfill.
12

The first assignment

Resolve taxonomy before building screens.

Run a 90-minute campaign taxonomy workshop.

Bring the founder, media buyer, copy lead, and CRM owner, plus ten recent campaigns. For each campaign, agree on the product, offer version, ICP, funnel, angle, concept, creative, page version, primary outcome, and final business result. Every field the team cannot name consistently becomes a required Release 0 decision.