AWS Builder Center

Weekend Showcase Challenge: Tales on Demand

Think of it as a pocket-sized digital writing desk built on Amazon Bedrock and Nova Micro. Feed it a theme, and it will instantly draft a poem, a story, three haikus, or a set of five six-word stories.

Vision & What It Does:

Inkwell is a small, digital writing desk that lives on the web. You give it a theme—like "the last train of the night" or "a dusty bicycle in a garage" —pick a style, and it writes a short, fun piece of text for you.
It has four options:
  • Poem: A free-verse poem (about 8 to 14 lines).
  • Story: A short, 150-200 word story with a fun twist at the end.
  • Haiku: Three connected 5-7-5 haikus.
  • 6-Word: Five super short stories, just six words each.
Every piece comes with its own title, and it types out on the screen letter by letter, like a typewriter on a torn piece of notebook paper. If you're stuck, there's a "Surprise me" button that rolls a dice to give you a random theme, and a copy button to save your favorites.
My main goal was to make a tool that does just one creative thing really well, instead of building another boring AI chat box. I wanted it to have an actual personality. The design matches this vibe: old paper backgrounds, ruled lines, classic fonts, and a different ink color for every writing style.

How I built it:

I built the whole thing using just one HTML file and one Lambda function—no complicated setup at all.
Giving the AI the right instructions was way more important than the Python code. At first, the AI kept ruining the mood by starting with, "Sure! Here is a poem about..." I fixed this by giving it strict rules to never use intro text. I also told it to always put the title on the very first line with  TITLE:  in front of it. My code just chops that word off, so the AI basically names its own work.
Each writing style has its own specific prompt and word limit: 250 tokens for the shorter ones and 600 tokens for the stories. I set the creativity level (temperature) high at 0.9, because getting the exact same poem twice is boring.

AWS Services Used:


Amazon S3 Hosts the application's static  index.html  file without needing a traditional web server. It serves the user interface directly to the browser and scales automatically.
Amazon API Gateway Acts as the public front door, securely receiving web requests and handling CORS. It routes the user's traffic directly to the backend compute layer.
AWS Lambda The serverless brain running the Python script that formats prompts and parses the AI output. It "scales to zero," meaning it only runs and costs money when actively processing a request.
Amazon Bedrock (Nova Micro) The AI engine accessed via the Converse API to generate the actual creative text. It provides extremely fast (under 400ms) and cheap responses ideal for short-form content.
Amazon CloudWatch Automatically captures background activity, execution times, and console logs. It provides the diagnostic traces needed to quickly troubleshoot and fix backend errors.
AWS IAM Enforces security by granting the Lambda function a strict, limited "execution role." It ensures the backend code only has permission to invoke the Bedrock model and nothing else.

What I learned:

  • Nova Micro is surprisingly fast: It can write a full poem in under 400 milliseconds. For short text, there's no reason to use a big, expensive model.
  • Instructions matter most: A few lines of strict rules changed this from a "standard AI bot" into an app with real personality.
  • Serverless is perfect for weekends: Since the app only runs when someone clicks a button, it costs almost nothing to keep it online.

Link to App or Repo:

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