AWS Builder Center
Weekend Productivity Challenge: Cadence

Weekend Productivity Challenge: Cadence

Cadence is an AI drafting tool that learns how you write, then drafts your emails and messages in your own voice — built on Amazon Bedrock, Lambda, and Amplify for the Weekend Productivity Challenge.

Weekend Productivity Challenge: Cadence

Tag: #productivity

Vision & What the App Does

Most "AI email writers" have the same problem: the output reads like AI. It's polished, generic, and unmistakably not you. So you end up rewriting the whole thing anyway, and the tool saved you nothing.
Cadence starts from the opposite end. Instead of asking a model to "write a professional email," it first learns how you actually write — then drafts in that voice. The pitch is one line: Cadence learns the rhythm of how you write, then drafts as you.
From a user's perspective, it's three steps:
  1. Voice — you paste in one to three things you've actually written (a past email, a Slack message, anything in your natural voice). Cadence analyzes it and reflects back what it heard: your tone in a few words, plus concrete habits like how you open, how you sign off, your sentence length, whether you use dashes or emoji. Seeing it "get" you is the moment the tool earns trust.
  1. Brief — you tell it the gist of what you need to say, pick the channel (email, Slack, text), and choose a length. The gist can be rough — bullets, a half-sentence, whatever.
  1. Draft — it writes the message in your voice, ready to send. You can refine with one tap (shorter, warmer, more direct, more/less formal) or type an exact change, then copy.
The whole point is a draft that sounds like one specific human across every message — not three different corporate robots. That consistency is what makes it actually save time.

How You Built It

I kept the architecture deliberately small: a static front end talking to a single serverless function that calls a foundation model. No database, no framework, no build step — the front end is one  index.html  using React from a CDN.
The part that taught me the most wasn't the happy path — it was a  403 Forbidden  that blocked every browser request to my Lambda Function URL. I worked it layer by layer: the resource policy looked correct ( lambda:InvokeFunctionUrl , principal  * , auth type  NONE ), the URL config was correct, there were no Organization SCPs and no IAM permission boundary. CloudWatch gave me the key clue — zero invocations from my requests, meaning they were being rejected at the Function URL authorization layer before ever reaching my function. A direct IAM invoke, by contrast, worked and returned real model output, which proved the function and Bedrock themselves were fine.
The actual cause turned out to be a recent policy change: since October 2025, Lambda Function URLs require two resource-based permissions, not one — both  lambda:InvokeFunctionUrl  and  lambda:InvokeFunction  (the latter scoped with the  lambda:InvokedViaFunctionUrl  condition). My policy only had the first, so every unauthenticated request was denied at the edge. Adding the second permission fixed it instantly:
aws lambda add-permission --function-name cadence-draft \
--statement-id UrlPolicyInvokeFunction \
--action lambda:InvokeFunction --principal '*' \
--invoked-via-function-url --region us-east-1

The lesson: when every layer you control looks correct and it still fails, don't assume it's your mistake — check whether the platform's rules changed underneath you. CloudWatch proving the request never reached the function is what pointed me at the authorization layer specifically, and a quick AWS Support case confirmed the October 2025 change.

AWS Services Used / Architecture Overview

Browser (static index.html) → AWS Lambda (Function URL) → Amazon Bedrock (Nova Lite, Converse API)

  • Amazon Bedrock (Nova Lite) — the AI engine. Every action (analyze voice, draft, refine) is a  converse  call to Nova Lite. Chosen for being fast, low-cost, and on-demand in  us-east-1 .
  • AWS Lambda (Python 3.13) — a single serverless function that receives  {system, messages} , calls Bedrock, and returns the generated text. Keeping the model call server-side means AWS credentials never touch the browser.
  • AWS IAM — a scoped execution role granting the function  bedrock:InvokeModel , plus basic CloudWatch logging.
  • AWS Amplify Hosting — static hosting for the front end (drag-and-drop deploy).
Everything runs in  us-east-1  and stays comfortably inside the AWS Free Tier.

What You Learned

This was my first time building on AWS, and I picked up a lot fast: how Lambda, IAM roles, and Bedrock fit together; that the Bedrock "model access" page is now retired because serverless models auto-provision on first invocation; and the difference between a request failing inside your function versus being rejected before it ever runs. The biggest lesson was in debugging method: reading CloudWatch to prove exactly where a request died — rather than guessing — is what led me to the real answer, the October 2025 change requiring two permissions on Function URLs. I also learned the value of building the smallest thing that works: one function, one model call, no database — and it does the job.

Link to App or Repo

Source code (public repo):  https://github.com/BirGeb23/cadence-ai 
(The repo includes the full front end, the Lambda function, a README with deploy steps, and a  CLAUDE.md  project overview.)

It works — proof

Below is the deployed Lambda being invoked directly, returning real drafts generated by Amazon Bedrock (Nova Lite). Both calls return  StatusCode: 200 . The two runs show Cadence's whole point: the same request ("push my Friday 1:1 to Monday") produces a neutral, formal draft with no voice guidance, and a noticeably warmer, more casual draft once a voice profile is applied — one request, two voices.
(The \n and \u2019 markers are just raw-JSON encoding of line breaks and apostrophes; the generated emails render normally.)

Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article