AI Prompts for Adding AI Features: Free AI Prompt | SheCodes

Free AI prompt · The Code Book

AI Prompts for Adding AI Features

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

The prompt

“Set up the Gemini API in my Next.js app using the free tier. Create an /api/chat route that uses the latest Gemini Flash model with streaming, and show me the env variable I need and where to get the API key.”

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

AI Prompts for Adding AI Features

“Add an AI chat widget using the OpenAI API with streaming responses. Show messages in a chat bubble layout with the user on the right and AI on the left. Include a text input and send button.”

AI Prompts for Adding AI Features

“Add a 'Generate Description' button next to my product form. When clicked, use the AI to generate a product description based on the product name and category fields. Show a loading spinner.”

AI Prompts for Adding AI Features

“Add an AI-powered search to my documentation site. Use OpenAI embeddings to find the most relevant docs based on the user's question, then generate a natural language answer with citations.”