Topview Logo
  • Create viral videos with
    GPT-4o + Ads library
    Use GPT-4o to edit video empowered by Youtube & Tiktok & Facebook ads library. Turns your links or media assets into viral videos in one click.
    Try it free
    gpt video

    Create Free AI Tools With WordPress and Gemini in 3 Minutes

    blog thumbnail

    Introduction

    In this article, I will guide you through the process of creating an AI-powered tool on your WordPress website using Google Gemini—all for free! The specific tool we'll be building together is an AI-powered blog title generator. With this tool, you'll be able to enter a topic, hit generate, and receive a list of catchy blog titles. Additionally, I will show you how to adapt this process to create any AI tool of your choosing, be it for YouTube titles, email subject lines, or any other creative prompts. So, let’s dive in!

    Step 1: Set Up Your WordPress Website

    If you already have a WordPress website, you’re good to go! If not, you can easily set one up locally using LocalWP. Just visit localwp.com and download the free software to run WordPress on your PC.

    Step 2: Install WP Code Snippet Plugin

    1. Navigate to the Plugins section in your WordPress dashboard.
    2. Search for WP Code Snippet and install the plugin.
    3. Activate the plugin, then go to Code Snippets and click on Add New.
    4. Name your snippet something recognizable, like "AI Tool", and use the snippet linked in the description.
    5. Once you paste the snippet, select PHP snippet and click on Save.

    Now that your WordPress site is connected to Google Gemini, you'll need an API key from Gemini.

    Step 3: Obtain Your API Key from Google Gemini

    1. Open a new browser window and go to AI Studio on Google.
    2. In the Gemini API section, click on Get an API Key.
    3. Create your API key under any project. Copy the API key.
    4. Go back to your code snippet in WordPress and replace the placeholder API key with the one you copied.

    Step 4: Build the Tool Page

    1. Navigate to Pages and click Add New.
    2. Create a new page titled “AI Blog Title Generator.”
    3. Add a Custom HTML block and paste the additional code provided in the description.
    4. Publish your page.

    Now you have your AI Blog Title Generator set up! Enter a topic like “Digital Marketing” and hit Generate to see your catchy titles in real-time.

    Enhancing Your Tool

    Design Improvements

    You might want to make this tool visually appealing like other tools available online. Learning basic HTML and CSS can help you achieve this. Platforms like Skillshare offer valuable courses on these topics, allowing you to create polished designs in just a week.

    Building Other AI Tools

    The structure of this AI tool allows for easy modifications. Simply adjust the prompt that is sent to Gemini so you can create a YouTube title generator or any other tool. The key is to understand how the prompts work and how to retrieve structured JSON responses, which lets you manipulate the returned data effectively.

    Monetizing Your Tool

    Creating AI tools is not just for fun; you can also generate income. Implementing a credit system, similar to the points system on my website, allows users to purchase credits for using advanced features of the tools. This approach can lead to a steady income stream while increasing your website’s traffic through SEO.

    Conclusion

    Building AI tools with WordPress and Gemini is not only easy but provides a unique opportunity to engage users while creating potential income streams for your website. With the right knowledge, you can develop various tools to cater to different needs, making your site a go-to resource in your niche.


    Keywords

    • Google Gemini
    • WordPress
    • AI tools
    • Blog title generator
    • API key
    • HTML
    • CSS
    • Monetization
    • Credit system

    FAQ

    1. What do I need to get started?
    You will need a WordPress website and the WP Code Snippet plugin to create your AI tools.

    2. How do I get an API key for Google Gemini?
    You can obtain an API key by going to AI Studio on Google and following the instructions in the Gemini API section.

    3. Can I create different types of AI tools?
    Yes! You can easily modify the prompt in your code to create various types of tools, such as YouTube title generators or email subject line generators.

    4. Is it possible to monetize these tools?
    Absolutely! You can implement a credit or points system that allows users to purchase usage rights for advanced features of your tools, generating revenue for your website.

    Feel free to use this article, and don't hesitate to explore the world of AI tools on WordPress!

    One more thing

    In addition to the incredible tools mentioned above, for those looking to elevate their video creation process even further, Topview.ai stands out as a revolutionary online AI video editor.

    TopView.ai provides two powerful tools to help you make ads video in one click.

    Materials to Video: you can upload your raw footage or pictures, TopView.ai will edit video based on media you uploaded for you.

    Link to Video: you can paste an E-Commerce product link, TopView.ai will generate a video for you.

    You may also like