AWS Builder Center
Weekend Creative Challenge: VerseCraft AI

Weekend Creative Challenge: VerseCraft AI

VerseCraft AI transforms simple ideas and emotions into original poems using generative AI. Built with Groq and a serverless AWS architecture, the project explores how a focused creative experience can combine AI, web development, and AWS services.

Im a Community operations manager and AI engineer
#creative-expression

Vision & What the App Does

What if you could turn a simple thought, feeling, memory, or idea into a poem in seconds?
That was the idea behind VerseCraft AI, a simple AI-powered creative writing application built for the AWS Weekend Creative Challenge. Instead of asking users to write a complete poem themselves, VerseCraft lets them provide a simple idea and choose a mood, and then transforms that input into an original poem.
For example, a user can enter an idea such as:
"A lonely person watching the rain from a rooftop at midnight."


They can then select a mood such as Emotional, Romantic, Sad, Inspirational, Dark, Peaceful, or Funny. After clicking Generate Poem, VerseCraft creates a title and an original poem inspired by the user's idea and selected mood.
The goal was not to build a complicated AI platform. I wanted to create one focused creative experience that is simple to understand, enjoyable to use, and produces something people can share.
The generated poem is displayed in a clean, artistic interface with options to copy the poem and generate another one. The application is designed to make creative writing feel accessible even when someone doesn't know where to start.

How I Built It

Because this was a weekend challenge, I decided early that I wanted to keep the application focused and avoid unnecessary complexity. There are no user accounts, databases, payment systems, or complicated dashboards. The entire application revolves around one simple interaction:
Idea → Mood → AI → Poem
The frontend was built using HTML, CSS, and JavaScript. I wanted the interface to feel more like a small digital writing studio than a traditional AI dashboard, so I focused on a minimal design with a black, white, and yellow/gold visual theme.
For the AI generation, I used the Groq API. The backend receives the user's idea and selected mood and sends them to the AI with a carefully designed prompt. The prompt instructs the model to generate a suitable title and an original poem while keeping the response structured so that the frontend can display it cleanly.
One of the important decisions I made was to keep the Groq API key completely away from the frontend. The browser communicates with my backend API instead of communicating directly with Groq. This prevents the API key from being exposed in the client-side JavaScript.

The backend uses Node.js running on AWS Lambda. When a user requests a poem, API Gateway sends the request to Lambda. Lambda processes the input, securely calls the Groq API, receives the generated poem, and returns the result to the frontend.
I also wanted the AWS infrastructure to be reproducible rather than manually creating resources through the AWS Console. For that reason, I created an AWS CloudFormation YAML template that defines the application's AWS infrastructure.

AWS Services Used & Architecture

The application uses several AWS services:
  • Amazon S3 — Stores the static frontend files, including HTML, CSS, and JavaScript.
  • Amazon CloudFront — Delivers the frontend globally through a CDN and provides HTTPS delivery.
  • Amazon API Gateway — Provides the public API endpoint used by the frontend for poem generation.
  • AWS Lambda — Runs the serverless Node.js backend that communicates with Groq.
  • AWS IAM — Provides the permissions and execution roles required by the AWS services.
  • AWS CloudFormation — Defines and provisions the infrastructure using YAML.
The overall architecture is:
USER
│
▼
┌──────────────┐
│ CloudFront │
│ HTTPS / CDN │
└──────┬───────┘
│
▼
┌──────────────┐
│ S3 │
│ HTML/CSS/JS │
└──────────────┘

User clicks "Generate Poem"
│
▼
┌─────────────┐
│ API Gateway │
│ POST /generate
└──────┬──────┘
│
▼
┌─────────────┐
│ Lambda │
│ Node.js │
└──────┬──────┘
│
▼
┌─────────────┐
│ Groq API │
│ AI │
└──────┬──────┘
│
▼
POEM JSON

CloudFormation ties the AWS infrastructure together and makes the deployment reproducible. Instead of manually creating every AWS resource, the infrastructure can be provisioned from the YAML template.
This serverless architecture also means there is no always-running application server to maintain. The backend runs when requests arrive, making the architecture a good fit for a small creative application and AWS Free Tier experimentation.

What I Learned

This challenge gave me the opportunity to combine several areas that I had been learning separately into one complete application.
One of the biggest things I learned was how to connect a frontend application to an AI API through a serverless backend. It is easy to call an AI API from a simple script, but building the complete flow from a browser request to API Gateway, Lambda, an external AI service, and then back to the browser required thinking carefully about request formats, error handling, API responses, and security.
I also learned more about AWS Lambda and API Gateway and how they can be used to create a backend without maintaining a traditional server.
Another important lesson was infrastructure as code. Using CloudFormation made me think about AWS infrastructure as a system rather than a collection of resources created manually. Defining the resources, permissions, dependencies, and outputs in YAML makes the deployment much easier to reproduce.
Finally, I learned that a creative AI application does not need to be complicated to be useful. The most important part of VerseCraft AI is the experience: giving someone a blank box, letting them express an idea, and turning that idea into something creative.

Try VerseCraft AI

I built VerseCraft AI as a small experiment in combining creative expression, generative AI, and serverless AWS infrastructure.
If you have an idea, a feeling, a memory, or simply a sentence in your head, give it to VerseCraft and see where it takes you.
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