File size: 9,720 Bytes
72e5643 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Examples - AgentFlow Studio</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
</head>
<body class="bg-gray-900 text-white min-h-screen">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-8">
<div class="bg-gray-800 rounded-xl p-8 mb-8 text-center">
<h1 class="text-4xl font-bold mb-4">Example Projects</h1>
<p class="text-xl text-gray-300">Explore pre-built agent templates to get started quickly</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-12">
<!-- Example 1 -->
<div class="bg-gray-800 rounded-xl overflow-hidden hover:transform hover:scale-105 transition-all duration-300">
<div class="bg-blue-600 p-6">
<i data-feather="search" class="w-12 h-12 mb-4"></i>
<h3 class="text-xl font-semibold">Research Assistant</h3>
</div>
<div class="p-6">
<p class="text-gray-300 mb-4">An agent that can search the web and summarize information for research purposes.</p>
<ul class="text-sm text-gray-400 space-y-1 mb-4">
<li>• Web search tool integration</li>
<li>• Summarization capabilities</li>
<li>• Citation management</li>
</ul>
<button onclick="loadExample('research')" class="w-full bg-blue-600 hover:bg-blue-700 py-2 rounded-lg font-semibold">
Load Example
</button>
</div>
</div>
<!-- Example 2 -->
<div class="bg-gray-800 rounded-xl overflow-hidden hover:transform hover:scale-105 transition-all duration-300">
<div class="bg-green-600 p-6">
<i data-feather="shopping-cart" class="w-12 h-12 mb-4"></i>
<h3 class="text-xl font-semibold">E-commerce Assistant</h3>
</div>
<div class="p-6">
<p class="text-gray-300 mb-4">Helps customers find products, compare prices, and make purchasing decisions.</p>
<ul class="text-sm text-gray-400 space-y-1 mb-4">
<li>• Product catalog search</li>
<li>• Price comparison</li>
<li>• Recommendation engine</li>
</ul>
<button onclick="loadExample('ecommerce')" class="w-full bg-green-600 hover:bg-green-700 py-2 rounded-lg font-semibold">
Load Example
</button>
</div>
</div>
<!-- Example 3 -->
<div class="bg-gray-800 rounded-xl overflow-hidden hover:transform hover:scale-105 transition-all duration-300">
<div class="bg-purple-600 p-6">
<i data-feather="code" class="w-12 h-12 mb-4"></i>
<h3 class="text-xl font-semibold">Code Assistant</h3>
</div>
<div class="p-6">
<p class="text-gray-300 mb-4">A programming assistant that can write, debug, and explain code.</p>
<ul class="text-sm text-gray-400 space-y-1 mb-4">
<li>• Code generation</li>
<li>• Debugging tools</li>
<li>• Documentation lookup</li>
</ul>
<button onclick="loadExample('code')" class="w-full bg-purple-600 hover:bg-purple-700 py-2 rounded-lg font-semibold">
Load Example
</button>
</div>
</div>
<!-- Example 4 -->
<div class="bg-gray-800 rounded-xl overflow-hidden hover:transform hover:scale-105 transition-all duration-300">
<div class="bg-yellow-600 p-6">
<i data-feather="message-circle" class="w-12 h-12 mb-4"></i>
<h3 class="text-xl font-semibold">Customer Support</h3>
</div>
<div class="p-6">
<p class="text-gray-300 mb-4">Automated customer service agent with FAQ knowledge and ticket management.</p>
<ul class="text-sm text-gray-400 space-y-1 mb-4">
<li>• FAQ database</li>
<li>• Ticket creation</li>
<li>• Escalation protocols</li>
</ul>
<button onclick="loadExample('support')" class="w-full bg-yellow-600 hover:bg-yellow-700 py-2 rounded-lg font-semibold">
Load Example
</button>
</div>
</div>
<!-- Example 5 -->
<div class="bg-gray-800 rounded-xl overflow-hidden hover:transform hover:scale-105 transition-all duration-300">
<div class="bg-red-600 p-6">
<i data-feather="bar-chart" class="w-12 h-12 mb-4"></i>
<h3 class="text-xl font-semibold">Data Analyst</h3>
</div>
<div class="p-6">
<p class="text-gray-300 mb-4">Analyzes datasets, generates insights, and creates visualizations.</p>
<ul class="text-sm text-gray-400 space-y-1 mb-4">
<li>• Data processing</li>
<li>• Statistical analysis</li>
<li>• Visualization generation</li>
</ul>
<button onclick="loadExample('analyst')" class="w-full bg-red-600 hover:bg-red-700 py-2 rounded-lg font-semibold">
Load Example
</button>
</div>
</div>
<!-- Example 6 -->
<div class="bg-gray-800 rounded-xl overflow-hidden hover:transform hover:scale-105 transition-all duration-300">
<div class="bg-indigo-600 p-6">
<i data-feather="globe" class="w-12 h-12 mb-4"></i>
<h3 class="text-xl font-semibold">Multi-language Translator</h3>
</div>
<div class="p-6">
<p class="text-gray-300 mb-4">Translates text between multiple languages with context awareness.</p>
<ul class="text-sm text-gray-400 space-y-1 mb-4">
<li>• Multi-language support</li>
<li>• Context preservation</li>
<li>• Cultural adaptation</li>
</ul>
<button onclick="loadExample('translator')" class="w-full bg-indigo-600 hover:bg-indigo-700 py-2 rounded-lg font-semibold">
Load Example
</button>
</div>
</div>
</div>
<section class="bg-gray-800 rounded-xl p-8">
<h2 class="text-2xl font-semibold mb-6 text-center">How to Use Examples</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="text-center">
<div class="bg-blue-600 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<i data-feather="download" class="w-8 h-8"></i>
</div>
<h3 class="text-lg font-semibold mb-2">1. Load Example</h3>
<p class="text-gray-300">Click any example to load it into the builder canvas</p>
</div>
<div class="text-center">
<div class="bg-green-600 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<i data-feather="edit" class="w-8 h-8"></i>
</div>
<h3 class="text-lg font-semibold mb-2">2. Customize</h3>
<p class="text-gray-300">Modify the components to fit your specific needs</p>
</div>
<div class="text-center">
<div class="bg-purple-600 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<i data-feather="code" class="w-8 h-8"></i>
</div>
<h3 class="text-lg font-semibold mb-2">3. Export</h3>
<p class="text-gray-300">Generate Python code and integrate into your project</p>
</div>
</div>
</section>
</main>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="script.js"></script>
<script>
feather.replace();
function loadExample(exampleType) {
// Redirect to main page with example parameter
window.location.href = `/?example=${exampleType}`;
}
// Check if we have an example parameter in URL
const urlParams = new URLSearchParams(window.location.search);
const example = urlParams.get('example');
if (example) {
// This would be handled by the main page script
console.log('Loading example:', example);
}
</script>
</body>
</html> |