Skip to content
UPPER LAYER®

Case study · AI prompt enhancer · Product Build

PromptXAI prompt enhancer Case Study

A full-stack app that turns rough prompts into clear, AI-ready instructions formatted for ChatGPT, Claude, Gemini or Grok, with the AI work run as background jobs.

Type
Own product
Role
Design, backend, frontend, deployment
Status
Live at promptx.co.in
Service
Product Build
Last updated
PromptX browser landing page featuring Refine prompts headline and AI optimization features
PromptX mobile landing page with value proposition and Start Now call to action

The problem

Vague, under-specified prompts produce weak AI answers, and rewriting every prompt by hand doesn't scale.

What I built

PromptX takes a rough request and rewrites it into a structured prompt (role, mission, context, rules and output format) using Groq's OpenAI-compatible API. The Express backend queues each enhancement as a background job with BullMQ and Redis, so the request path stays fast while a dedicated worker makes the AI call.

Walkthrough

See it working

Enhancing a prompt end to end, in one minute.

What it does

The features that matter

What it actually does, one feature at a time.

01

Prompt enhancement

Type a rough request and get back a structured prompt with a role, mission, context, writing rules and output requirements, ready to paste into any assistant.

02

Built for your model

Pick ChatGPT, Claude, Gemini or Grok and the enhanced prompt is formatted for that model.

03

Conversations

Guests and signed-in users can create, list, rename, pin and delete conversations, and search across all of them from a quick-switch popup.

04

Accounts

Email and password or Google sign-in, with JWT access tokens and refresh tokens stored in MongoDB with TTL expiry.

05

Site assistant

A chat on the marketing site answers questions about PromptX itself, with suggested follow-ups.

06

Observable by default

A /health endpoint reports MongoDB, PostgreSQL and Redis status, a Bull Board dashboard shows the queue, and Pino logs carry request IDs.

Under the hood

How it works

The part nobody sees, step by step.

01

Validate

The prompt hits /api/ask, where Zod validates the request before anything else runs.

02

Queue

The API adds an enhancement job to the ai-jobs queue in Redis with BullMQ and returns straight away.

03

Enhance

A dedicated worker picks up the job and calls Groq to rewrite the prompt for the chosen model.

04

Store and serve

Conversations, messages and job state live in MongoDB; prompt history is saved to PostgreSQL on Supabase.

Screens

Every screen, as shipped

Captured from the live product at promptx.co.in.

The site

What PromptX does, and a preview of the chat on desktop and mobile.

PromptX landing page hero section with primary action buttons and product description
The landing page
PromptX feature highlights section showcasing prompt refinement, creativity, and speed benefits
What it does, in three lines
PromptX multi-device preview demonstrating responsive chat interface across desktop and mobile
The chat, previewed on desktop and mobile

Enhance a prompt

Pick a model, send a rough request, and get back a structured prompt.

PromptX chat interface with conversation history sidebar and AI model selector in input field
The chat, with history in the sidebar
PromptX model picker dropdown allowing selection between ChatGPT, Claude, Gemini, and Grok
1. Pick the model the prompt is for
PromptX optimized output showing structured prompt with Role, Mission, and Context guidelines
2. Get a structured prompt back
PromptX detailed prompt output specifying content framework, rules, copy button, and quality ratings
Rules and output format, ready to copy

Find your way around

Search every conversation, and ask the site itself about PromptX.

PromptX conversation search dialog with history list and live chat preview pane
Search and preview past conversations
PromptX embedded site assistant answering founder questions with suggested follow-up prompts
The site assistant answers questions about PromptX

On mobile

The same product on a phone, from the landing page to the chat.

PromptX mobile landing screen detailing AI prompt enhancement capabilities
Landing page
PromptX mobile chat preview section with download links for web, iOS, and Android platforms
The chat preview
PromptX mobile chat screen with model picker configured for ChatGPT optimization
The chat

The stack

Frontend
Next.js 16 · React 19 · TypeScript · Tailwind CSS 4
Backend
Node.js 20 · Express 5 · JWT auth · Zod · Pino
Data and AI
MongoDB (Mongoose) · PostgreSQL (Supabase) · Redis + BullMQ · Groq API
Delivery
Docker Compose · GitHub Actions · Render

The result

Tested

before every deploy: the backend Jest + Supertest suite (unit, integration and API auth tests) runs on every push and pull request, and Render deploys from main only after it passes

Source: GitHub Actions workflow .github/workflows/test.yml

Start a project

Tell me what needs to change

Share your product and the work you need. I'll help you find the right scope and next step.