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.
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.
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.
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.
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.
An EventBridge schedule runs the reminders Lambda hourly. It queries due-soon and overdue commitments without sufficient evidence and notifies owners (SES / Slack webhook).
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.
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.
| Segment | Workflow |
|---|---|
| Event organizers | Demo request → Contact + Company (type = Organizer) → Deal in 'SponsorMap New Business' pipeline → sequence: agreement-upload onboarding. |
| Associations | Lifecycle lead → task for association specialist → Deal with 'Member-partner packages' property → nurture with association case study. |
| Sports clubs | Lead with 'Season start' date property → deal close date set 8 weeks before season → workflow triggers matchday evidence playbook email. |
| Sponsorship agencies | Company 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