Keywords AI

GUIDEHow I Built a Free AI SEO Tool in Just 2 Hours
September 20, 2024

Check out my AI SEO description generator here: https://seo.keywordsai.co/

SEO is crucial for startups, focusing on two key strategies: increasing website traffic and adding backlinks. To boost traffic, I developed a free AI SEO description generator in just 2 hours. This tool streamlines the process of creating clear, concise descriptions for blog posts, making them more searchable on Google and other engines. Users can paste content or upload files to generate SEO-friendly descriptions using LLM technology.

This blog post will detail the tools used to build this AI app and how I monitor its performance.

Website Layout (0.5h)

I leveraged AI to help design the entire website layout. By simply communicating my requirements to Claude-3.5-Sonnet, I received detailed and polished front-end code.

For this project, my specific requirements were:

  • Utilize the App Router from Next.js
  • Include a text area for users to paste their blog content
  • Implement a drag-and-drop zone for file uploads
  • Provide options for users to select their preferred LLM
  • Include "Generate," "Reset," and "Copy" buttons

By clearly defining these requirements, the AI was able to quickly generate a functional and user-friendly layout, significantly reducing development time

Integrate LLMs into my codebase (1h)

Choosing the right LLM from the thousands available can be challenging. After comparing over 50 LLMs, I selected GPT-4o-mini as the primary, free LLM for all users. However, I also wanted to offer Claude-3.5-Sonnet and GPT-4o as premium options. To efficiently integrate multiple LLMs, I needed an AI gateway that could call different models using the same format.

The solution: Keywords AI's LLM proxy, which supports 200+ LLMs using a unified format and offers additional functionalities. I utilized its OpenAI SDK framework to call these three models. When a user selects their preferred model in the front end, the corresponding model ID is passed to the Keywords AI API.

A key advantage of using Keywords AI is the ability to create and manage prompts on their platform. This feature allows me to test and iterate prompts without modifying any code. I can easily connect my application to the desired prompt by simply passing a prompt ID to the API, streamlining the development process.

As Claude-3.5-Sonnet and GPT-4o are more expensive than GPT-4o-mini, I couldn't offer them for free. Instead, I implemented a system allowing users to use their own OpenAI/Anthropic API keys for these premium models. Keywords AI supports this feature through a customer_credential parameter, which routes LLM requests through the user's API key.

To accommodate this, I added a text field in the front end where users can input their API keys to access GPT-4o and Claude-3.5-Sonnet. This approach allows me to offer premium options without incurring additional costs.

Paragraph Image
Deploy the app and monitor it

I deployed my app to Vercel and redirected the domain to seo.keywordsai.co. The entire deployment process was remarkably smooth, demonstrating that anyone can launch an app publicly in under 10 minutes.

After announcing the app on various social media channels, it attracted some initial users. As my goal is to make this tool beneficial for content creators, iterating and improving it has become a daily task. To ensure a positive user experience and guide future developments, monitoring the app's performance is crucial.

Using Keywords AI's usage dashboard and logs page, I can:

  • Track the actual usage of my product
  • Monitor LLM performance
  • Debug any problematic LLM outputs
Paragraph Image

This data-driven approach allows me to:

  • Understand how users are interacting with the tool
  • Identify areas for improvement
  • Ensure the tool remains helpful and efficient

By continuously monitoring and refining the app based on real user data, I can make informed decisions to enhance its functionality and user experience.

Best of all, this product is open-source! You're welcome to self-host it on your own computer. Check out the repository here: SEO description generator.

About Keywords AIKeywords AI is the leading developer platform for LLM applications.
Keywords AIPowering the best AI startups.
Keywords AI - the LLM observability platform.
Backed byCombinator