Sponsor Growth Center
RISA Labs Growth APM assignment, Challenge B: sponsorship cash collected before the festival. Mohammad Hamza, IIT Madras (ph22b016@smail.iitm.ac.in)
- Live product: https://risa-growth-center.pages.dev
- Strategy deck:
Mohammad_Hamza_RISA_Growth_APM.pdf(3 slides) - Chosen city: Bengaluru
The Growth Center is the tool a festival sponsorship team would run its season from. It measures the funnel against targets for any date, diagnoses which acquisition campaigns work, recommends what to scale, change or stop, manages deals, invoices and tasks, and includes an AI analyst. Every number comes from a single engine over the live database, so edits and re-imported data flow through immediately.
1. The decision in one paragraph
In the 2025 data, warm sources (introductions, creator referrals, the inbound partner form) produced 25 opportunities and 24 signed partnerships. Cold email and LinkedIn produced 33 opportunities, 14 of which reached negotiation, and none signed, yet they took 87% of all outreach touches. The 2026 plan therefore scales only the warm sources, adds renewals of 2025 partners, and makes cash collectible through contract terms, because 41% of 2025 signed cash was signed in the last 30 days before the festival. Base case: ₹29.6 lakh collected before the festival. Stretch: ₹54.9 lakh. For scale, 2025 signed ₹20 lakh of cash deals; payments were not recorded.
2. Why Bengaluru
| Reason | Evidence |
|---|---|
| Largest student audience, which is what sponsors pay for | Bengaluru Urban has 1,148 colleges, the most of any district in India (AISHE 2021-22) |
| Largest pool of young consumer brands | Top startup-funding city in 2025 (~$4.6B across ~300 deals) and a top-3 D2C hub (342 D2C funding deals since 2015). Source: Inc42 |
3. The data, and how it is cleaned
The Sponsor dataset (12 tabs, fictional CampusFest 2025, records from 15 Jan to 20 Apr 2025) is loaded exactly as published, duplicates included. Cleaning is applied by the engine on every request, so it also applies to anything edited or imported later.
| Rule (from the dataset's Read me and Field guide) | Implementation (src/engine.js) |
|---|---|
Exact repeats with the same interaction_id / history_id are import retries |
Removed by ID: 3 interactions, 1 qualification version, 2 opportunity versions. Repeats with different payloads would be reported separately. |
| Histories are full-state versions | The latest version with effective_at ≤ cutoff, per brand or opportunity. States are never summed. |
| A selected date is the end of that day, India time | Cutoff = YYYY-MM-DD 23:59 IST. Interactions, stage changes, payments and targets after it are ignored (no leakage). |
| Brands, contacts, attempts, qualified brands and partnerships are different populations | Each is counted by its own ID. Repeat outreach is never a new brand. |
| A positive reply is not qualification; qualification is not a deal | Kept as separate records and separate funnel steps |
| Confirmed value is not cash received | Cash is counted only from invoice payments in a separate collections table |
| Campaign association is observational | The app and the AI never claim a campaign caused a signing |
Metric definitions
| Metric | Definition |
|---|---|
| Prospects reached | Brands with an outreach_sent, introduction_received or web_inbound event on or before the date |
| Conversations | Brands with a meeting_held event |
| Qualified | Brands whose latest qualification status is qualified |
| Opportunities / proposals | Opportunity records created; those that reached proposal_sent or later in any version |
| Signed | Opportunities whose latest stage is partner_confirmed |
| Weighted pipeline | Σ proposed value × win probability, over open deals |
| Win probability (per campaign) | (signed + 1) / (signed + lost + stale + 2). Stale = open longer than twice the typical days to sign. A Laplace-smoothed rate that treats long-stalled deals as evidence against the campaign. |
| Forecast by the festival | Signed + Σ win probabilities × min(1, days left ÷ typical days to sign) |
| Rule decision | Stop: 8+ opportunities and none signed, or 30+ brands reached with under 10% positive replies. Watch: under 5 opportunities. Scale: 60%+ of opportunities signed. Change: everything else. |
Back-test: on 15 Mar 2025 the forecast was 25.5 against the revised goal of 28. The season ended at 24 signed, so the dashboard would have flagged the shortfall four weeks early.
Verification
tests/expected.jsonis produced by an independent pandas implementation (scripts/expected.py).tests/check.mjscompares the JS engine with it at three dates: 33 of 33 checks match.tests/tools.mjsexercises every AI tool, the safe calculator, the as-of logic and the tool-calling loop, using a scripted stand-in for the model (two response formats).- The API was tested end to end on a local D1 database: stage edits, no leakage into earlier dates, target re-import, reset, input validation and cross-site request blocking.
- The live chatbot was tested on the deployed site with: the goal gap and its causes; scale/change/stop; cash outstanding by owner and a follow-up for an earlier date; industry, owner and warm-vs-cold breakdowns; a 2026 what-if (renewals at 30% → ₹27.0L, matching the model); drafting and confirming a task; and unanswerable questions (sponsor-driven visitors, a brand's reason for saying no), which it correctly declined while offering what the data does show. Every figure was checked against the engine.
4. Target model (slide 1)
Signed cash = prospects × win rate × cash share × average cash deal. Collected = signed cash × collection rate.
| Source | 2025 actual | Base: prospects × win | Base collected | Stretch: prospects × win | Stretch collected |
|---|---|---|---|---|---|
| Renewals of 2025 cash partners | 20 partners (no renewal history) | 20 × 45% | ₹7.7L | 20 × 65%, deal ₹1.15L | ₹14.2L |
| Warm introductions | 8 of 8 brands signed | 14 × 70% | ₹6.9L | 20 × 80% | ₹14.2L |
| Creator and community referrals | 9 of 19 | 26 × 45% | ₹8.3L | 32 × 47% | ₹13.4L |
| Inbound partner page and form | 7 of 17 | 24 × 40% | ₹6.8L | 32 × 41% | ₹11.7L |
| Cold email and LinkedIn | 0 of 148 | 40 × 0% | ₹0 | 60 × 3% | ₹1.5L |
| Total | ₹20.0L signed cash | 40.1 deals, ₹34.8L signed, 85% collected | ₹29.6L | 59 deals, ₹57.8L signed, 95% collected | ₹54.9L |
Shared inputs: cash share 83% (2025: 20 of 24 deals were cash; renewals 100%); average cash deal ₹1.0L (2025: ₹20L across 20 deals), +10% in the stretch case from tiered packages. The funnel stages (conversations, proposals) use each source's 2025 stage ratios; renewals assume 90% / 80%. The full model is in src/plan.js and can be changed on the 2026 plan page.
Sensitivity of the base case: renewals at 30% → ₹27.0L; warm volume stays at 2025 levels → ₹22.4L; 60% collected → ₹20.9L; all three → ₹14.0L.
Assumptions (not in the data)
| Assumption | Value | Why |
|---|---|---|
| Renewal rate | 45% base / 65% stretch | No history. Tested in week 2 by meetings booked (slide 3). |
| Warm prospect volume | +45% base / +90% stretch over 2025 | Bets 3–5 on slide 2 |
| Collection before the festival | 85% / 95% | Needs cash-first terms. Indian B2B invoices average 50+ day terms and 63% of credit sales run overdue (Atradius, 2025). |
| Campaign budgets (2025) | ₹6k–₹30k per campaign | No spend in the sponsor data. Labelled "assumed" everywhere. |
| 2025 collections | Simulated: net-30, 55% paid on time, 30% late by 5–34 days, 15% unpaid | No payments in the data. Every simulated record is flagged; edits replace it. |
5. Prioritisation (slide 2)
Score = base-case cash contribution (₹ lakh) × confidence ÷ owner-weeks. Confidence is 0.8 when backed by a 2025 rate, 0.7 by an outside benchmark and 0.6 when untested. Owner time is the binding constraint (3 owners × 12 weeks).
| Rank | Bet | Contribution | Owner-weeks | Score |
|---|---|---|---|---|
| 1 | Cash-first contracts (50% at signing, rest by T-30, 100% upfront after) | +₹8.7L (multiplies 2–5) | 2.4 | 2.5 |
| 2 | Renewal sprint with a results report | ₹7.7L | 2 | 2.3 |
| 3 | Partner page plus a Bengaluru D2C push | ₹6.8L | 3 | 1.8 |
| 4 | Paid creator and community referrals (5% of collected cash) | ₹8.3L | 4 | 1.7 |
| 5 | Structured warm-intro asks and an alumni mixer | ₹6.9L | 5 | 1.1 |
Rejected or deferred: scaling cold outreach, a cold ₹10L+ title sponsor, late discounts. Thresholds for scale, change and stop are on slide 3 and in the app's decision rules.
6. Product
| Page | What it does |
|---|---|
| Overview | KPIs against the target in force on the selected date; funnel; signed vs goal by week; generated "what needs attention" list; campaign decisions |
| Campaigns | Per-campaign funnel, rates, signed and open value, assumed budget and cost per deal, rule decision and reason; edit owner, dates, budget and a team decision; add campaigns |
| Pipeline | Board by stage with weighted win probability; deal drawer with full version history; update stage, value or owner as a new dated version; log interactions; create a task or invoice |
| Cash | Signed vs invoiced vs collected, overdue invoices, deals signed inside 30 days; record payments (simulated layer, editable) |
| Tasks | Board with owners, due dates, priority and links to campaigns or deals; tasks drafted by the AI appear only after confirmation |
| 2026 plan | The slide 1 model with editable inputs and live 2025 baselines |
| Data and rules | Cleaning rules, row counts by origin, audit log, export, import of a changed dataset (JSON or a single CSV per table), reset to the original files |
Date selector: every page and every AI answer can be viewed as of any date from 15 Jan to 20 Apr 2025.
AI analyst
- Tools, not memory. The model (Cloudflare Workers AI,
@cf/google/gemma-4-26b-a4b-it, with fallbacks; optionally Gemini ifGEMINI_API_KEYis set) can only see data through 12 tools: overview (with the drivers of any gap), campaign performance, a breakdown by industry, channel or owner, weekly trend, cash (simulated), a flexible read-only query over the cleaned views, entity detail, the 2026 model with what-if overrides, tasks, task proposals, an exact calculator and a data dictionary. - Exact arithmetic. It is instructed to use the
calculatetool for any arithmetic. The calculator is a small parser, noteval. - Grounded and transparent. Each answer shows "How I got this": every tool call with its arguments and result.
- Honest about gaps. The data dictionary lists what the data does not contain (payments, spend, loss reasons, attendees, causality, real companies, 2026). The model is told to say so and offer the closest available answer.
- Insight to action.
propose_taskstores a draft. The user edits the owner, title or due date and confirms in the chat; only then is a task created (marked "ai (confirmed by user)"). - Follow-ups. The last 12 turns are sent back, and the selected date is kept.
- Guardrails. Repeated identical lookups are blocked, the model is nudged if it goes quiet, and each answer is capped at about a minute. A limit of 25 questions per 10 minutes per client protects the free model quota.
7. Architecture and security
- Front end: vanilla HTML, CSS and JS with no framework or CDN. Charts are hand-built SVG.
- Back end: Cloudflare Pages with a compiled
_worker.js(Pages Functions underfunctions/api). - Database: Cloudflare D1 (SQLite). Source tables keep their CSV shape plus an
_origincolumn (source, app or import). - Edits: saved like the source does it. A stage change is a new dated row in
opportunity_history, so as-of views stay correct and nothing is overwritten. - Security:
- Strict Content-Security-Policy (
script-src 'self', no inline scripts,frame-ancestors 'none'); HSTS and nosniff. - All text is rendered with
textContent, and the chat markdown is escaped before formatting. - Server-side validation of every write, size limits on requests, cross-origin POSTs refused, rate limits on writes, imports and chat.
- No API keys in the browser; the AI runs server-side.
- Cost: ₹0. Everything runs on Cloudflare's free tier (Pages, D1 and Workers AI, 10,000 neurons a day).
public/ static app (index.html, app.js, app.css, _headers)
functions/api/ API router (one Pages Function)
src/engine.js cleaning rules and all metrics
src/plan.js 2026 target model
src/tools.js AI tools
src/ai.js tool-calling loop (Workers AI / Gemini)
src/db.js D1 storage, seeding, import and reset
src/seed.js app-owned tables: assumed budgets, simulated collections, starter tasks
seed/ the original dataset, all 12 tabs, unchanged
tests/ engine vs pandas checks; tools and chat loop tests
8. Setup
Deploy (no command line):
1. Run scripts/build.sh (or npx wrangler pages functions build ./functions --outdir build --build-output-directory public, then copy public/ plus build/index.js as _worker.js).
2. Cloudflare → Workers & Pages → Create → Pages → Upload assets → upload the zip.
3. Create a D1 database. In the project's Settings → Bindings, add DB (D1) and AI (Workers AI). Deploy again.
4. The first request creates the tables and loads the original dataset.
Local: npm install, then npx wrangler pages dev public --d1 DB=growth-center. The AI needs a Cloudflare login, or set GEMINI_API_KEY.
Tests: node tests/check.mjs && node tests/tools.mjs
9. Tools used
| Tool | Plan | Used for |
|---|---|---|
| Cloudflare Pages, D1, Workers AI | Free | Hosting, database, AI model |
| Wrangler CLI | Free | Bundling and local testing |
| Python (pandas) | n/a | Independent check of the numbers |
| Playwright with headless Chrome | n/a | Screenshots and rendering the slide PDF |
| Claude (Anthropic) | n/a | Research and coding assistant |
No templates or UI libraries were reused. All code was written for this project, and the numbers were verified against the independent pandas implementation.
10. Known limitations
- Cash is simulated. The source has no payments, so the Cash page and "collected" figures for 2025 come from a labelled, deterministic simulation. The 2026 targets do not depend on it.
- Budgets are assumptions, so cost per deal is indicative only.
- Small samples: warm introductions signed 8 of 8, so the base case uses 70%. Win probabilities are smoothed for the same reason.
- The renewal rate is untested; it is the biggest single assumption. Slide 3 gives a week-2 signal for it.
- No attribution model: a brand counts for the campaign recorded on the opportunity, as in the source.
- The free AI model (Gemma 4 26B on Workers AI) is smaller than frontier models. Answers take 10–45 seconds. Occasionally a reply stops short or over-reads a table; asking "continue" or rephrasing fixes it, and the "How I got this" trace shows exactly which data it used. Setting a Gemini key upgrades the model.
- No login: anyone with the link can edit (by design for review). "Reset to original" restores the dataset.
11. Sources
- CampusFest 2025 Sponsor dataset and assignment brief (RISA Labs)
- AISHE 2021-22, district-wise college counts (Ministry of Education)
- Inc42, Annual Indian Startup Trends Report 2025; Inc42 D2C report and Bengaluru D2C list (2026)
- Atradius, B2B Payment Practices Trends: India 2025
- Bizzabo, 2026 State of Events Benchmark Report; PheedLoop on sponsor retention
- Cloudflare Workers AI pricing and model documentation (Nov 2026)