AI NFT Assistant - UI Design & Implementation Guide
Recommended UI Design
Option 1: Mode Toggle (β Recommended)
Add a toggle at the top of the NFT Mint Studio to switch between "Form Mode" and "AI Mode":
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β NFT Mint Studio β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β [π Form Mode] [π€ AI Mode] β Toggle buttons β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β [Content switches based on selected mode] β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββPros:
β Clean integration with existing UI
β Easy to switch between methods
β Doesn't clutter the interface
β Natural workflow
Option 2: New Wizard Step
Add "AI Assistant" as the first step in the wizard:
Pros:
β Fits existing wizard pattern
β Can skip if user prefers form
Cons:
β οΈ Adds extra step
β οΈ Might feel redundant
Option 3: Button/Modal Overlay
Add an "Use AI Assistant" button that opens a modal:
Visual Design Specifications
Color Scheme
Primary: Portal's existing color scheme
AI accent: Purple/Blue gradient (
rgba(99, 102, 241, 1)torgba(147, 51, 234, 1))Success: Green (
rgba(34, 197, 94, 1))Error: Red (
rgba(239, 68, 68, 1))
Layout
Container: Max-width 800px, centered
Chat Interface: Scrollable message area, fixed input at bottom
Messages: User messages (right-aligned, blue), AI messages (left-aligned, gray)
Preview: Card layout showing parsed NFT details
Typography
Headings: Inter, 1.25rem, weight 500
Body: Inter, 0.875rem, weight 400
Labels: Inter, 0.75rem, weight 400, uppercase with letter-spacing
Interactive Elements
Input Field: Multi-line textarea, rounded corners, subtle border
Send Button: Gradient background, rounded, hover effects
Example Buttons: Subtle background, border, hover effects
Create Button: Prominent, green gradient when ready
Implementation Steps
Step 1: Add Mode Toggle to NFT Mint Studio
Modify nft-mint-studio.js to add a mode state and toggle UI:
Step 2: Integrate AI Assistant Component
Load the AI assistant when AI mode is active:
Step 3: Add Backend Endpoint (or use existing)
Create an endpoint to handle AI parsing, or integrate with STAR API if available.
Step 4: Add Styling
Add CSS styles to match portal design (already included in inline styles in ai-nft-assistant.js).
File Structure
Next Steps
β Review this design proposal
βοΈ Modify
nft-mint-studio.jsto add mode toggleβοΈ Integrate
ai-nft-assistant.jsβοΈ Create backend endpoint for AI parsing (or use client-side)
βοΈ Test the integration
βοΈ Add styling refinements
βοΈ Add error handling and edge cases
Last updated