SEO for AI Coders | SheCodes
Beginner 6 min read

SEO Guide for AI Coders

SEO (Search Engine Optimization) is how you help Google find your website and show it to people searching for what you offer. No coding needed: just tell your AI tool what to do. Try our Meta Tag Generator to create tags instantly.

In this chapter

  • What SEO actually means and how Google ranks pages
  • How to write meta tags AI tools understand
  • Prompts to add SEO basics to any AI-built site
  • The free tools that show how your site is doing

Why Does This Matter?

Live example
When someone searches "best coffee shops in Portland" on Google, the results don't appear randomly. Google decides which websites to show based on hundreds of signals. SEO is about making sure your site sends the right signals so Google shows it to the right people.
🔍Be discoverablePeople can't visit your site if they can't find it
🆓Free trafficUnlike ads, organic search traffic doesn't cost you per click
🏆Build trustSites on page 1 of Google are seen as more credible

The 3 Things Google Cares About Most

Page titles & descriptions Every page needs a clear title (what shows in the browser tab) and a short description (what shows under the title in Google results). These tell Google and visitors what your page is about.
Tell your AI tool:

“Add SEO titles and descriptions to every page. Keep titles under 60 characters and descriptions under 160 characters. Include relevant keywords naturally.”

Fast loading speed Google ranks faster sites higher. If your page takes more than 3 seconds to load, many visitors will leave before it even appears. See our performance guide for quick wins.
Tell your AI tool:

“Optimize my site for speed: compress images, use lazy loading for images below the fold, and make sure the page loads fast on mobile.”

Mobile-friendly design Google checks your site on a phone first, not a computer. If it looks bad or is hard to use on mobile, your rankings will drop.
Tell your AI tool:

“Make sure all pages are fully responsive and easy to use on mobile devices. Text should be readable without zooming.”

Your SEO Checklist

Ask your AI tool to check each of these. You can copy the whole list into a single prompt!

Every page has a unique title Must have The title shows in the browser tab and in Google search results. Each page should have its own descriptive title.
Every page has a description Must have This is the text snippet that appears under your title in Google. It should make people want to click.
Only one main heading per page Must have Each page should have one big heading (H1) that describes what the page is about. Think of it as the page's headline.
All images have descriptions Must have Every image needs a short text description (called 'alt text'). This helps Google understand your images and helps people who use screen readers.
Clean, readable URLs Important yoursite.com/about is better than yoursite.com/page?id=123. URLs should describe what's on the page.
Link between your own pages Important If you mention a topic on one page that has its own page, link to it. This helps Google find all your content.
Images are optimized Important Large images slow down your site. Ask your AI tool to compress them and use modern formats like WebP.
Site works over HTTPS Important The padlock icon in the browser. Most hosting platforms like Vercel provide this for free.
Live example
When someone shares your link on social media (Twitter, Facebook, LinkedIn, iMessage), a preview card appears with an image, title, and description. Without proper setup, the preview might show nothing, or the wrong thing.
🖼️Preview imageA banner image (1200×630 pixels) that represents your page. This is the biggest visual impact.
📝TitleThe headline that appears on the card. Can be different from your page title if you want.
💬DescriptionA short summary that appears under the title on the card.
Tell your AI tool:

“Add Open Graph meta tags to every page so links look good when shared on social media. Include a title, description, and a preview image (1200×630px). Also add Twitter card tags.”

Getting Fancy Results in Google

You know how some Google results show star ratings, event dates, or recipe details? That's called "structured data": extra info that tells Google to display your result in a special way.

📅 Events Shows dates, times, and the venue for workshops, meetups, or online events right in Google.
Prompt:

“Add event structured data to my events page with the event name, date, time, location, and ticket link.”

⭐ Reviews & ratings Star ratings that appear under your title in Google. Makes your result stand out.
Prompt:

“Add product review structured data with star ratings to my product pages.”

📍 Breadcrumbs Shows the page path (Home > Blog > Post) in Google, helping people understand your site structure.
Prompt:

“Add breadcrumb structured data to all pages so Google shows the page path in search results.”

📰 Articles Shows publish date and author info for blog posts and news articles.
Prompt:

“Add article structured data to my blog posts with the author name, publish date, and featured image.”

🛍️ Products Shows price and availability right in search results for online stores.
Prompt:

“Add product structured data to my product pages showing price, availability, and currency.”

🏪 Local business Shows your opening hours, address, and phone number when people search for your business.
Prompt:

“Add local business structured data to my homepage with my business name, address, opening hours, and phone number.”

Behind-the-Scenes Setup

These are one-time tasks your AI tool can handle. You set them up once and forget about them.

Sitemap A sitemap is like a table of contents for your website. It lists every page so Google knows what exists and can find everything.
Tell your AI tool:

“Generate a sitemap that automatically includes all pages on my site. It should update when I add new pages.”

Robots file This tells search engines which parts of your site to look at and which to ignore (like admin pages or API endpoints that aren't meant for visitors).
Tell your AI tool:

“Add a robots.txt file that allows search engines to index all public pages but blocks admin and API routes.”

The All-in-One SEO Prompt

Copy this mega-prompt into your AI tool to set up SEO for your entire site in one go.

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].”

After You Launch: Google Search Console

Live example
Google Search Console is a free tool from Google that shows you how your site is doing in search. It tells you what people searched to find you, which pages show up most, and if there are any problems Google found.
📊See which searches bring people to your site
📈Track how many people see and click your results
🐛Find out if Google has trouble reading any pages
📬Submit your sitemap so Google finds new pages faster
To set it up, search "Google Search Console", sign in with your Google account, and add your website URL. It's free and takes about 5 minutes. Make sure your site is deployed first so Google can reach it. For tracking visitors and behavior, see our analytics guide.

Prompt This

Copy-paste these prompts into your AI tool to apply what you just learned.

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.”

WRITE META DESCRIPTIONS

“Write meta descriptions for these pages: [list pages]. Each should be under 160 characters and include relevant keywords for search engines.”

ADD STRUCTURED DATA

“Add structured data (JSON-LD) to my [blog/product/FAQ] pages so Google can show rich results like star ratings, breadcrumbs, or article info in search results.”

Common Questions

How long does it take to show up on Google?

Usually a few days to a few weeks for your site to first appear. Ranking well for competitive terms can take months. SEO is a long game, so the sooner you start, the better.

Do I need to pay for SEO tools?

No! Google Search Console is free and gives you everything you need to start. Paid tools like Ahrefs or SEMrush are nice but completely optional, especially when you're starting out.

What are keywords and how do I find them?

Keywords are the words people type into Google. Think about what your target visitors would search for. Google's autocomplete suggestions (start typing and see what it suggests) are a great free way to find keywords.

Can my AI tool do all this for me?

Yes! Your AI tool can add titles, descriptions, social sharing tags, structured data, sitemaps, and image descriptions. Just use the prompts on this page. The only thing it can't do is write genuinely compelling content: that's where you come in.