Generate shareable links to ask ChatGPT, Microsoft Copilot, or Google Gemini anything with pre-filled prompts and animated demonstrations.
Ask AI For You is an open-source web application that simplifies the process of sharing AI queries. Instead of describing what to ask an AI assistant, just share a link—when someone opens it, they'll see an animated demonstration of your question being typed out, followed by a beautiful preview of what the AI interface looks like with your pre-filled prompt.
Perfect for:
- Content creators demonstrating AI capabilities
- Educators showing how to use AI tools
- Teams collaborating on AI-generated content
- Anyone who wants to share AI queries in a fun, visual way
- ChatGPT - Auto-generates direct URLs (no copy-paste needed!)
- Microsoft Copilot - Generate and share queryable links
- Google Gemini - Beautiful Gemini-themed interface
- Typing animation - Character-by-character typing simulation (200ms per character)
- Cursor movement - Mouse cursor animates from input field to button
- Step indicators - Two-step progress tracker: "Type your prompt" → "Go to the AI"
- Smooth transitions - Polished fade-in and slide-in effects
- Copy full URLs with one click
- Shareable links that auto-play animations
- Direct links to AI services with pre-filled prompts
- iframe preview showing exactly what users will see
- Provider-specific color themes
- Realistic message bubbles
- Preview-in-page animations without redirect
- Works seamlessly on desktop and mobile
- Touch-friendly interface
- Optimized for all screen sizes
- Next.js 14 - Server-side rendering and static optimization
- React 18 - Component-based UI
- TypeScript - Type-safe code
- Tailwind CSS - Utility-first styling
- Vercel Ready - One-click deployment
graph TB
subgraph Client["Client Layer"]
Page["page.tsx<br/>(Root Component)"]
SearchHandler["SearchParamsHandler<br/>(URL Query Parser)"]
HomeContent["HomeContent<br/>(Main UI Logic)"]
end
subgraph Components["Component Layer"]
Animation["PreviewAnimation<br/>(Typing Effect)"]
Preview["EmbeddedPreview<br/>(Mock Interface)"]
Logos["AILogos<br/>(SVG Components)"]
end
subgraph Utilities["Utility Layer"]
AI["ai.ts<br/>(URL Generation & Shortening)"]
end
subgraph External["External Services"]
ChatGPT["ChatGPT API"]
Copilot["Bing Chat"]
Gemini["Google Gemini"]
TinyURL["TinyURL Service"]
end
Page -->|Suspense Boundary| SearchHandler
SearchHandler -->|Query Params| HomeContent
HomeContent -->|Render| Animation
HomeContent -->|Render| Preview
Preview -->|Display| Logos
HomeContent -->|Generate URLs| AI
AI -->|Shorten| TinyURL
AI -->|Create Links| ChatGPT
AI -->|Create Links| Copilot
AI -->|Create Links| Gemini
letmeaskaiforyou/
├── src/
│ ├── app/
│ │ ├── layout.tsx # Root layout with Tailwind styles
│ │ ├── page.tsx # Main page with Suspense boundary
│ │ └── globals.css # Global styles and animations
│ ├── components/
│ │ ├── HomeContent.tsx # Main UI component with state management
│ │ ├── PreviewAnimation.tsx # Typing animation component
│ │ ├── EmbeddedPreview.tsx # Mock AI interface preview
│ │ ├── SearchParamsHandler.tsx # URL query parameter handler
│ │ └── AILogos.tsx # SVG logo components
│ ├── utils/
│ │ └── ai.ts # AI provider config & utilities
│ └── styles/
│ └── globals.css # Tailwind directives & animations
├── public/
├── package.json
├── tsconfig.json
├── tailwind.config.ts
├── postcss.config.js
├── next.config.js
└── vercel.json
- Node.js 18.x or higher
- npm or yarn or pnpm
# Clone the repository
git clone https://github.com/elicortez/letmeaskaiforyou.git
cd letmeaskaiforyou
# Install dependencies
npm install
# Start development server
npm run devOpen http://localhost:3000 in your browser.
# Start dev server with hot reload
npm run dev
# Build for production
npm run build
# Start production server
npm start
# Run linting
npm run lint
# Type check
npm run type-checksequenceDiagram
participant User as User
participant App as Let me Ask AI
participant AI as AI Service
User->>App: Select AI provider & enter question
User->>App: Click "Generate Link"
activate App
App->>App: Generate URL with query params
App->>App: Play 2-step animation
App->>App: Generate shortened URL
deactivate App
User->>User: Copy shareable link
User->>User: Share with others
activate App
Note over App: Friend opens the link
App->>App: Parse query parameters
App->>App: Auto-play animation sequence
App->>App: Show iframe preview
deactivate App
User->>App: Click "Go to ChatGPT" / "Preview Animation"
App->>AI: Redirect with pre-filled prompt
AI-->>User: Display AI interface
-
Select an AI Provider
- Choose from ChatGPT, Microsoft Copilot, or Google Gemini
- Each has its own color theme and branding
-
Type Your Question
- Enter any question or prompt you want to share
- Example: "How do I write a Python web scraper?"
-
Generate Link
- Click "Generate Link"
- Watch the smooth typing animation
- See the animated preview of the AI interface
-
Copy & Share
- Copy the full URL or the shortened version
- Generate a shareable link with animation
- Share on social media, docs, or messaging apps
Share links directly with query parameters:
https://letmeaskaiforyou.com/?q=your+question&ai=chatgpt
Parameters:
q- Your question (URL encoded)ai- AI provider (chatgpt,copilot,gemini)iframe- Set totrueto prevent automatic redirect (for previews)
When someone opens this link:
- ✅ The animation plays automatically
- ✅ The correct AI provider is pre-selected
- ✅ They can click to go directly to the AI service
- ✅ Step indicators show the typing and clicking progress
Edit the typing animation speed in src/app/animate/page.tsx:
const typingSpeed = 200; // milliseconds per character
// 200ms = current speed (slower, easier to read)
// 120ms = faster typing
// 50ms = very fastCustomize cursor paths in src/styles/globals.css:
@keyframes mouse-move-to-input {
0% { left: 10%; top: 5%; }
100% { left: 50%; top: 55%; }
}
@keyframes mouse-move-to-button {
0% { left: 50%; top: 55%; }
100% { left: 50%; top: 88%; }
}The two steps displayed at the top can be customized in src/app/animate/page.tsx:
- Step 1: "Type your prompt"
- Step 2: "Go to [AI Name]"
graph LR
A["User Input<br/>(Question + AI)"] --> B["HomeContent<br/>(State Manager)"]
B --> C["AI URL Generator<br/>(ai.ts)"]
C --> D["ChatGPT URL<br/>or<br/>Copilot/Gemini URL"]
C --> E["TinyURL Shortener<br/>(async)"]
E --> F["Short URL"]
B --> G["PreviewAnimation<br/>(Typing Effect)"]
G --> H["EmbeddedPreview<br/>(Mock Interface)"]
D --> I["Copy to Clipboard<br/>or<br/>Direct Redirect"]
F --> I
I --> J["Share Link<br/>or<br/>Open Service"]
- Push your code to GitHub
- Go to vercel.com
- Click "New Project"
- Import your GitHub repository
- Vercel auto-detects Next.js configuration
- Click "Deploy"
Environment Variables: Currently none required!
This is a standard Next.js app, so it works on:
- Netlify - Direct Next.js support
- Railway - Built-in Next.js deployment
- Docker - Full Docker support available
- Self-hosted - Standard Node.js server
interface AIProvider {
id: 'chatgpt' | 'copilot' | 'gemini';
name: string;
icon: string;
color: string; // Tailwind gradient class
headerBg: string; // Header background color
bubbleColor: string; // Chat bubble color
generateUrl: (query: string) => string;
}Copies text to user's clipboard.
import { copyToClipboard } from '@/utils/ai';
const success = await copyToClipboard(url);
// Returns: true if successfulGenerates URL for a specific AI provider.
const provider = AI_PROVIDERS.chatgpt;
const url = provider.generateUrl('How do I learn Python?');
// Returns: "https://chatgpt.com/?q=How+do+I+learn+Python%3F"See TROUBLESHOOTING.md for common issues and solutions.
Q: Animation is too fast/slow
- Edit
src/components/PreviewAnimation.tsx, line 23 - Change
typingSpeed = 120to your preferred milliseconds
Q: Preview doesn't show
- Make sure to click "Show Preview" button after animation completes
- Works for all three AI providers (they all show mock interfaces)
Q: URL not working
- Ensure your question doesn't contain special characters that break URLs
- Use the URL encoding that's built into the app
We welcome contributions! See CONTRIBUTING.md for guidelines.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Additional AI providers (Claude, Perplexity, etc.)
- Browser history for generated links
- Share directly to social media
- Dark/Light theme toggle
- API endpoint for programmatic link generation
- Browser extension for quick link generation
- Multi-language support
- Customizable animation speed in UI
- Analytics dashboard to track link usage
- Custom URL slugs/aliases
This project is open source and available under the MIT License - see LICENSE file for details.
- Built with Next.js
- Styled with Tailwind CSS
- Deployed with Vercel
- URL shortening by TinyURL
- Issues - Report bugs on GitHub Issues
- Discussions - Join our GitHub Discussions
If you find this project useful, please consider giving it a star! ⭐
Made with ❤️ by Eli Cortez