| | <!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"> |
| | |
| | <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> |
| |
|
| | |
| | <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> |
| |
|
| | |
| | <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> |
| |
|
| | |
| | <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> |
| |
|
| | |
| | <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> |
| |
|
| | |
| | <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) { |
| | |
| | window.location.href = `/?example=${exampleType}`; |
| | } |
| | |
| | |
| | const urlParams = new URLSearchParams(window.location.search); |
| | const example = urlParams.get('example'); |
| | if (example) { |
| | |
| | console.log('Loading example:', example); |
| | } |
| | </script> |
| | </body> |
| | </html> |