Add 3 files
Browse files- README.md +7 -5
- index.html +672 -19
- prompts.txt +1 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: adgenie
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: red
|
| 5 |
+
colorTo: blue
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,672 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>AdGenie - Simple Google Ads Management</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
.chat-bubble {
|
| 11 |
+
border-radius: 20px;
|
| 12 |
+
max-width: 80%;
|
| 13 |
+
animation: fadeIn 0.3s ease-in-out;
|
| 14 |
+
}
|
| 15 |
+
.user-bubble {
|
| 16 |
+
border-bottom-right-radius: 0;
|
| 17 |
+
margin-left: auto;
|
| 18 |
+
}
|
| 19 |
+
.bot-bubble {
|
| 20 |
+
border-bottom-left-radius: 0;
|
| 21 |
+
margin-right: auto;
|
| 22 |
+
}
|
| 23 |
+
@keyframes fadeIn {
|
| 24 |
+
from { opacity: 0; transform: translateY(10px); }
|
| 25 |
+
to { opacity: 1; transform: translateY(0); }
|
| 26 |
+
}
|
| 27 |
+
.progress-bar {
|
| 28 |
+
height: 8px;
|
| 29 |
+
transition: width 0.5s ease-in-out;
|
| 30 |
+
}
|
| 31 |
+
.slide-up {
|
| 32 |
+
animation: slideUp 0.5s ease-out;
|
| 33 |
+
}
|
| 34 |
+
@keyframes slideUp {
|
| 35 |
+
from { transform: translateY(20px); opacity: 0; }
|
| 36 |
+
to { transform: translateY(0); opacity: 1; }
|
| 37 |
+
}
|
| 38 |
+
.pulse {
|
| 39 |
+
animation: pulse 2s infinite;
|
| 40 |
+
}
|
| 41 |
+
@keyframes pulse {
|
| 42 |
+
0% { transform: scale(1); }
|
| 43 |
+
50% { transform: scale(1.05); }
|
| 44 |
+
100% { transform: scale(1); }
|
| 45 |
+
}
|
| 46 |
+
</style>
|
| 47 |
+
</head>
|
| 48 |
+
<body class="bg-gray-50 font-sans">
|
| 49 |
+
<!-- Main Container -->
|
| 50 |
+
<div class="max-w-md mx-auto bg-white min-h-screen shadow-lg relative overflow-hidden">
|
| 51 |
+
<!-- Header -->
|
| 52 |
+
<header class="bg-gradient-to-r from-purple-600 to-indigo-600 text-white p-4 flex items-center justify-between">
|
| 53 |
+
<div class="flex items-center">
|
| 54 |
+
<div class="w-10 h-10 bg-white rounded-full flex items-center justify-center mr-3">
|
| 55 |
+
<i class="fas fa-magic text-purple-600 text-xl"></i>
|
| 56 |
+
</div>
|
| 57 |
+
<h1 class="text-xl font-bold">AdGenie</h1>
|
| 58 |
+
</div>
|
| 59 |
+
<div class="flex items-center space-x-2">
|
| 60 |
+
<button class="w-8 h-8 rounded-full bg-white bg-opacity-20 flex items-center justify-center">
|
| 61 |
+
<i class="fas fa-bell text-white"></i>
|
| 62 |
+
</button>
|
| 63 |
+
<button class="w-8 h-8 rounded-full bg-white bg-opacity-20 flex items-center justify-center">
|
| 64 |
+
<i class="fas fa-question text-white"></i>
|
| 65 |
+
</button>
|
| 66 |
+
</div>
|
| 67 |
+
</header>
|
| 68 |
+
|
| 69 |
+
<!-- Main Content Area - Changes based on state -->
|
| 70 |
+
<main id="mainContent" class="p-4 pb-20">
|
| 71 |
+
<!-- Welcome Screen (Step 1) -->
|
| 72 |
+
<div id="welcomeScreen" class="text-center pt-8">
|
| 73 |
+
<div class="w-24 h-24 mx-auto bg-gradient-to-r from-purple-100 to-indigo-100 rounded-full flex items-center justify-center mb-6">
|
| 74 |
+
<i class="fas fa-magic text-purple-600 text-4xl"></i>
|
| 75 |
+
</div>
|
| 76 |
+
<h2 class="text-2xl font-bold text-gray-800 mb-2">Hi! I'm AdGenie</h2>
|
| 77 |
+
<p class="text-gray-600 mb-6">Your personal ad assistant 👋</p>
|
| 78 |
+
<p class="text-gray-700 mb-8">Let's grow your business with Google Ads - no experience needed!</p>
|
| 79 |
+
<button onclick="startOnboarding()" class="bg-purple-600 hover:bg-purple-700 text-white font-medium py-3 px-8 rounded-full shadow-md transition duration-300 pulse">
|
| 80 |
+
Let's get started
|
| 81 |
+
</button>
|
| 82 |
+
</div>
|
| 83 |
+
|
| 84 |
+
<!-- Onboarding Chat (Step 1) -->
|
| 85 |
+
<div id="onboardingChat" class="hidden">
|
| 86 |
+
<div class="flex items-center mb-4">
|
| 87 |
+
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-3">
|
| 88 |
+
<i class="fas fa-magic text-purple-600"></i>
|
| 89 |
+
</div>
|
| 90 |
+
<h2 class="text-lg font-semibold text-gray-800">Let's set up your first campaign</h2>
|
| 91 |
+
</div>
|
| 92 |
+
|
| 93 |
+
<div id="chatContainer" class="mb-4 space-y-3 max-h-96 overflow-y-auto pb-4">
|
| 94 |
+
<!-- Chat messages will be inserted here -->
|
| 95 |
+
</div>
|
| 96 |
+
|
| 97 |
+
<div id="inputContainer" class="hidden">
|
| 98 |
+
<!-- Dynamic input will be inserted here -->
|
| 99 |
+
</div>
|
| 100 |
+
</div>
|
| 101 |
+
|
| 102 |
+
<!-- Campaign Summary (Step 2) -->
|
| 103 |
+
<div id="campaignSummary" class="hidden slide-up">
|
| 104 |
+
<div class="flex items-center mb-6">
|
| 105 |
+
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-3">
|
| 106 |
+
<i class="fas fa-rocket text-purple-600"></i>
|
| 107 |
+
</div>
|
| 108 |
+
<h2 class="text-lg font-semibold text-gray-800">Your campaign is ready!</h2>
|
| 109 |
+
</div>
|
| 110 |
+
|
| 111 |
+
<div class="bg-gray-50 rounded-xl p-5 mb-6">
|
| 112 |
+
<div class="flex items-center mb-4">
|
| 113 |
+
<div class="w-8 h-8 bg-purple-100 rounded-full flex items-center justify-center mr-3">
|
| 114 |
+
<i class="fas fa-bullseye text-purple-600 text-sm"></i>
|
| 115 |
+
</div>
|
| 116 |
+
<h3 class="font-medium text-gray-800">Campaign Goal</h3>
|
| 117 |
+
</div>
|
| 118 |
+
<p class="text-gray-700 ml-11 mb-4">Get more website visits and sales</p>
|
| 119 |
+
|
| 120 |
+
<div class="flex items-center mb-4">
|
| 121 |
+
<div class="w-8 h-8 bg-purple-100 rounded-full flex items-center justify-center mr-3">
|
| 122 |
+
<i class="fas fa-heading text-purple-600 text-sm"></i>
|
| 123 |
+
</div>
|
| 124 |
+
<h3 class="font-medium text-gray-800">Ad Headlines</h3>
|
| 125 |
+
</div>
|
| 126 |
+
<div class="space-y-2 ml-11 mb-4">
|
| 127 |
+
<div class="flex items-center">
|
| 128 |
+
<input type="text" value="Handmade Candles - Free Shipping" class="border border-gray-300 rounded-lg px-3 py-2 w-full focus:outline-none focus:ring-2 focus:ring-purple-200">
|
| 129 |
+
</div>
|
| 130 |
+
<div class="flex items-center">
|
| 131 |
+
<input type="text" value="Premium Soy Candles - 20% Off Today" class="border border-gray-300 rounded-lg px-3 py-2 w-full focus:outline-none focus:ring-2 focus:ring-purple-200">
|
| 132 |
+
</div>
|
| 133 |
+
<div class="flex items-center">
|
| 134 |
+
<input type="text" value="Eco-Friendly Candles - Buy 2 Get 1 Free" class="border border-gray-300 rounded-lg px-3 py-2 w-full focus:outline-none focus:ring-2 focus:ring-purple-200">
|
| 135 |
+
</div>
|
| 136 |
+
</div>
|
| 137 |
+
|
| 138 |
+
<div class="flex items-center mb-4">
|
| 139 |
+
<div class="w-8 h-8 bg-purple-100 rounded-full flex items-center justify-center mr-3">
|
| 140 |
+
<i class="fas fa-users text-purple-600 text-sm"></i>
|
| 141 |
+
</div>
|
| 142 |
+
<h3 class="font-medium text-gray-800">Target Audience</h3>
|
| 143 |
+
</div>
|
| 144 |
+
<p class="text-gray-700 ml-11 mb-4">Women aged 25–45, Czech Republic</p>
|
| 145 |
+
|
| 146 |
+
<div class="flex items-center mb-4">
|
| 147 |
+
<div class="w-8 h-8 bg-purple-100 rounded-full flex items-center justify-center mr-3">
|
| 148 |
+
<i class="fas fa-wallet text-purple-600 text-sm"></i>
|
| 149 |
+
</div>
|
| 150 |
+
<h3 class="font-medium text-gray-800">Daily Budget</h3>
|
| 151 |
+
</div>
|
| 152 |
+
<div class="ml-11 mb-4">
|
| 153 |
+
<input type="range" min="100" max="5000" step="100" value="1000" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer">
|
| 154 |
+
<div class="flex justify-between mt-1">
|
| 155 |
+
<span class="text-sm text-gray-500">100 CZK</span>
|
| 156 |
+
<span class="text-sm font-medium text-purple-600">1000 CZK</span>
|
| 157 |
+
<span class="text-sm text-gray-500">5000 CZK</span>
|
| 158 |
+
</div>
|
| 159 |
+
</div>
|
| 160 |
+
</div>
|
| 161 |
+
|
| 162 |
+
<button onclick="launchCampaign()" class="w-full bg-purple-600 hover:bg-purple-700 text-white font-medium py-3 px-4 rounded-lg shadow-md transition duration-300 flex items-center justify-center">
|
| 163 |
+
<i class="fas fa-paper-plane mr-2"></i> Launch Campaign
|
| 164 |
+
</button>
|
| 165 |
+
</div>
|
| 166 |
+
|
| 167 |
+
<!-- Campaign Tracker (Step 3) -->
|
| 168 |
+
<div id="campaignTracker" class="hidden slide-up">
|
| 169 |
+
<div class="flex items-center mb-6">
|
| 170 |
+
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-3">
|
| 171 |
+
<i class="fas fa-chart-line text-purple-600"></i>
|
| 172 |
+
</div>
|
| 173 |
+
<h2 class="text-lg font-semibold text-gray-800">Your Campaign is Live!</h2>
|
| 174 |
+
</div>
|
| 175 |
+
|
| 176 |
+
<div class="bg-gray-50 rounded-xl p-5 mb-6">
|
| 177 |
+
<div class="flex items-center justify-between mb-4">
|
| 178 |
+
<div class="flex items-center">
|
| 179 |
+
<div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center mr-3">
|
| 180 |
+
<i class="fas fa-calendar-alt text-green-600 text-sm"></i>
|
| 181 |
+
</div>
|
| 182 |
+
<h3 class="font-medium text-gray-800">Campaign Timeline</h3>
|
| 183 |
+
</div>
|
| 184 |
+
<span class="text-sm bg-green-100 text-green-800 px-2 py-1 rounded">Active</span>
|
| 185 |
+
</div>
|
| 186 |
+
<p class="text-gray-700 ml-11 mb-4">Running May 4 – May 18</p>
|
| 187 |
+
|
| 188 |
+
<div class="flex items-center mb-4">
|
| 189 |
+
<div class="w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center mr-3">
|
| 190 |
+
<i class="fas fa-sync-alt text-blue-600 text-sm"></i>
|
| 191 |
+
</div>
|
| 192 |
+
<h3 class="font-medium text-gray-800">Current Status</h3>
|
| 193 |
+
</div>
|
| 194 |
+
<p class="text-gray-700 ml-11 mb-4">Campaign under review by Google (usually takes 1-2 hours)</p>
|
| 195 |
+
|
| 196 |
+
<div class="flex items-center mb-4">
|
| 197 |
+
<div class="w-8 h-8 bg-yellow-100 rounded-full flex items-center justify-center mr-3">
|
| 198 |
+
<i class="fas fa-edit text-yellow-600 text-sm"></i>
|
| 199 |
+
</div>
|
| 200 |
+
<h3 class="font-medium text-gray-800">Quick Actions</h3>
|
| 201 |
+
</div>
|
| 202 |
+
<div class="ml-11">
|
| 203 |
+
<button class="text-purple-600 hover:text-purple-800 font-medium flex items-center">
|
| 204 |
+
<i class="fas fa-pencil-alt mr-2"></i> Edit Ad Content
|
| 205 |
+
</button>
|
| 206 |
+
</div>
|
| 207 |
+
</div>
|
| 208 |
+
|
| 209 |
+
<div class="bg-blue-50 border border-blue-100 rounded-xl p-4 mb-6">
|
| 210 |
+
<div class="flex items-start">
|
| 211 |
+
<div class="w-6 h-6 bg-blue-100 rounded-full flex items-center justify-center mr-3 mt-1">
|
| 212 |
+
<i class="fas fa-info-circle text-blue-600 text-sm"></i>
|
| 213 |
+
</div>
|
| 214 |
+
<div>
|
| 215 |
+
<h3 class="font-medium text-blue-800 mb-1">What's happening now?</h3>
|
| 216 |
+
<p class="text-blue-700 text-sm">We're setting up your campaign with Google. You'll get a notification when it's live. In the meantime, you can edit your ad text if needed.</p>
|
| 217 |
+
</div>
|
| 218 |
+
</div>
|
| 219 |
+
</div>
|
| 220 |
+
</div>
|
| 221 |
+
|
| 222 |
+
<!-- Performance Report (Step 4) -->
|
| 223 |
+
<div id="performanceReport" class="hidden slide-up">
|
| 224 |
+
<div class="flex items-center mb-6">
|
| 225 |
+
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-3">
|
| 226 |
+
<i class="fas fa-chart-pie text-purple-600"></i>
|
| 227 |
+
</div>
|
| 228 |
+
<h2 class="text-lg font-semibold text-gray-800">Your AdGenie Update</h2>
|
| 229 |
+
</div>
|
| 230 |
+
|
| 231 |
+
<div class="bg-gray-50 rounded-xl p-5 mb-6">
|
| 232 |
+
<div class="grid grid-cols-3 gap-4 text-center mb-6">
|
| 233 |
+
<div class="bg-white p-3 rounded-lg shadow-sm">
|
| 234 |
+
<div class="text-2xl font-bold text-purple-600">1,560</div>
|
| 235 |
+
<div class="text-xs text-gray-500">Views</div>
|
| 236 |
+
</div>
|
| 237 |
+
<div class="bg-white p-3 rounded-lg shadow-sm">
|
| 238 |
+
<div class="text-2xl font-bold text-green-600">78</div>
|
| 239 |
+
<div class="text-xs text-gray-500">Clicks</div>
|
| 240 |
+
</div>
|
| 241 |
+
<div class="bg-white p-3 rounded-lg shadow-sm">
|
| 242 |
+
<div class="text-2xl font-bold text-blue-600">5</div>
|
| 243 |
+
<div class="text-xs text-gray-500">Sales</div>
|
| 244 |
+
</div>
|
| 245 |
+
</div>
|
| 246 |
+
|
| 247 |
+
<div class="flex items-center mb-4">
|
| 248 |
+
<div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center mr-3">
|
| 249 |
+
<i class="fas fa-check-circle text-green-600 text-sm"></i>
|
| 250 |
+
</div>
|
| 251 |
+
<h3 class="font-medium text-gray-800">Performance Summary</h3>
|
| 252 |
+
</div>
|
| 253 |
+
<p class="text-gray-700 ml-11 mb-4">Your campaign is performing well compared to similar businesses!</p>
|
| 254 |
+
|
| 255 |
+
<div class="flex items-center mb-4">
|
| 256 |
+
<div class="w-8 h-8 bg-yellow-100 rounded-full flex items-center justify-center mr-3">
|
| 257 |
+
<i class="fas fa-lightbulb text-yellow-600 text-sm"></i>
|
| 258 |
+
</div>
|
| 259 |
+
<h3 class="font-medium text-gray-800">Smart Suggestion</h3>
|
| 260 |
+
</div>
|
| 261 |
+
<p class="text-gray-700 ml-11 mb-4">We suggest testing a stronger call-to-action to increase conversions.</p>
|
| 262 |
+
|
| 263 |
+
<div class="ml-11">
|
| 264 |
+
<div class="bg-white border border-gray-200 rounded-lg p-4 mb-4">
|
| 265 |
+
<p class="font-medium text-gray-800 mb-2">New Ad Variant:</p>
|
| 266 |
+
<p class="text-purple-600">🌿 Buy 2 candles, get 1 free. Limited time!</p>
|
| 267 |
+
</div>
|
| 268 |
+
</div>
|
| 269 |
+
</div>
|
| 270 |
+
|
| 271 |
+
<button onclick="acceptSuggestion()" class="w-full bg-purple-600 hover:bg-purple-700 text-white font-medium py-3 px-4 rounded-lg shadow-md transition duration-300 flex items-center justify-center mb-3">
|
| 272 |
+
<i class="fas fa-check-circle mr-2"></i> Improve Now
|
| 273 |
+
</button>
|
| 274 |
+
<button class="w-full bg-white hover:bg-gray-50 text-gray-800 font-medium py-3 px-4 rounded-lg border border-gray-300 shadow-sm transition duration-300 flex items-center justify-center">
|
| 275 |
+
<i class="fas fa-clock mr-2"></i> Maybe Later
|
| 276 |
+
</button>
|
| 277 |
+
</div>
|
| 278 |
+
|
| 279 |
+
<!-- Dashboard (Step 5) -->
|
| 280 |
+
<div id="dashboardView" class="hidden slide-up">
|
| 281 |
+
<div class="flex items-center mb-6">
|
| 282 |
+
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-3">
|
| 283 |
+
<i class="fas fa-tachometer-alt text-purple-600"></i>
|
| 284 |
+
</div>
|
| 285 |
+
<h2 class="text-lg font-semibold text-gray-800">Your Campaign Health</h2>
|
| 286 |
+
</div>
|
| 287 |
+
|
| 288 |
+
<div class="bg-gray-50 rounded-xl p-5 mb-6">
|
| 289 |
+
<div class="flex items-center mb-4">
|
| 290 |
+
<div class="w-8 h-8 bg-purple-100 rounded-full flex items-center justify-center mr-3">
|
| 291 |
+
<i class="fas fa-bullseye text-purple-600 text-sm"></i>
|
| 292 |
+
</div>
|
| 293 |
+
<h3 class="font-medium text-gray-800">Goal Progress</h3>
|
| 294 |
+
</div>
|
| 295 |
+
<div class="ml-11 mb-4">
|
| 296 |
+
<p class="text-gray-700 mb-2">Reach 10 sales</p>
|
| 297 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 298 |
+
<div class="bg-purple-600 h-2.5 rounded-full progress-bar" style="width: 50%"></div>
|
| 299 |
+
</div>
|
| 300 |
+
<p class="text-right text-sm text-gray-500 mt-1">5/10</p>
|
| 301 |
+
</div>
|
| 302 |
+
|
| 303 |
+
<div class="flex items-center mb-4">
|
| 304 |
+
<div class="w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center mr-3">
|
| 305 |
+
<i class="fas fa-lightbulb text-blue-600 text-sm"></i>
|
| 306 |
+
</div>
|
| 307 |
+
<h3 class="font-medium text-gray-800">Tip of the Week</h3>
|
| 308 |
+
</div>
|
| 309 |
+
<div class="ml-11 mb-4 bg-white p-3 rounded-lg border border-blue-100">
|
| 310 |
+
<p class="text-gray-700">Customers mostly buy on Sundays — would you like to boost your Sunday ads?</p>
|
| 311 |
+
</div>
|
| 312 |
+
|
| 313 |
+
<div class="flex items-center mb-4">
|
| 314 |
+
<div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center mr-3">
|
| 315 |
+
<i class="fas fa-calendar text-green-600 text-sm"></i>
|
| 316 |
+
</div>
|
| 317 |
+
<h3 class="font-medium text-gray-800">Schedule Adjustment</h3>
|
| 318 |
+
</div>
|
| 319 |
+
<div class="ml-11">
|
| 320 |
+
<p class="text-gray-700 mb-3">We can shift more of your budget to weekends when customers are most active.</p>
|
| 321 |
+
<div class="flex space-x-3">
|
| 322 |
+
<button onclick="acceptScheduleChange()" class="flex-1 bg-green-600 hover:bg-green-700 text-white font-medium py-2 px-4 rounded-lg shadow-sm transition duration-300">
|
| 323 |
+
Accept
|
| 324 |
+
</button>
|
| 325 |
+
<button class="flex-1 bg-white hover:bg-gray-50 text-gray-800 font-medium py-2 px-4 rounded-lg border border-gray-300 shadow-sm transition duration-300">
|
| 326 |
+
Review
|
| 327 |
+
</button>
|
| 328 |
+
</div>
|
| 329 |
+
</div>
|
| 330 |
+
</div>
|
| 331 |
+
</div>
|
| 332 |
+
|
| 333 |
+
<!-- Next Campaign (Step 6) -->
|
| 334 |
+
<div id="nextCampaign" class="hidden slide-up">
|
| 335 |
+
<div class="flex items-center mb-6">
|
| 336 |
+
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-3">
|
| 337 |
+
<i class="fas fa-arrow-up text-purple-600"></i>
|
| 338 |
+
</div>
|
| 339 |
+
<h2 class="text-lg font-semibold text-gray-800">Ready to Grow More?</h2>
|
| 340 |
+
</div>
|
| 341 |
+
|
| 342 |
+
<div class="bg-gray-50 rounded-xl p-5 mb-6">
|
| 343 |
+
<p class="text-gray-700 mb-6">Your first campaign is doing great! Let's set your next 2-week goal.</p>
|
| 344 |
+
|
| 345 |
+
<div class="space-y-4 mb-6">
|
| 346 |
+
<div class="bg-white border border-gray-200 rounded-lg p-4 hover:border-purple-300 transition duration-300 cursor-pointer" onclick="selectGoal('returning')">
|
| 347 |
+
<div class="flex items-center">
|
| 348 |
+
<div class="w-6 h-6 bg-purple-100 rounded-full flex items-center justify-center mr-3">
|
| 349 |
+
<i class="fas fa-redo text-purple-600 text-xs"></i>
|
| 350 |
+
</div>
|
| 351 |
+
<h3 class="font-medium text-gray-800">Drive more returning customers</h3>
|
| 352 |
+
</div>
|
| 353 |
+
<p class="text-gray-600 text-sm mt-2 ml-9">Target people who visited before but didn't buy</p>
|
| 354 |
+
</div>
|
| 355 |
+
|
| 356 |
+
<div class="bg-white border border-gray-200 rounded-lg p-4 hover:border-purple-300 transition duration-300 cursor-pointer" onclick="selectGoal('bestseller')">
|
| 357 |
+
<div class="flex items-center">
|
| 358 |
+
<div class="w-6 h-6 bg-blue-100 rounded-full flex items-center justify-center mr-3">
|
| 359 |
+
<i class="fas fa-star text-blue-600 text-xs"></i>
|
| 360 |
+
</div>
|
| 361 |
+
<h3 class="font-medium text-gray-800">Promote your best-seller</h3>
|
| 362 |
+
</div>
|
| 363 |
+
<p class="text-gray-600 text-sm mt-2 ml-9">Boost sales of your most popular product</p>
|
| 364 |
+
</div>
|
| 365 |
+
|
| 366 |
+
<div class="bg-white border border-gray-200 rounded-lg p-4 hover:border-purple-300 transition duration-300 cursor-pointer" onclick="selectGoal('awareness')">
|
| 367 |
+
<div class="flex items-center">
|
| 368 |
+
<div class="w-6 h-6 bg-green-100 rounded-full flex items-center justify-center mr-3">
|
| 369 |
+
<i class="fas fa-eye text-green-600 text-xs"></i>
|
| 370 |
+
</div>
|
| 371 |
+
<h3 class="font-medium text-gray-800">Increase brand awareness</h3>
|
| 372 |
+
</div>
|
| 373 |
+
<p class="text-gray-600 text-sm mt-2 ml-9">Get more people to recognize your brand</p>
|
| 374 |
+
</div>
|
| 375 |
+
</div>
|
| 376 |
+
|
| 377 |
+
<div class="bg-yellow-50 border border-yellow-100 rounded-xl p-4 mb-6">
|
| 378 |
+
<div class="flex items-start">
|
| 379 |
+
<div class="w-6 h-6 bg-yellow-100 rounded-full flex items-center justify-center mr-3 mt-1">
|
| 380 |
+
<i class="fas fa-lightbulb text-yellow-600 text-sm"></i>
|
| 381 |
+
</div>
|
| 382 |
+
<div>
|
| 383 |
+
<h3 class="font-medium text-yellow-800 mb-1">Based on your data</h3>
|
| 384 |
+
<p class="text-yellow-700 text-sm">We recommend focusing on returning customers - they convert 3x better than new visitors!</p>
|
| 385 |
+
</div>
|
| 386 |
+
</div>
|
| 387 |
+
</div>
|
| 388 |
+
</div>
|
| 389 |
+
|
| 390 |
+
<button id="continueButton" class="w-full bg-purple-600 hover:bg-purple-700 text-white font-medium py-3 px-4 rounded-lg shadow-md transition duration-300 flex items-center justify-center">
|
| 391 |
+
<i class="fas fa-arrow-right mr-2"></i> Continue with Returning Customers
|
| 392 |
+
</button>
|
| 393 |
+
</div>
|
| 394 |
+
</main>
|
| 395 |
+
|
| 396 |
+
<!-- Bottom Navigation -->
|
| 397 |
+
<nav class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 flex justify-around max-w-md mx-auto">
|
| 398 |
+
<button onclick="showDashboard()" class="p-4 text-gray-500 hover:text-purple-600 transition duration-300 flex flex-col items-center">
|
| 399 |
+
<i class="fas fa-home text-lg"></i>
|
| 400 |
+
<span class="text-xs mt-1">Home</span>
|
| 401 |
+
</button>
|
| 402 |
+
<button onclick="showCampaigns()" class="p-4 text-gray-500 hover:text-purple-600 transition duration-300 flex flex-col items-center">
|
| 403 |
+
<i class="fas fa-rocket text-lg"></i>
|
| 404 |
+
<span class="text-xs mt-1">Campaigns</span>
|
| 405 |
+
</button>
|
| 406 |
+
<button onclick="showReports()" class="p-4 text-gray-500 hover:text-purple-600 transition duration-300 flex flex-col items-center">
|
| 407 |
+
<i class="fas fa-chart-bar text-lg"></i>
|
| 408 |
+
<span class="text-xs mt-1">Reports</span>
|
| 409 |
+
</button>
|
| 410 |
+
<button onclick="showSettings()" class="p-4 text-gray-500 hover:text-purple-600 transition duration-300 flex flex-col items-center">
|
| 411 |
+
<i class="fas fa-cog text-lg"></i>
|
| 412 |
+
<span class="text-xs mt-1">Settings</span>
|
| 413 |
+
</button>
|
| 414 |
+
</nav>
|
| 415 |
+
</div>
|
| 416 |
+
|
| 417 |
+
<script>
|
| 418 |
+
// Current state tracking
|
| 419 |
+
let currentStep = 1;
|
| 420 |
+
let onboardingAnswers = {};
|
| 421 |
+
let selectedGoal = 'returning';
|
| 422 |
+
|
| 423 |
+
// DOM elements
|
| 424 |
+
const welcomeScreen = document.getElementById('welcomeScreen');
|
| 425 |
+
const onboardingChat = document.getElementById('onboardingChat');
|
| 426 |
+
const chatContainer = document.getElementById('chatContainer');
|
| 427 |
+
const inputContainer = document.getElementById('inputContainer');
|
| 428 |
+
const campaignSummary = document.getElementById('campaignSummary');
|
| 429 |
+
const campaignTracker = document.getElementById('campaignTracker');
|
| 430 |
+
const performanceReport = document.getElementById('performanceReport');
|
| 431 |
+
const dashboardView = document.getElementById('dashboardView');
|
| 432 |
+
const nextCampaign = document.getElementById('nextCampaign');
|
| 433 |
+
const continueButton = document.getElementById('continueButton');
|
| 434 |
+
|
| 435 |
+
// Start onboarding process
|
| 436 |
+
function startOnboarding() {
|
| 437 |
+
welcomeScreen.classList.add('hidden');
|
| 438 |
+
onboardingChat.classList.remove('hidden');
|
| 439 |
+
|
| 440 |
+
// Start the chat
|
| 441 |
+
addBotMessage("What is your business called?");
|
| 442 |
+
showTextInput();
|
| 443 |
+
}
|
| 444 |
+
|
| 445 |
+
// Add a bot message to the chat
|
| 446 |
+
function addBotMessage(text) {
|
| 447 |
+
const messageDiv = document.createElement('div');
|
| 448 |
+
messageDiv.className = 'chat-bubble bot-bubble bg-gray-100 text-gray-800 p-4';
|
| 449 |
+
messageDiv.innerHTML = text;
|
| 450 |
+
chatContainer.appendChild(messageDiv);
|
| 451 |
+
chatContainer.scrollTop = chatContainer.scrollHeight;
|
| 452 |
+
}
|
| 453 |
+
|
| 454 |
+
// Add a user message to the chat
|
| 455 |
+
function addUserMessage(text) {
|
| 456 |
+
const messageDiv = document.createElement('div');
|
| 457 |
+
messageDiv.className = 'chat-bubble user-bubble bg-purple-600 text-white p-4';
|
| 458 |
+
messageDiv.innerHTML = text;
|
| 459 |
+
chatContainer.appendChild(messageDiv);
|
| 460 |
+
chatContainer.scrollTop = chatContainer.scrollHeight;
|
| 461 |
+
}
|
| 462 |
+
|
| 463 |
+
// Show text input field
|
| 464 |
+
function showTextInput() {
|
| 465 |
+
inputContainer.classList.remove('hidden');
|
| 466 |
+
inputContainer.innerHTML = `
|
| 467 |
+
<div class="flex items-center">
|
| 468 |
+
<input type="text" id="userInput" class="flex-1 border border-gray-300 rounded-l-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-purple-200" placeholder="Type your answer...">
|
| 469 |
+
<button onclick="submitAnswer()" class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-3 rounded-r-lg">
|
| 470 |
+
<i class="fas fa-paper-plane"></i>
|
| 471 |
+
</button>
|
| 472 |
+
</div>
|
| 473 |
+
`;
|
| 474 |
+
document.getElementById('userInput').focus();
|
| 475 |
+
}
|
| 476 |
+
|
| 477 |
+
// Show multiple choice options
|
| 478 |
+
function showOptions(options) {
|
| 479 |
+
inputContainer.classList.remove('hidden');
|
| 480 |
+
let optionsHTML = '<div class="grid grid-cols-1 gap-2">';
|
| 481 |
+
|
| 482 |
+
options.forEach(option => {
|
| 483 |
+
optionsHTML += `
|
| 484 |
+
<button onclick="selectOption('${option.value}')" class="w-full bg-white hover:bg-gray-100 border border-gray-200 text-gray-800 font-medium py-3 px-4 rounded-lg text-left">
|
| 485 |
+
${option.emoji ? option.emoji + ' ' : ''}${option.text}
|
| 486 |
+
</button>
|
| 487 |
+
`;
|
| 488 |
+
});
|
| 489 |
+
|
| 490 |
+
optionsHTML += '</div>';
|
| 491 |
+
inputContainer.innerHTML = optionsHTML;
|
| 492 |
+
}
|
| 493 |
+
|
| 494 |
+
// Submit text answer
|
| 495 |
+
function submitAnswer() {
|
| 496 |
+
const userInput = document.getElementById('userInput').value.trim();
|
| 497 |
+
if (userInput) {
|
| 498 |
+
addUserMessage(userInput);
|
| 499 |
+
|
| 500 |
+
// Store answer based on current question
|
| 501 |
+
if (currentStep === 1) {
|
| 502 |
+
onboardingAnswers.businessName = userInput;
|
| 503 |
+
currentStep++;
|
| 504 |
+
setTimeout(() => {
|
| 505 |
+
addBotMessage("What do you sell? (e.g., handmade candles, digital marketing services)");
|
| 506 |
+
showTextInput();
|
| 507 |
+
}, 800);
|
| 508 |
+
} else if (currentStep === 2) {
|
| 509 |
+
onboardingAnswers.product = userInput;
|
| 510 |
+
currentStep++;
|
| 511 |
+
setTimeout(() => {
|
| 512 |
+
addBotMessage("What's your main goal for this campaign?");
|
| 513 |
+
showOptions([
|
| 514 |
+
{ emoji: "💵", text: "More sales", value: "sales" },
|
| 515 |
+
{ emoji: "👀", text: "Brand awareness", value: "awareness" },
|
| 516 |
+
{ emoji: "📥", text: "Newsletter signups", value: "leads" }
|
| 517 |
+
]);
|
| 518 |
+
}, 800);
|
| 519 |
+
}
|
| 520 |
+
}
|
| 521 |
+
}
|
| 522 |
+
|
| 523 |
+
// Select an option from multiple choice
|
| 524 |
+
function selectOption(value) {
|
| 525 |
+
let displayText = '';
|
| 526 |
+
|
| 527 |
+
if (currentStep === 3) {
|
| 528 |
+
if (value === 'sales') displayText = "💵 More sales";
|
| 529 |
+
else if (value === 'awareness') displayText = "👀 Brand awareness";
|
| 530 |
+
else displayText = "📥 Newsletter signups";
|
| 531 |
+
|
| 532 |
+
onboardingAnswers.goal = value;
|
| 533 |
+
currentStep++;
|
| 534 |
+
} else if (currentStep === 4) {
|
| 535 |
+
// For demo purposes, we'll just show the campaign summary after selecting an option
|
| 536 |
+
completeOnboarding();
|
| 537 |
+
return;
|
| 538 |
+
}
|
| 539 |
+
|
| 540 |
+
addUserMessage(displayText);
|
| 541 |
+
|
| 542 |
+
if (currentStep === 3) {
|
| 543 |
+
setTimeout(() => {
|
| 544 |
+
addBotMessage("Who are your typical customers? (Select all that apply)");
|
| 545 |
+
showOptions([
|
| 546 |
+
{ emoji: "👩", text: "Women", value: "women" },
|
| 547 |
+
{ emoji: "👨", text: "Men", value: "men" },
|
| 548 |
+
{ emoji: "👵", text: "Seniors", value: "seniors" },
|
| 549 |
+
{ emoji: "👩💼", text: "Professionals", value: "professionals" }
|
| 550 |
+
]);
|
| 551 |
+
}, 800);
|
| 552 |
+
}
|
| 553 |
+
}
|
| 554 |
+
|
| 555 |
+
// Complete onboarding and show campaign summary
|
| 556 |
+
function completeOnboarding() {
|
| 557 |
+
onboardingChat.classList.add('hidden');
|
| 558 |
+
campaignSummary.classList.remove('hidden');
|
| 559 |
+
}
|
| 560 |
+
|
| 561 |
+
// Launch campaign (move to tracker view)
|
| 562 |
+
function launchCampaign() {
|
| 563 |
+
campaignSummary.classList.add('hidden');
|
| 564 |
+
campaignTracker.classList.remove('hidden');
|
| 565 |
+
|
| 566 |
+
// Simulate campaign approval after 3 seconds
|
| 567 |
+
setTimeout(() => {
|
| 568 |
+
document.querySelector('#campaignTracker .bg-green-100').classList.remove('bg-green-100', 'text-green-800');
|
| 569 |
+
document.querySelector('#campaignTracker .bg-green-100').classList.add('bg-blue-100', 'text-blue-800');
|
| 570 |
+
document.querySelector('#campaignTracker span').textContent = 'Live';
|
| 571 |
+
document.querySelector('#campaignTracker p:nth-of-type(2)').textContent = 'Campaign is now active and showing your ads!';
|
| 572 |
+
}, 3000);
|
| 573 |
+
}
|
| 574 |
+
|
| 575 |
+
// Accept performance suggestion
|
| 576 |
+
function acceptSuggestion() {
|
| 577 |
+
performanceReport.classList.add('hidden');
|
| 578 |
+
dashboardView.classList.remove('hidden');
|
| 579 |
+
}
|
| 580 |
+
|
| 581 |
+
// Accept schedule change
|
| 582 |
+
function acceptScheduleChange() {
|
| 583 |
+
const progressBar = document.querySelector('.progress-bar');
|
| 584 |
+
progressBar.style.width = '70%';
|
| 585 |
+
|
| 586 |
+
// Show success message
|
| 587 |
+
const dashboardContent = document.querySelector('#dashboardView > div');
|
| 588 |
+
const successDiv = document.createElement('div');
|
| 589 |
+
successDiv.className = 'bg-green-50 border border-green-200 rounded-lg p-3 mb-4 flex items-center';
|
| 590 |
+
successDiv.innerHTML = `
|
| 591 |
+
<i class="fas fa-check-circle text-green-500 mr-2"></i>
|
| 592 |
+
<span class="text-green-800 text-sm">Schedule updated! More budget will go to weekends.</span>
|
| 593 |
+
`;
|
| 594 |
+
dashboardContent.insertBefore(successDiv, dashboardContent.firstChild);
|
| 595 |
+
}
|
| 596 |
+
|
| 597 |
+
// Select a goal for next campaign
|
| 598 |
+
function selectGoal(goal) {
|
| 599 |
+
selectedGoal = goal;
|
| 600 |
+
|
| 601 |
+
// Update all option cards
|
| 602 |
+
document.querySelectorAll('#nextCampaign .bg-white').forEach(card => {
|
| 603 |
+
card.classList.remove('border-purple-300', 'bg-purple-50');
|
| 604 |
+
});
|
| 605 |
+
|
| 606 |
+
// Highlight selected card
|
| 607 |
+
if (goal === 'returning') {
|
| 608 |
+
document.querySelector('#nextCampaign .bg-white:nth-child(1)').classList.add('border-purple-300', 'bg-purple-50');
|
| 609 |
+
continueButton.innerHTML = '<i class="fas fa-arrow-right mr-2"></i> Continue with Returning Customers';
|
| 610 |
+
} else if (goal === 'bestseller') {
|
| 611 |
+
document.querySelector('#nextCampaign .bg-white:nth-child(2)').classList.add('border-purple-300', 'bg-purple-50');
|
| 612 |
+
continueButton.innerHTML = '<i class="fas fa-arrow-right mr-2"></i> Continue with Best-Seller';
|
| 613 |
+
} else {
|
| 614 |
+
document.querySelector('#nextCampaign .bg-white:nth-child(3)').classList.add('border-purple-300', 'bg-purple-50');
|
| 615 |
+
continueButton.innerHTML = '<i class="fas fa-arrow-right mr-2"></i> Continue with Awareness';
|
| 616 |
+
}
|
| 617 |
+
}
|
| 618 |
+
|
| 619 |
+
// Navigation functions
|
| 620 |
+
function showDashboard() {
|
| 621 |
+
hideAllViews();
|
| 622 |
+
dashboardView.classList.remove('hidden');
|
| 623 |
+
}
|
| 624 |
+
|
| 625 |
+
function showCampaigns() {
|
| 626 |
+
hideAllViews();
|
| 627 |
+
campaignTracker.classList.remove('hidden');
|
| 628 |
+
}
|
| 629 |
+
|
| 630 |
+
function showReports() {
|
| 631 |
+
hideAllViews();
|
| 632 |
+
performanceReport.classList.remove('hidden');
|
| 633 |
+
}
|
| 634 |
+
|
| 635 |
+
function showSettings() {
|
| 636 |
+
// In a real app, this would show settings
|
| 637 |
+
alert('Settings would appear here in the full app.');
|
| 638 |
+
}
|
| 639 |
+
|
| 640 |
+
// Helper to hide all main views
|
| 641 |
+
function hideAllViews() {
|
| 642 |
+
welcomeScreen.classList.add('hidden');
|
| 643 |
+
onboardingChat.classList.add('hidden');
|
| 644 |
+
campaignSummary.classList.add('hidden');
|
| 645 |
+
campaignTracker.classList.add('hidden');
|
| 646 |
+
performanceReport.classList.add('hidden');
|
| 647 |
+
dashboardView.classList.add('hidden');
|
| 648 |
+
nextCampaign.classList.add('hidden');
|
| 649 |
+
}
|
| 650 |
+
|
| 651 |
+
// For demo purposes - simulate moving through steps
|
| 652 |
+
setTimeout(() => {
|
| 653 |
+
// Uncomment to auto-advance through steps for demo
|
| 654 |
+
// startOnboarding();
|
| 655 |
+
// setTimeout(() => {
|
| 656 |
+
// document.getElementById('userInput').value = "Maria's Candles";
|
| 657 |
+
// submitAnswer();
|
| 658 |
+
// }, 1000);
|
| 659 |
+
// setTimeout(() => {
|
| 660 |
+
// document.getElementById('userInput').value = "Handmade soy candles";
|
| 661 |
+
// submitAnswer();
|
| 662 |
+
// }, 2500);
|
| 663 |
+
// setTimeout(() => {
|
| 664 |
+
// selectOption('sales');
|
| 665 |
+
// }, 4000);
|
| 666 |
+
// setTimeout(() => {
|
| 667 |
+
// selectOption('women');
|
| 668 |
+
// }, 5500);
|
| 669 |
+
}, 500);
|
| 670 |
+
</script>
|
| 671 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=LukasBe/adgenie" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 672 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
AdGenie: Make it possible for someone like Maria to launch, monitor, and improve Google Ads campaigns without needing to understand CPC, targeting settings, or Analytics dashboards. 🧭 Step-by-Step Workflow (With UI/UX Notes) 🟢 Step 1: Onboarding & Business Context (Day 0) 🔹 UI: Welcome Screen + Friendly Chatbot Avatar “Hi! I’m AdGenie, your personal ad assistant 👋” CTA: “Let’s get started” 🔹 Chatbot Questions (UI: large bubbles, single-tap answers where possible) “What is your business called?” → Text input “What do you sell?” → Short description + emoji prompt “What’s your main goal?” → Choose: [💵 More sales] [👀 Brand awareness] [📥 Newsletter signups] “Who are your typical customers?” → Age, region, interests (multiselect) ✅ Design Principle: Use progressive disclosure. Only one question at a time to reduce overwhelm. Use visuals, emojis, and light tone. 🟠 Step 2: AI Generates Initial Campaign (Day 0) 🔹 Summary Page (UI: Card Layout) 🎯 Campaign goal: “Get more website visits and sales” 🎨 3 ad headline suggestions (editable) 📍 Target: Women aged 25–45, Czech Republic 💰 Budget: 1000 CZK/month (editable slider) CTA: “Looks good! Launch campaign ✅” ✅ Design Tip: Avoid showing AdWords settings. Let AI pre-fill, but allow minor edits (budget, copy). 🟡 Step 3: Confirmation + Campaign Tracker (Day 0) 🔹 UI: Tracker Screen 📅 Campaign Timeline: “Running May 4–May 18” ⏳ Real-time status: “Campaign under review by Google” 🔄 Button: “Edit Ad Content” (until it’s active) ✅ UX Tip: Maintain trust by showing what's happening, even if user can’t influence it. 🟣 Step 4: Periodic Review Prompt (Day 14) 🔔 User gets email + in-app notification Subject: “Your AdGenie update is ready! 🧙♂️ See how your ads performed.” 🔹 UI: Report Card View (Mobile-first) 👁️ 1,560 views | ✅ 78 clicks | 🛒 5 sales (linked via GA4/ecommerce) 🚦 "Your campaign is performing well compared to similar businesses!" 🧠 "We suggest testing a stronger call-to-action.” 🔘 CTA: “Improve Now” → Leads to AI-generated new ad variant with preview: “🌿 Buy 2 candles, get 1 free. Limited time!” ✅ UX Flow: 1️⃣ Understand performance 2️⃣ See reason 3️⃣ Take action in 1–2 taps. 🔵 Step 5: Smart Goal Tracker (Ongoing) 🔹 Dashboard Tab: “Your Campaign Health” 📈 Goal Progress Bar: “Reach 10 sales” → [█████-----] 5/10 💡 Tip of the week: “Customers mostly buy on Sundays—boost Sunday ads?” 🔄 Schedule tweak: AI offers to shift budget more to weekends → 1-tap accept ✅ Design Insight: Visual goal progress tied to real business language (not ad jargon). 🔴 Step 6: Next Campaign Setup (Day 28) 🔔 Notification: “Want to grow more? Let’s set your next 2-week goal.” New goal prompt: “Drive more returning customers?” or “Promote your best-seller?” AdGenie uses past data to pre-suggest new strategy, audience, copy. ✅ UX Strategy: Continuous small wins → repeat engagement cycle. 🧾 Extras & Retention Features 💌 Email Digest: Bi-weekly summary + 1 suggested action 🎓 “Learn As You Go” Mode: Optional short tips under each metric (“What’s a bounce rate?”) 🔁 Autopilot Option: Let AdGenie auto-run minor tweaks (user can review via log) 💬 AI Q&A: Ask things like “Why did conversions drop this week?” – get simple answers 🧰 Tech + UI Design Stack (suggested) Frontend: React + Tailwind (mobile-first, card-based UI) Backend: Node.js or Python Flask for API glue AI layer: GPT-4 API + Ads API + GA4 Data storage: Firebase or Supabase for small teams Tracking Integration: Google Ads API + GA4 conversions import 🎯 Final UX Principles Recap Principle Implementation Speak human, not marketer “Let’s grow your sales” instead of “Optimize ROAS” Conversational onboarding Chat-first setup with emojis and image-based questions Action-oriented reviews Always include 1 smart CTA after data Visual simplicity Cards, progress bars, no tables or dropdown hell Trust-building transparency Explain delays, AI choices, and results in human terms
|