Stop duplicate processing: Free AI Prompt | SheCodes

Free AI prompt · The Launch Book

Stop duplicate processing

A ready-to-use prompt from the chapter Webhooks. Paste it into Claude, ChatGPT, Lovable, Bolt or any AI coding tool.

The prompt

“My webhook is sometimes doing the same thing twice because Stripe retries. Make my webhook smart enough to recognize when it's seen a message before and skip it. Explain what you changed in plain English so I understand.”

How to use it

  1. Copy the prompt and paste it into your AI coding tool.
  2. Check the result in the preview, then ask for changes one at a time: "make the buttons bigger", "use my brand colours".
  3. Read the chapter to understand why it works and what to do next.

More prompts like this

All prompts

Set up a stripe webhook

“Set up a Stripe webhook for my app. I want to be notified whenever a subscription starts, changes, is cancelled, or when a payment succeeds or fails. When any of those things happen, update the matching customer in my database so I know who is currently a paying customer. Make sure the webhook is verified so no one can fake a message. Walk me through, step by step, where to find the webhook secret in the Stripe dashboard and where to save it safely in my project.”

Help me test my webhook

“I want to test my Stripe webhook on my laptop before deploying. Walk me through installing the Stripe CLI step by step: tell me exactly what to type in the terminal, what each command does, and how I'll know it's working. Then show me how to fire a fake "payment succeeded" message at my app so I can see my code react to it.”

Log every webhook for debugging

“Keep a simple log of every webhook my app receives from any service. For each one, save the service name, what happened, when, and whether it was verified successfully. Build me a hidden /admin/webhooks page where I can see the list and click any one to see the details. This will help me figure out what's going wrong when something breaks.”

Make my webhook faster

“My webhook is taking too long to respond and Stripe is giving up on it. Change it so my app says "got it!" to Stripe immediately, then does the actual work in the background. Walk me through what you changed.”

Copy this mega-prompt:

“Set up comprehensive SEO for my website. For every page, add a unique title (under 60 characters) and description (under 160 characters) that include relevant keywords. Add social sharing previews so links look good when shared on social media, including a 1200×630 preview image. Make sure every image has descriptive alt text. Generate a sitemap that automatically updates when new pages are added. Make sure search engines can find all my public pages but are blocked from crawling my admin area and behind-the-scenes endpoints. Make sure all headings follow a logical order (one main heading per page, then sub-headings below it). Add structured data for [FAQ pages / blog posts / products, pick what applies to your site].”

Add seo to every page

“Add SEO to every page of my Next.js app. Include page titles, meta descriptions, Open Graph tags, and a sitemap. Make sure each page has a unique title under 60 characters.”