Platform

AWS-native, evidence-first architecture.

Amazon S3 for agreements and evidence. Amazon Bedrock for extraction and report drafting. PostgreSQL as the system of record. AWS Lambda for reminders and report generation.

Web appNext.js · organizers & sponsorsSponsorMap APINext.js route handlersAmazon S3agreements · evidence (KMS)Amazon BedrockClaude · extraction & draftingPostgreSQL (RDS)sponsorship records · auditLambda: remindersEventBridge hourly scheduleLambda: report generatoron demand + weekly digestHubSpotcontacts · deals · workflowsHTTPSpre-signed uploadextract / classifySQLdeal syncdue & overduenarrative onlyFigures in reports always come from PostgreSQL rows — never from model output.
1Agreement upload

Browser gets a pre-signed URL and uploads the PDF straight to the S3 agreements bucket (SSE-KMS). The object key is stored on the agreement row in PostgreSQL.

2Commitment extraction

The API sends the agreement text to Claude on Amazon Bedrock with a strict JSON schema. The deterministic clause parser cross-checks quantities and dates; disagreements lower confidence.

3Human review gate

Commitments land as needs_review. Important ones (quantities, deadlines, reporting duties) cannot generate tasks or appear in reports until a reviewer confirms them. Decisions are written to an audit table.

4Evidence intake

Photos, documents and exports go to the S3 evidence bucket. Bedrock suggests a category and a likely commitment; a person links and verifies. Metric values are only ever read from uploaded exports or typed by staff.

5Reminders

An EventBridge schedule runs the reminders Lambda hourly. It queries due-soon and overdue commitments without sufficient evidence and notifies owners (SES / Slack webhook).

6Report generation

The report Lambda assembles confirmed commitments, verified evidence and labelled metrics from PostgreSQL. Bedrock drafts narrative from those records only; figures are inserted from the database, never from model output.

HubSpot integration

CRM workflows for every segment we serve.

Demo requests create HubSpot contacts and deals today. Delivery status syncs back to sponsor deals so renewal conversations start from facts.

SegmentWorkflow
Event organizersDemo request → Contact + Company (type = Organizer) → Deal in 'SponsorMap New Business' pipeline → sequence: agreement-upload onboarding.
AssociationsLifecycle lead → task for association specialist → Deal with 'Member-partner packages' property → nurture with association case study.
Sports clubsLead with 'Season start' date property → deal close date set 8 weeks before season → workflow triggers matchday evidence playbook email.
Sponsorship agenciesCompany flagged Agency → associate child Companies for each rights holder → Enterprise pipeline → partner manager assigned.
Sales opportunities (expansion)SponsorMap pushes 'commitments fulfilled %' and 'outstanding obligations' to the sponsor's Deal → renewal deal auto-created 90 days before agreement end; risk flag if outstanding > 0.

Full workflow specification, properties and pipelines: docs/hubspot-workflows.md