DEV Community

Cover image for Project - Prompt Mate (Your Personal AI Conversation Campaign )
Gaurav Mehra
Gaurav Mehra

Posted on

Project - Prompt Mate (Your Personal AI Conversation Campaign )

Education Track: Build Apps with Google AI Studio

πŸš€ Prompt Mate – Your Personal AI Conversation Companion using Next.js & Gemini API πŸ’¬

Hey DEV community! πŸ‘‹

I'm thrilled to introduce my latest project – Prompt Mate – an AI-powered chat interface built using Next.js and Google Cloud’s Gemini API via Google AI Studio.


πŸ’‘ What is Prompt Mate?

Prompt Mate is a Next.js web application that enables users to:

  • 🧠 Chat with an AI assistant powered by Google’s Gemini model.
  • ✍️ Send custom prompts and get intelligent, real-time responses.
  • πŸ“± Experience a responsive and clean UI across devices.
  • πŸ” Interact securely with Google Cloud-hosted functions.

Whether you're a developer, student, or AI enthusiast, Prompt Mate is designed to demonstrate the power of LLMs in a full-stack web application.


πŸ› οΈ Tech Stack

  • βš›οΈ Next.js – Full-stack React framework.
  • ☁️ Google Cloud Gemini API – Used via API key.
  • πŸ§ͺ Google AI Studio – For prompt testing and optimization .
  • 🌐 Tailwind CSS – For styling the UI.
  • πŸ” .env.local – Securing API keys in environment variables.
  • πŸ” API Routes – To safely call Gemini from the server side.

πŸ”§ Key Features

  • βœ… Fully responsive chat interface.
  • 🧠 Gemini AI-generated responses.
  • πŸ”’ API key protected backend route in Next.js.
  • πŸŒ™ Dark mode ready (optional toggle).
  • 🧼 Clean code structure and modular components.

πŸ“Έ


πŸ”— Live Demo & Code

πŸ” Live Preview: Visit Prompt Mate

πŸ’» GitHub Repo: View Source on GitHub


🧠 What I Learned

  • Seamlessly integrating Gemini API with Next.js serverless routes
  • Protecting API keys using .env.local and getServerSideProps
  • Building clean and intuitive UIs using Tailwind CSS
  • Testing and refining prompts with Google AI Studio

🎯 Final Thoughts

Working on Prompt Mate gave me a practical dive into generative AI development and deploying it on a modern full-stack framework.

It’s amazing how quickly you can build something powerful with the right APIs and tools.

I’d love your feedback and thoughts! 🌟

Feel free to fork, remix, or collaborate with me on future versions.

Top comments (0)