A portfolio project for meeting-notetaker use cases: connect what was said in customer meetings to the systems of record a company already runs on (calendar, CRM, task tracker), with a human approving every write.
It is built the way a forward deployed engineer would ship a first customer integration:
real HTTP, OAuth token handling, retries that honor Retry-After, pagination, idempotent
and resumable writes, an audit log, and a short list of places where I would push back on
the customer.
No real notetaker API is assumed. This project is not affiliated with any notes product. The notetaker side is modeled as a documented input contract (speaker-labeled transcript JSON delivered by a signed webhook). The calendar, CRM and trackers are local fakes shaped like Google Calendar, HubSpot, Jira Cloud and Linear. The customer, Brightline Analytics, and everyone in the sample data are fictional.
Live demo: https://notetaker-context-bridge-production.up.railway.app Click Read the sample call with Claude to watch the Claude API call stream live, see the checks every proposed item goes through, then approve the tasks and open what was written to the (fake) Jira and CRM.
| Problem | What was agreed in customer meetings doesn't make it into the systems where work is tracked. People re-type notes into the CRM and Jira late or never, and "someone should..." ends up owned by nobody. |
| Solution | A bridge that prepares context before each meeting, pulls action items, decisions and commitments out of the transcript afterwards, and writes them to the tracker and CRM only after an attendee approves. It never creates a duplicate, even when the services it talks to fail partway through. |
| Where the AI is | Claude reads the transcript and returns structured JSON (items, owners, due dates, quoted evidence). The code doesn't trust that output: each item must quote something actually said, owners must be meeting attendees, and dates must parse. Anything vague is sent to a person to decide. Claude only sees redacted, on-the-record text, and a rule-based extractor takes over if the call fails. |
| Skills demonstrated | Putting guardrails around LLM output (schema, grounding checks, a human approving before any write, fallback when the model fails), integration engineering (OAuth refresh and rotation, Retry-After, pagination, idempotent and resumable writes), PII handling, and end-to-end testing against fake services that fail on purpose. |
- An LLM that extracts action items is the easy part; deciding what may be written is the product. Getting structured JSON out of Claude is one API call. What makes it safe to point at a customer's Jira is checking every item against the transcript and the attendee list, flagging vague owners instead of guessing, and requiring a person to approve.
- "The server saved it but returned 500" is the failure that creates duplicates. Retrying the POST blindly makes a second CRM note. The fix is a deterministic sync key recorded before the call, plus searching the remote system for that key whenever the outcome is unknown. The end-to-end test injects exactly this failure.
- Vendors differ in the details that break integrations. Jira rotates refresh tokens on every use, and a 401 during a sync has to trigger one refresh-and-retry, not a loop. A service that is down should be skipped for the rest of that run and resumed later, rather than hammered.
- Redaction has to happen before the model and before the tracker, and off-the-record sections have to be dropped before anything is stored. Otherwise the audit log and the tickets become a second copy of sensitive data.
- The rule-based extractor is the baseline, not a throwaway. It makes tests deterministic, keeps the product working during an LLM outage, and is what you would compare Claude against on a customer's own meetings before switching the default.
Meeting outcomes die in notes. After a customer call, an account executive or CSM re-types the same facts three times: a CRM activity, a few Jira or Linear tickets, and a recap email. Much of it happens late or never, so:
- follow-ups slip ("I thought Marcus was sending the sandbox access"),
- the CRM is stale exactly when forecasting needs it (the Halvorsen renewal in the sample data had no logged activity for 90 days),
- "someone should loop in security" is said, agreed to, and owned by nobody.
A transcript alone does not fix this. The notes have to land where the work is tracked, owned by a real person, without the tool quietly inventing owners or duplicating tickets.
Buyer: VP of Sales, CS or RevOps (owns CRM hygiene and forecast accuracy), with IT and Security as approvers. Users: AEs, CSMs and solutions engineers who run customer meetings and review what the bridge proposes. Beneficiaries: managers and deal desks who read the CRM, and engineers who receive the tickets.
- Before the meeting. A calendar push notification triggers the bridge to page through upcoming events. For each meeting with external attendees it resolves them against the CRM and builds a context packet: account, owner, open opportunity (stage label, amount, next step), last three activities, staleness warnings, attendees missing from the CRM, and a vocabulary list (customer, contact and product names plus the account glossary: "Epic Clarity", "ORU", "Wierzbicki") for priming transcription.
- After the meeting. A signed transcript webhook arrives. The bridge drops off-the-record spans, redacts PII, extracts action items, follow-ups and decisions with verbatim evidence, and resolves owners against the attendee list. Internal owners go to the tracker. Customer-side commitments and decisions go to a CRM note. Vague ownership ("someone should...", "we need to...") is flagged, not assigned.
- Review. An internal attendee approves in a small web UI or via the JSON API. They can edit titles, owners and due dates, exclude items, and must decide every flagged item. Nothing is written before approval.
- Sync. Approved items become tasks (Jira-like or Linear-like, pluggable) and one CRM note on the account and deal. Every write goes through a ledger, so re-runs never duplicate and a partial failure resumes where it stopped.
You need: Python 3.11 or newer and uv. No accounts, no API keys and no network access beyond localhost; every external service is a local fake.
# 1. Install uv if you don't have it
curl -LsSf https://astral.sh/uv/install.sh | sh
# 2. Get the code and install dependencies (creates .venv/)
git clone <this repo> notetaker-context-bridge && cd notetaker-context-bridge
make install # uv sync --all-extras
# 3. Check it works
make test # 78 tests, about 12 seconds
make demo # narrated end-to-end run with the Jira-like tracker
# 4. Optional: extraction with Claude instead of rules
cp .env.example .env # then paste your ANTHROPIC_API_KEY into .env (git-ignored)
uv run bridge-demo --llm| Command | What it does |
|---|---|
make demo / make demo-linear |
The full story with the Jira-like or Linear-like tracker |
make serve |
Runs the demo, then keeps the servers up with a meeting waiting at the printed /review/... URL |
make lint |
ruff check and format check |
uv run --extra llm bridge-hosted |
The hosted demo locally: landing page at http://127.0.0.1:8000, a fresh meeting per visitor |
The demo pins "now" to 2026-09-30 so the sample calendar lines up. The tests never call the Claude API, even when a key is present.
Presenting this project? See the demo walkthrough.
bridge-hosted runs everything as one web service: the fake calendar, CRM and trackers
on internal ports, and the bridge with its review UI on the public port. The landing page
gives each visitor their own copy of the sample meeting to review and approve, then shows
what was written to the fake Jira and CRM.
- Render (free tier): push to GitHub, then New > Blueprint and pick the repo;
render.yamlsets it up. Free services sleep when idle and take a few seconds to wake. State is in memory and resets on restart. - Anywhere else:
docker build -t notetaker . && docker run -p 8000:8000 notetaker, or point Railway or Fly.io at theDockerfile. - Set
ANTHROPIC_API_KEYto let visitors choose Claude (Haiku 4.5 by default, orBRIDGE_LLM_MODEL). Each visitor then gets a walkthrough: the transcript, the exact prompt, Claude's raw output, the checks each item passed or failed, and where each item goes.BRIDGE_LLM_RUNS_PER_DAY(default 200) caps the spend; without a key, the rules are used.
- Fake Calendar, CRM and tracker services start on localhost; the bridge is a separate server.
- The bridge subscribes to calendar pushes. A CSM books a meeting, the calendar notifies the bridge, and context packets are printed, including the "not in CRM" and "90 days since last activity" warnings.
- The Kestrel transcript arrives by signed webhook. Seven items are proposed: three tasks, one decision, one customer commitment, and two items flagged for an unclear owner. Three off-the-record utterances are dropped; a phone number and an email are redacted.
- Approving without deciding the flagged items returns 422. A non-attendee gets 403. Zero writes so far.
- Approval runs while the tracker revokes the access token and returns 429 with
Retry-After: 1, and the CRM commits the note but answers 500. Result: 4 tasks created, the note found by its sync key and adopted rather than written twice. - Webhook redelivery and a second sync change nothing.
- The tracker goes down for a second meeting: the CRM note lands, tracker writes are parked (with a per-run circuit breaker so a dead service is not hammered), then a retry completes them.
- The resulting tickets and CRM note, then the audit trail of every external write attempt.
flowchart LR
subgraph SYS ["Customer systems (faked locally)"]
CAL[Calendar<br/>Google-shaped]
CRM[CRM<br/>HubSpot-shaped]
TRK[Tracker<br/>Jira- or Linear-shaped]
end
NT[Meeting notes source<br/>stand-in, input contract v1.0]
REV((Reviewer<br/>meeting attendee))
subgraph BR ["Notetaker context bridge (FastAPI)"]
WH[Webhooks<br/>HMAC + channel token]
CTX[Context builder]
EXT[Extractor<br/>rules / Claude]
PRIV[Off-record filter<br/>+ PII redaction]
RT[Owner resolution<br/>+ routing]
UI[Review UI + JSON API]
SYNC[Sync engine<br/>ledger, reconcile, breaker]
API[ApiClient<br/>OAuth, retries, pagination]
DB[(SQLite: packets, proposals,<br/>ledger, tokens, audit)]
end
CAL -- push notification --> WH
NT -- signed transcript --> WH
WH --> CTX --> API
WH --> PRIV --> EXT --> RT --> UI
REV <--> UI
UI -- approve --> SYNC --> API
API <--> CAL & CRM & TRK
CTX & RT & SYNC & API --- DB
| Module | Responsibility |
|---|---|
context_bridge/http.py |
OAuth refresh-token grant with rotation and proactive refresh; retries (429 always, honoring Retry-After; 5xx only for idempotent requests); audit hook on writes |
context_bridge/connectors/ |
Calendar (page tokens, push channels), CRM (v3 search with cursor paging, pipelines), TrackerAdapter with JiraAdapter (ADF, JQL, startAt paging) and LinearAdapter (connection paging) |
context_bridge/context.py |
Pre-meeting context packet and vocabulary |
context_bridge/redact.py |
Off-the-record spans, PII redaction |
context_bridge/extract/ |
Extractor protocol, deterministic RuleBasedExtractor, optional LlmExtractor |
context_bridge/bridge.py |
Ingest, owner routing, approval rules, ledger-based sync |
context_bridge/app.py, ui.py |
Webhooks, JSON API, server-rendered review page |
fake_services/ |
FastAPI fakes with OAuth, fault injection (429, 500, 503, 500_after_commit, down), request logs; runner.py serves them on real ports; demo.py |
- Transcript level: a content hash makes webhook redelivery a no-op. Changed content becomes a new review revision.
- Approval level: a meeting can be approved once per revision (409 afterwards).
- Write level: each planned write gets a deterministic sync key
(
sha256(meeting | target | kind | normalized title)) stored in the ledger before any call. A task whose title survives into a later revision maps to the same key and is not recreated. - Remote reconciliation: after any attempt whose outcome is unknown (a 5xx on a POST, a
timeout, a crash between the remote commit and the ledger update) the bridge searches the
remote system for the sync key before writing again. Trackers carry an
ntb-<key>label; CRM notes carry anntb_sync_keycustom property. In production I would use Jira issue entity properties and Linear attachments rather than a visible label.
The extractor interface takes a transcript plus the context packet and returns candidate items with verbatim evidence (utterance id, speaker, timestamp). Two implementations:
RuleBasedExtractor(default, used by tests and the demo): strips fillers, stutters and false starts ("I'll- I'll", "every, like, every"), then matches commitments ("I'll...", "Action item: Aisha to..."), requests that the named person accepts ("Marcus, can you...?" / "Yeah, I can do that by next Tuesday"), vague ownership, and decisions. It resolves due dates such as "by Friday", "next Tuesday", "end of week" and "October 15th" against the meeting date and flags ambiguous ones. It only treats names of people in the meeting as owners.LlmExtractor(optional): Anthropic Messages API, modelclaude-opus-5-5, JSON-schema structured output. Its output is validated, not trusted: evidence must cite a real utterance id, owners must be attendees (otherwise the item becomes "no clear owner"), dates must parse. If the call fails the bridge falls back to rules and records it in the audit log, so an LLM outage never loses a meeting. The model only sees redacted, on-the-record text.
The rule-based extractor is also the baseline I would use to evaluate the LLM extractor on a customer's own meetings before switching the default.
| Concern | In this repo | In a real deployment |
|---|---|---|
| Transcript source | Input contract + signed webhook, sample JSON | Adapter from whatever export or webhook the notes product offers; no notetaker API is assumed |
| OAuth | Refresh-token grant against fake /oauth/token, rotation on Jira, tokens in SQLite |
Registered OAuth apps (HubSpot, Salesforce connected app, Atlassian 3LO, Linear OAuth, Google), consent flow, scopes reviewed with IT, tokens encrypted with a KMS key |
| Calendar | Google-shaped fake with push channels | Google Calendar watch channels with renewal before expiry, or Microsoft Graph subscriptions; incremental syncToken sync |
| CRM | HubSpot-shaped fake | HubSpot associations API or Salesforce (SOQL, Tasks/Events), custom property created at install |
| Trackers | Jira- and Linear-shaped fakes (Linear over REST) | Jira Cloud REST v3, Linear GraphQL; project and issue type picked per team |
| Reviewer identity | Reviewer email in the request, checked against attendees | SSO (OIDC/SAML) session; SCIM directory for owner resolution |
| Execution | Synchronous in the request | Queue with a worker, per-tenant rate budgets, scheduled retries of parked writes |
| Storage | SQLite | Postgres, per-tenant keys, retention policy |
- No write without approval by an internal meeting attendee. Approval is audited with the reviewer, the revision and every edit they made.
- Audit log of every external write attempt (service, method, path, status, sync key, attempt number, latency) plus approvals, denials, fallbacks and adoptions. Request bodies are not logged, so the audit log does not become a second copy of customer data.
- Off-the-record spans ("can I go off the record...", "back on the record") are dropped before extraction and never stored. An unterminated span runs to the end of the meeting.
- Redaction before anything leaves the bridge: phone numbers, external email addresses, Luhn-valid card numbers and SSNs are redacted from text sent to trackers, the CRM and the LLM. Internal emails stay so owners remain resolvable.
- External attendees are never assigned tickets in the internal tracker. Their commitments are recorded on the CRM account, and attendees missing from the CRM are reported, not auto-created.
- Webhooks are HMAC-signed with a timestamp (5 minute window); calendar pushes must present the channel token. Secrets in this repo are obviously fake demo values.
- Least privilege: the bridge only needs contact/company/deal read, note create, and issue create/search. A revoked refresh token surfaces as a non-retryable auth error (the customer has to reconnect) instead of an endless retry loop.
- LLM use is opt-in per tenant, sees redacted text only, and its output is validated.
- "Just write everything to Salesforce automatically." Not on day one. Unreviewed writes put wrong owners and hallucinated commitments into the system the forecast runs on, and people stop trusting it within weeks. Start with review; measure the edit rate per item type; auto-approve only categories that stay near zero edits (for example, decisions) and keep flagged items manual.
- "Assign 'someone should' items to the account owner." That silently moves work onto one person and hides that nobody agreed to it. The bridge flags it and the reviewer decides.
- "Create contacts for everyone on the invite." Unknown attendees are reported, not created. Personal emails, assistants and vendors end up polluting the CRM and can create consent problems.
- "Put the full transcript in the ticket." Tickets get wide visibility and often sync to other tools. Link to evidence, include the one relevant quote, and keep the transcript in the system with the right retention and access controls.
- "Log every meeting, including internal ones." The bridge only builds context for meetings with external attendees, and a production rollout should filter transcripts the same way. Internal 1:1s are a different consent conversation.
- "Can you also send the recap email for us?" Possibly later, but sending as a person is a bigger trust step than filing a task. It should reuse the same review step.
These are assumptions to size the opportunity, not measurements.
| Assumption | Value |
|---|---|
| Customer-facing reps | 25 |
| External meetings per rep per week | 12 |
| Post-meeting admin today (CRM note, tickets) | about 10 min per meeting |
| With the bridge (review and approve) | about 3 min per meeting |
| Loaded cost per rep hour | $75 |
| Working weeks per year | 46 |
Time saved: 25 x 12 x 7 min = 2,100 min, about 35 hours per week, roughly 1,600 hours per year, or about $120k per year at $75 per hour. The larger, harder-to-measure value is fewer dropped follow-ups and a CRM that is current when forecasting. In a pilot I would measure time-to-CRM-update, share of meetings with a logged activity within 24 hours, reviewer edit rate, and the number of flagged items that turn out to matter.
Patterns that would show up in customer after customer, and what could become product instead of per-customer glue:
- A structured, signed "meeting finished" export or webhook with speaker identity (emails, not just names) and the calendar event id. Owner resolution is the hardest part of this integration and it is almost free if identity comes through.
- CRM-seeded vocabulary. Customer, contact and product names from the CRM are exactly the words transcription gets wrong. A connector that refreshes a team dictionary from the CRM before each meeting is a reusable integration.
- First-class "off the record" that removes the span at the source, visible to all participants.
- A review-and-approve primitive (proposed items, edit, approve, audit) that every downstream connector reuses, so each integration does not rebuild the trust layer.
- Connector templates plus a playbook for the common stacks (HubSpot or Salesforce with Jira or Linear or Asana): install steps, scopes, field mappings, and the pushback list above.
- Tenant-configurable redaction policy (what counts as PII, where it may flow), since healthcare and finance customers will ask in the first security review.
- An evaluation harness that compares extractors on a customer's own labeled meetings before changing defaults.
notetaker-context-bridge/
├── Makefile, pyproject.toml, uv.lock
├── data/brightline/ # fictional tenant: calendar, CRM, trackers, transcripts
├── docs/ # input contract, JSON schema, screenshots
├── src/context_bridge/ # the bridge (connectors, extract, sync, web app)
├── src/fake_services/ # fake SaaS APIs, runner, narrated demo
└── tests/ # e2e over real HTTP + unit tests
tests/test_e2e.pyruns the whole flow over real HTTP between the bridge and all fakes, for both tracker adapters: calendar push, context packet, signed webhook, review guardrails, sync through token revocation, 429 withRetry-After, 500-after-commit, idempotent re-runs, audit assertions; plus a tracker-down partial failure that resumes without duplicates.- Unit tests cover the retry and OAuth client, date parsing, redaction, the rule-based extractor, the LLM extractor (stub client, no network), approval rules, the HTML review flow and the input contract. Retry sleeps are injected, so tests are fast and deterministic.
- The rule-based extractor is English-only and deliberately conservative; it will miss commitments phrased in ways it does not know. That is the reason for the review step and the optional LLM extractor.
- Owners are matched by attendee name and email; people with the same first name in one meeting need the full name to be spoken.
- A reviewer who edits a task title after it was synced creates a new task on the next revision (the sync key follows the title).
- Calendar push channels are not renewed, the Linear fake is REST rather than GraphQL, and the bridge processes work synchronously in the request.


