Featured Prompt

AI Travel Planner

A professional-grade system prompt designed to build complex, multi-destination travel itineraries with budget tracking and real-time activity suggestions.

system_prompt.txt
Develop a modern, interactive, one-page web application called "AI Travel Planner" that allows users to input a destination, travel days, and budget, and receive a fully detailed, AI-generated itinerary with images, hotels, and a downloadable PDF. The web app should be visually appealing, responsive, and optimized for performance.
Requirements
1. Tech Stack
Frontend: HTML, Tailwind CSS, JS (ES6+ modules)
Optional Backend (for advanced AI usage): Node.js / Express
AI Integration: Google Generative AI (Gemini-2.5-flash-preview)
PDF Generation: html2pdf.js
Icons: Phosphor Icons
Fonts: Google Fonts ("Outfit")
Image API: Pollinations.ai for scenic travel images
2. Layout & Sections
Hero Section
Full-width gradient background (dark theme: indigo, purple, blue)
Animated floating background blobs (glassmorphism effect)
Title: “Explore the Unseen” (gradient text)
Subtitle: “Visual. Smart. Personalized.”
Search form:
Destination (text input)
Days (select dropdown)
Budget (select dropdown)
Submit button with icon
Content Area
Initial state: placeholder image & message
Loading state: spinner & message
Error message: styled alert box
Trip results:
Trip Header: Image, title, summary, cost, days, currency
Daily Itinerary Tabs: Clickable day buttons
Daily Content: Day theme image, activities timeline
Hotels: Cards with image, name, price, rating, description
Map Preview: Interactive map placeholder
PDF download button
3. Styling
Use Tailwind CSS for responsive design
Apply Glassmorphism for cards and buttons
Smooth hover animations, transitions, and fade-in effects
Custom animations:
Fade-in on scroll or element load
Background pulsating blobs in hero
Hide scrollbar for horizontal tabs (overflow-x-auto + no-scrollbar class)
4. Functionality
Form Submission
Trigger AI generation using Google Generative AI
Build JSON prompt for AI:

{
  "trip_title": "string",
  "summary": "string",
  "currency": "string",
  "total_estimated_cost": "string",
  "daily_plan": [
    {
      "day": number,
      "theme": "string",
      "best_image_keyword": "string",
      "activities": [{"time": "string", "activity": "string", "description": "string", "location": "string", "cost": "string"}]
    }
  ],
  "hotels": [
    {"name": "string", "rating": "string", "price_per_night": "string", "description": "string", "image_keyword": "string"}
  ]
}
Show loader while generating content
Display error message if API fails
Render Trip Results
Trip Header: Show large scenic image + overlay info
Daily Tabs & Content: Highlight active day, update activities
Hotels: Display rating, price, and description cards
Map Preview: Static/interactive placeholder
PDF Generation: Download full trip details as PDF
Image Integration
Use Pollinations.ai for scenic AI-generated images
Generate images based on keywords (destination, day theme, hotel name)
UI/UX
Responsive on mobile, tablet, desktop
Smooth transitions and hover effects
Clear separation of content sections
Accessibility: form labels, readable fonts, contrast
5. JavaScript Logic
Modular, clean, readable ES6+ code
Functions:
renderTripHeader(data)
renderDayTabs(days)
renderDayContent(day)
renderHotels(hotels)
switchDay(index)
downloadPDF()
State Management:
currentTripData holds API response
activeDayIndex tracks currently selected day
Event Listeners:
Form submit → generate itinerary
Day tabs → switch content
PDF button → generate PDF
6. Extra Features
Smooth loading animations
Clickable day tabs with highlighted active state
Glass cards for cost, days, and currency
PDF download with html2pdf.js
Fallback images if AI API fails
Output
Fully interactive, visually appealing AI travel planner
Works in modern browsers
AI generates structured JSON → dynamically updates DOM
Exportable PDF for full itinerary
Application Blueprint

iOS-Style AI Chat App

Build a production-ready, PWA-enabled AI chatting application with a native iOS aesthetic and persistent memory using LocalDB.

chat_app_system.md
You are a senior full-stack engineer and UI/UX designer. Your task is to build a web-based AI chatting application similar to ChatGPT.

Core Requirements:
1. Interface
- The app must have an iOS-like interface with smooth, native-feeling UI and animations.
- The application should be a single-page app focused entirely on the chat experience.

2. Chat Interface
- Users must be able to chat with an AI in real time.
- The main screen should be a clean chat view where conversations happen.
- Messages should appear in a modern, iOS-style chat layout.

3. Conversation History & Memory
- Use a LocalDB (local database such as IndexedDB or equivalent) to store conversation history.
- Each chat session must be persisted locally.
- The AI must be able to recall previous messages within a chat session to maintain conversational context.
- Users should be able to return to past conversations and continue chatting seamlessly.

4. Conversation History & Navigation
- Include a side menu (sidebar) similar to ChatGPT.
- The sidebar must display conversation history.
- Users should be able to select past conversations from the sidebar.
- Include a clearly visible “New Chat” button in the sidebar that starts a fresh conversation.

5. Landing / Empty State
- When there is no active conversation, show a landing state inside the chat view.
- This landing state should include quick-start prompt suggestions (clickable buttons).
- Clicking a suggestion should immediately send that prompt to the AI.

6. Backend & AI Integration
- Set up a backend service to handle AI requests.
- Integrate the backend with Google Gemini API for AI responses.
- The API key will be provided separately and must be handled securely.
- The backend should support passing full conversation context from LocalDB to Gemini for accurate responses.

7. Progressive Web App (PWA)
- The app must be fully installable as a Progressive Web App (PWA).

8. Overall Experience
- Prioritize performance, simplicity, and clean design.
- Match ChatGPT-level usability while keeping the UI minimal and iOS-inspired.
- Ensure the architecture is scalable and production-ready.

Optimized

Fine-tuned for Web IDE App AI Agent models.

Verified

Tested against 50+ unique travel scenarios.

Mobile Ready

Perfect for planning on the go with Web IDE.