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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 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>Dify.ai Learning Platform - Master AI Development Without Coding</title>
|
| 7 |
+
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
|
| 8 |
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.0/css/all.min.css">
|
| 9 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
| 10 |
+
<style>
|
| 11 |
+
* {
|
| 12 |
+
font-family: 'Inter', sans-serif;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
.gradient-bg {
|
| 16 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
.card-hover {
|
| 20 |
+
transition: all 0.3s ease;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
.card-hover:hover {
|
| 24 |
+
transform: translateY(-5px);
|
| 25 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
.progress-bar {
|
| 29 |
+
background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
.code-block {
|
| 33 |
+
background: #1e293b;
|
| 34 |
+
color: #e2e8f0;
|
| 35 |
+
border-radius: 8px;
|
| 36 |
+
padding: 16px;
|
| 37 |
+
font-family: 'Monaco', 'Consolas', monospace;
|
| 38 |
+
font-size: 14px;
|
| 39 |
+
line-height: 1.5;
|
| 40 |
+
overflow-x: auto;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
.section-divider {
|
| 44 |
+
height: 1px;
|
| 45 |
+
background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
|
| 46 |
+
margin: 3rem 0;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
.learning-card {
|
| 50 |
+
border: 2px solid transparent;
|
| 51 |
+
background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #667eea, #764ba2) border-box;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
.project-card {
|
| 55 |
+
background: linear-gradient(145deg, #f8fafc, #e2e8f0);
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
@media print {
|
| 59 |
+
.no-print {
|
| 60 |
+
display: none;
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
</style>
|
| 64 |
+
</head>
|
| 65 |
+
<body class="bg-gray-50 text-gray-900">
|
| 66 |
+
<!-- Header -->
|
| 67 |
+
<header class="gradient-bg text-white py-16">
|
| 68 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 69 |
+
<div class="text-center">
|
| 70 |
+
<h1 class="text-5xl font-bold mb-6">Master Dify.ai</h1>
|
| 71 |
+
<p class="text-xl mb-8 max-w-3xl mx-auto opacity-90">
|
| 72 |
+
Build powerful AI applications without coding knowledge. Learn step-by-step with hands-on projects and real-world examples.
|
| 73 |
+
</p>
|
| 74 |
+
<div class="flex justify-center space-x-4">
|
| 75 |
+
<div class="bg-white bg-opacity-20 rounded-lg px-6 py-3">
|
| 76 |
+
<i class="fas fa-users text-2xl mb-2"></i>
|
| 77 |
+
<p class="text-sm">180,000+ Developers</p>
|
| 78 |
+
</div>
|
| 79 |
+
<div class="bg-white bg-opacity-20 rounded-lg px-6 py-3">
|
| 80 |
+
<i class="fas fa-project-diagram text-2xl mb-2"></i>
|
| 81 |
+
<p class="text-sm">No-Code Platform</p>
|
| 82 |
+
</div>
|
| 83 |
+
<div class="bg-white bg-opacity-20 rounded-lg px-6 py-3">
|
| 84 |
+
<i class="fas fa-rocket text-2xl mb-2"></i>
|
| 85 |
+
<p class="text-sm">Production Ready</p>
|
| 86 |
+
</div>
|
| 87 |
+
</div>
|
| 88 |
+
</div>
|
| 89 |
+
</div>
|
| 90 |
+
</header>
|
| 91 |
+
|
| 92 |
+
<!-- What is Dify Section -->
|
| 93 |
+
<section class="py-16 bg-white">
|
| 94 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 95 |
+
<div class="text-center mb-12">
|
| 96 |
+
<h2 class="text-4xl font-bold mb-6">What is Dify.ai?</h2>
|
| 97 |
+
<p class="text-xl text-gray-600 max-w-4xl mx-auto">
|
| 98 |
+
Dify is an open-source LLMOps platform that combines Backend-as-a-Service and LLMOps to streamline the development of generative AI solutions, making it accessible to both developers and non-technical innovators.
|
| 99 |
+
</p>
|
| 100 |
+
</div>
|
| 101 |
+
|
| 102 |
+
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
|
| 103 |
+
<div class="learning-card rounded-xl p-6 card-hover">
|
| 104 |
+
<div class="text-center">
|
| 105 |
+
<i class="fas fa-palette text-4xl text-purple-600 mb-4"></i>
|
| 106 |
+
<h3 class="text-xl font-semibold mb-3">Visual AI Orchestration</h3>
|
| 107 |
+
<p class="text-gray-600">Design AI workflows visually with drag-and-drop interface. No coding required.</p>
|
| 108 |
+
</div>
|
| 109 |
+
</div>
|
| 110 |
+
|
| 111 |
+
<div class="learning-card rounded-xl p-6 card-hover">
|
| 112 |
+
<div class="text-center">
|
| 113 |
+
<i class="fas fa-database text-4xl text-green-600 mb-4"></i>
|
| 114 |
+
<h3 class="text-xl font-semibold mb-3">Knowledge Base & RAG</h3>
|
| 115 |
+
<p class="text-gray-600">Build smart chatbots that can access and retrieve information from your documents.</p>
|
| 116 |
+
</div>
|
| 117 |
+
</div>
|
| 118 |
+
|
| 119 |
+
<div class="learning-card rounded-xl p-6 card-hover">
|
| 120 |
+
<div class="text-center">
|
| 121 |
+
<i class="fas fa-robot text-4xl text-blue-600 mb-4"></i>
|
| 122 |
+
<h3 class="text-xl font-semibold mb-3">AI Agents</h3>
|
| 123 |
+
<p class="text-gray-600">Create autonomous AI agents that can use tools and make decisions independently.</p>
|
| 124 |
+
</div>
|
| 125 |
+
</div>
|
| 126 |
+
|
| 127 |
+
<div class="learning-card rounded-xl p-6 card-hover">
|
| 128 |
+
<div class="text-center">
|
| 129 |
+
<i class="fas fa-code text-4xl text-red-600 mb-4"></i>
|
| 130 |
+
<h3 class="text-xl font-semibold mb-3">Prompt Engineering</h3>
|
| 131 |
+
<p class="text-gray-600">Master the art of prompt engineering with built-in IDE and testing tools.</p>
|
| 132 |
+
</div>
|
| 133 |
+
</div>
|
| 134 |
+
|
| 135 |
+
<div class="learning-card rounded-xl p-6 card-hover">
|
| 136 |
+
<div class="text-center">
|
| 137 |
+
<i class="fas fa-cogs text-4xl text-yellow-600 mb-4"></i>
|
| 138 |
+
<h3 class="text-xl font-semibold mb-3">Tool Integration</h3>
|
| 139 |
+
<p class="text-gray-600">Connect to external APIs and tools without writing complex integration code.</p>
|
| 140 |
+
</div>
|
| 141 |
+
</div>
|
| 142 |
+
|
| 143 |
+
<div class="learning-card rounded-xl p-6 card-hover">
|
| 144 |
+
<div class="text-center">
|
| 145 |
+
<i class="fas fa-chart-line text-4xl text-indigo-600 mb-4"></i>
|
| 146 |
+
<h3 class="text-xl font-semibold mb-3">Monitoring & Analytics</h3>
|
| 147 |
+
<p class="text-gray-600">Track performance, costs, and usage with comprehensive analytics dashboard.</p>
|
| 148 |
+
</div>
|
| 149 |
+
</div>
|
| 150 |
+
</div>
|
| 151 |
+
</div>
|
| 152 |
+
</section>
|
| 153 |
+
|
| 154 |
+
<div class="section-divider"></div>
|
| 155 |
+
|
| 156 |
+
<!-- Learning Path Overview -->
|
| 157 |
+
<section class="py-16">
|
| 158 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 159 |
+
<div class="text-center mb-12">
|
| 160 |
+
<h2 class="text-4xl font-bold mb-6">Your Learning Journey</h2>
|
| 161 |
+
<p class="text-xl text-gray-600">Follow our structured path from beginner to AI application expert</p>
|
| 162 |
+
</div>
|
| 163 |
+
|
| 164 |
+
<div class="space-y-8">
|
| 165 |
+
<div class="flex items-center">
|
| 166 |
+
<div class="flex-shrink-0 w-16 h-16 bg-blue-500 rounded-full flex items-center justify-center text-white font-bold text-xl">1</div>
|
| 167 |
+
<div class="ml-6 flex-1">
|
| 168 |
+
<h3 class="text-2xl font-semibold mb-2">Foundation</h3>
|
| 169 |
+
<p class="text-gray-600 mb-2">Learn the basics of AI, LLMs, and the Dify platform</p>
|
| 170 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 171 |
+
<div class="progress-bar h-2 rounded-full" style="width: 100%"></div>
|
| 172 |
+
</div>
|
| 173 |
+
</div>
|
| 174 |
+
</div>
|
| 175 |
+
|
| 176 |
+
<div class="flex items-center">
|
| 177 |
+
<div class="flex-shrink-0 w-16 h-16 bg-green-500 rounded-full flex items-center justify-center text-white font-bold text-xl">2</div>
|
| 178 |
+
<div class="ml-6 flex-1">
|
| 179 |
+
<h3 class="text-2xl font-semibold mb-2">First Projects</h3>
|
| 180 |
+
<p class="text-gray-600 mb-2">Build your first chatbot and AI agent with guided tutorials</p>
|
| 181 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 182 |
+
<div class="progress-bar h-2 rounded-full" style="width: 85%"></div>
|
| 183 |
+
</div>
|
| 184 |
+
</div>
|
| 185 |
+
</div>
|
| 186 |
+
|
| 187 |
+
<div class="flex items-center">
|
| 188 |
+
<div class="flex-shrink-0 w-16 h-16 bg-purple-500 rounded-full flex items-center justify-center text-white font-bold text-xl">3</div>
|
| 189 |
+
<div class="ml-6 flex-1">
|
| 190 |
+
<h3 class="text-2xl font-semibold mb-2">Advanced Workflows</h3>
|
| 191 |
+
<p class="text-gray-600 mb-2">Master complex workflows, API integrations, and optimization</p>
|
| 192 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 193 |
+
<div class="progress-bar h-2 rounded-full" style="width: 70%"></div>
|
| 194 |
+
</div>
|
| 195 |
+
</div>
|
| 196 |
+
</div>
|
| 197 |
+
|
| 198 |
+
<div class="flex items-center">
|
| 199 |
+
<div class="flex-shrink-0 w-16 h-16 bg-orange-500 rounded-full flex items-center justify-center text-white font-bold text-xl">4</div>
|
| 200 |
+
<div class="ml-6 flex-1">
|
| 201 |
+
<h3 class="text-2xl font-semibold mb-2">Production & Deployment</h3>
|
| 202 |
+
<p class="text-gray-600 mb-2">Deploy, monitor, and scale your AI applications</p>
|
| 203 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 204 |
+
<div class="progress-bar h-2 rounded-full" style="width: 40%"></div>
|
| 205 |
+
</div>
|
| 206 |
+
</div>
|
| 207 |
+
</div>
|
| 208 |
+
</div>
|
| 209 |
+
</div>
|
| 210 |
+
</section>
|
| 211 |
+
|
| 212 |
+
<div class="section-divider"></div>
|
| 213 |
+
|
| 214 |
+
<!-- Module 1: Foundation -->
|
| 215 |
+
<section class="py-16 bg-blue-50">
|
| 216 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 217 |
+
<div class="text-center mb-12">
|
| 218 |
+
<h2 class="text-4xl font-bold mb-6 text-blue-900">Module 1: Foundation</h2>
|
| 219 |
+
<p class="text-xl text-blue-700">Build your understanding of AI concepts and get started with Dify</p>
|
| 220 |
+
</div>
|
| 221 |
+
|
| 222 |
+
<div class="grid lg:grid-cols-2 gap-12">
|
| 223 |
+
<div>
|
| 224 |
+
<h3 class="text-2xl font-bold mb-6">Lesson 1.1: Understanding AI & LLMs</h3>
|
| 225 |
+
|
| 226 |
+
<div class="bg-white rounded-lg p-6 mb-6 shadow-sm">
|
| 227 |
+
<h4 class="text-lg font-semibold mb-4"><i class="fas fa-brain text-purple-600 mr-2"></i>What are Large Language Models?</h4>
|
| 228 |
+
<p class="text-gray-700 mb-4">
|
| 229 |
+
Large Language Models (LLMs) are artificial intelligence systems trained on vast amounts of text data. They can understand and generate human-like text, making them perfect for building conversational AI applications.
|
| 230 |
+
</p>
|
| 231 |
+
<div class="bg-blue-100 border-l-4 border-blue-500 p-4">
|
| 232 |
+
<p class="text-blue-800"><strong>Key Concept:</strong> Think of LLMs as extremely knowledgeable assistants that can help with almost any text-related task - from answering questions to writing content.</p>
|
| 233 |
+
</div>
|
| 234 |
+
</div>
|
| 235 |
+
|
| 236 |
+
<div class="bg-white rounded-lg p-6 mb-6 shadow-sm">
|
| 237 |
+
<h4 class="text-lg font-semibold mb-4"><i class="fas fa-window-maximize text-green-600 mr-2"></i>Understanding Context Windows</h4>
|
| 238 |
+
<p class="text-gray-700 mb-4">
|
| 239 |
+
A context window is the amount of text an LLM can "see" at once. It's like the model's working memory - everything it considers when generating a response.
|
| 240 |
+
</p>
|
| 241 |
+
<div class="code-block">
|
| 242 |
+
Context Window = Input Prompt + Previous Conversation + Output Space
|
| 243 |
+
|
| 244 |
+
Example:
|
| 245 |
+
- GPT-4: 8,000 tokens (~6,000 words)
|
| 246 |
+
- GPT-4 Turbo: 128,000 tokens (~96,000 words)
|
| 247 |
+
</div>
|
| 248 |
+
</div>
|
| 249 |
+
|
| 250 |
+
<div class="bg-white rounded-lg p-6 shadow-sm">
|
| 251 |
+
<h4 class="text-lg font-semibold mb-4"><i class="fas fa-vector-square text-orange-600 mr-2"></i>What are Embeddings?</h4>
|
| 252 |
+
<p class="text-gray-700 mb-4">
|
| 253 |
+
Embeddings convert text into numerical vectors that capture meaning. Similar concepts have similar vectors, enabling semantic search and knowledge retrieval.
|
| 254 |
+
</p>
|
| 255 |
+
<div class="bg-orange-100 border-l-4 border-orange-500 p-4">
|
| 256 |
+
<p class="text-orange-800"><strong>Real-world analogy:</strong> Like a GPS converting addresses into coordinates, embeddings convert words into mathematical coordinates that preserve meaning relationships.</p>
|
| 257 |
+
</div>
|
| 258 |
+
</div>
|
| 259 |
+
</div>
|
| 260 |
+
|
| 261 |
+
<div>
|
| 262 |
+
<h3 class="text-2xl font-bold mb-6">Lesson 1.2: Getting Started with Dify</h3>
|
| 263 |
+
|
| 264 |
+
<div class="bg-white rounded-lg p-6 mb-6 shadow-sm">
|
| 265 |
+
<h4 class="text-lg font-semibold mb-4"><i class="fas fa-rocket text-blue-600 mr-2"></i>Setting Up Your Account</h4>
|
| 266 |
+
<ol class="list-decimal list-inside space-y-2 text-gray-700">
|
| 267 |
+
<li>Visit <a href="https://dify.ai" class="text-blue-600 hover:underline">dify.ai</a> and create a free account</li>
|
| 268 |
+
<li>Verify your email address</li>
|
| 269 |
+
<li>Complete the onboarding tutorial</li>
|
| 270 |
+
<li>Explore the dashboard interface</li>
|
| 271 |
+
</ol>
|
| 272 |
+
</div>
|
| 273 |
+
|
| 274 |
+
<div class="bg-white rounded-lg p-6 mb-6 shadow-sm">
|
| 275 |
+
<h4 class="text-lg font-semibold mb-4"><i class="fas fa-key text-yellow-600 mr-2"></i>Configuring API Keys</h4>
|
| 276 |
+
<p class="text-gray-700 mb-4">To use AI models, you'll need API keys from model providers:</p>
|
| 277 |
+
<div class="space-y-3">
|
| 278 |
+
<div class="flex items-center p-3 bg-gray-50 rounded">
|
| 279 |
+
<i class="fas fa-check-circle text-green-500 mr-3"></i>
|
| 280 |
+
<span><strong>OpenAI:</strong> Get your API key from platform.openai.com</span>
|
| 281 |
+
</div>
|
| 282 |
+
<div class="flex items-center p-3 bg-gray-50 rounded">
|
| 283 |
+
<i class="fas fa-check-circle text-green-500 mr-3"></i>
|
| 284 |
+
<span><strong>Anthropic:</strong> Get Claude API key from console.anthropic.com</span>
|
| 285 |
+
</div>
|
| 286 |
+
<div class="flex items-center p-3 bg-gray-50 rounded">
|
| 287 |
+
<i class="fas fa-check-circle text-green-500 mr-3"></i>
|
| 288 |
+
<span><strong>Free Tier:</strong> Dify provides limited free usage for testing</span>
|
| 289 |
+
</div>
|
| 290 |
+
</div>
|
| 291 |
+
</div>
|
| 292 |
+
|
| 293 |
+
<div class="bg-white rounded-lg p-6 shadow-sm">
|
| 294 |
+
<h4 class="text-lg font-semibold mb-4"><i class="fas fa-compass text-purple-600 mr-2"></i>Dashboard Overview</h4>
|
| 295 |
+
<div class="grid grid-cols-2 gap-4">
|
| 296 |
+
<div class="text-center p-4 bg-purple-50 rounded-lg">
|
| 297 |
+
<i class="fas fa-comments text-2xl text-purple-600 mb-2"></i>
|
| 298 |
+
<p class="font-semibold">Studio</p>
|
| 299 |
+
<p class="text-sm text-gray-600">Build applications</p>
|
| 300 |
+
</div>
|
| 301 |
+
<div class="text-center p-4 bg-green-50 rounded-lg">
|
| 302 |
+
<i class="fas fa-database text-2xl text-green-600 mb-2"></i>
|
| 303 |
+
<p class="font-semibold">Knowledge</p>
|
| 304 |
+
<p class="text-sm text-gray-600">Manage data</p>
|
| 305 |
+
</div>
|
| 306 |
+
<div class="text-center p-4 bg-blue-50 rounded-lg">
|
| 307 |
+
<i class="fas fa-cog text-2xl text-blue-600 mb-2"></i>
|
| 308 |
+
<p class="font-semibold">Tools</p>
|
| 309 |
+
<p class="text-sm text-gray-600">Add integrations</p>
|
| 310 |
+
</div>
|
| 311 |
+
<div class="text-center p-4 bg-orange-50 rounded-lg">
|
| 312 |
+
<i class="fas fa-chart-bar text-2xl text-orange-600 mb-2"></i>
|
| 313 |
+
<p class="font-semibold">Logs</p>
|
| 314 |
+
<p class="text-sm text-gray-600">Monitor usage</p>
|
| 315 |
+
</div>
|
| 316 |
+
</div>
|
| 317 |
+
</div>
|
| 318 |
+
</div>
|
| 319 |
+
</div>
|
| 320 |
+
</div>
|
| 321 |
+
</section>
|
| 322 |
+
|
| 323 |
+
<div class="section-divider"></div>
|
| 324 |
+
|
| 325 |
+
<!-- Module 2: First Projects -->
|
| 326 |
+
<section class="py-16">
|
| 327 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 328 |
+
<div class="text-center mb-12">
|
| 329 |
+
<h2 class="text-4xl font-bold mb-6 text-green-900">Module 2: Your First AI Projects</h2>
|
| 330 |
+
<p class="text-xl text-green-700">Build real applications with step-by-step guidance</p>
|
| 331 |
+
</div>
|
| 332 |
+
|
| 333 |
+
<!-- Project 1: Smart Customer Service Bot -->
|
| 334 |
+
<div class="project-card rounded-xl p-8 mb-12 shadow-lg">
|
| 335 |
+
<div class="flex items-center mb-6">
|
| 336 |
+
<div class="bg-blue-500 text-white rounded-full w-12 h-12 flex items-center justify-center font-bold text-xl mr-4">1</div>
|
| 337 |
+
<h3 class="text-3xl font-bold">Project 1: Smart Customer Service Bot</h3>
|
| 338 |
+
</div>
|
| 339 |
+
|
| 340 |
+
<div class="grid lg:grid-cols-2 gap-8">
|
| 341 |
+
<div>
|
| 342 |
+
<h4 class="text-xl font-semibold mb-4">🎯 Learning Objectives</h4>
|
| 343 |
+
<ul class="space-y-2 text-gray-700">
|
| 344 |
+
<li class="flex items-start"><i class="fas fa-check text-green-500 mr-2 mt-1"></i>Understand Knowledge Bases and RAG</li>
|
| 345 |
+
<li class="flex items-start"><i class="fas fa-check text-green-500 mr-2 mt-1"></i>Learn about context windows and hallucinations</li>
|
| 346 |
+
<li class="flex items-start"><i class="fas fa-check text-green-500 mr-2 mt-1"></i>Master semantic search vs keyword search</li>
|
| 347 |
+
<li class="flex items-start"><i class="fas fa-check text-green-500 mr-2 mt-1"></i>Build your first chatbot application</li>
|
| 348 |
+
</ul>
|
| 349 |
+
|
| 350 |
+
<h4 class="text-xl font-semibold mb-4 mt-6">📋 What You'll Build</h4>
|
| 351 |
+
<p class="text-gray-700 mb-4">
|
| 352 |
+
A customer service chatbot that can answer questions about your business using uploaded documents. When the bot doesn't know something, it will automatically search Google for additional information.
|
| 353 |
+
</p>
|
| 354 |
+
</div>
|
| 355 |
+
|
| 356 |
+
<div>
|
| 357 |
+
<h4 class="text-xl font-semibold mb-4">🔧 Step-by-Step Process</h4>
|
| 358 |
+
<div class="space-y-4">
|
| 359 |
+
<div class="bg-white rounded-lg p-4 border-l-4 border-blue-500">
|
| 360 |
+
<h5 class="font-semibold mb-2">Step 1: Create Knowledge Base</h5>
|
| 361 |
+
<ul class="text-sm text-gray-600 space-y-1">
|
| 362 |
+
<li>• Navigate to Knowledge → Create Knowledge</li>
|
| 363 |
+
<li>• Upload your documents (PDF, TXT, etc.)</li>
|
| 364 |
+
<li>• Configure chunking and embedding settings</li>
|
| 365 |
+
<li>• Test retrieval with sample queries</li>
|
| 366 |
+
</ul>
|
| 367 |
+
</div>
|
| 368 |
+
|
| 369 |
+
<div class="bg-white rounded-lg p-4 border-l-4 border-green-500">
|
| 370 |
+
<h5 class="font-semibold mb-2">Step 2: Build the Chatbot</h5>
|
| 371 |
+
<ul class="text-sm text-gray-600 space-y-1">
|
| 372 |
+
<li>• Create new Chatflow application</li>
|
| 373 |
+
<li>• Add Knowledge Retrieval node</li>
|
| 374 |
+
<li>• Connect to your knowledge base</li>
|
| 375 |
+
<li>• Configure LLM with appropriate prompt</li>
|
| 376 |
+
</ul>
|
| 377 |
+
</div>
|
| 378 |
+
|
| 379 |
+
<div class="bg-white rounded-lg p-4 border-l-4 border-purple-500">
|
| 380 |
+
<h5 class="font-semibold mb-2">Step 3: Add Fallback Logic</h5>
|
| 381 |
+
<ul class="text-sm text-gray-600 space-y-1">
|
| 382 |
+
<li>• Add Condition node to check confidence</li>
|
| 383 |
+
<li>• Connect Google Search tool as fallback</li>
|
| 384 |
+
<li>• Format responses appropriately</li>
|
| 385 |
+
<li>• Test with various question types</li>
|
| 386 |
+
</ul>
|
| 387 |
+
</div>
|
| 388 |
+
</div>
|
| 389 |
+
</div>
|
| 390 |
+
</div>
|
| 391 |
+
|
| 392 |
+
<div class="mt-8 p-6 bg-white rounded-lg">
|
| 393 |
+
<h4 class="text-xl font-semibold mb-4">💡 Sample Prompt Template</h4>
|
| 394 |
+
<div class="code-block">
|
| 395 |
+
You are a helpful customer service assistant for [Company Name].
|
| 396 |
+
|
| 397 |
+
Your primary job is to answer customer questions using the knowledge base provided. When answering:
|
| 398 |
+
|
| 399 |
+
1. Always be polite and professional
|
| 400 |
+
2. Use the knowledge base information when available
|
| 401 |
+
3. If you're not confident about an answer, say so clearly
|
| 402 |
+
4. Offer to search for additional information if needed
|
| 403 |
+
|
| 404 |
+
Context from knowledge base: {{knowledge_base_context}}
|
| 405 |
+
Customer question: {{query}}
|
| 406 |
+
|
| 407 |
+
Please provide a helpful and accurate response.
|
| 408 |
+
</div>
|
| 409 |
+
</div>
|
| 410 |
+
</div>
|
| 411 |
+
|
| 412 |
+
<!-- Project 2: AI Travel Consultant -->
|
| 413 |
+
<div class="project-card rounded-xl p-8 mb-12 shadow-lg">
|
| 414 |
+
<div class="flex items-center mb-6">
|
| 415 |
+
<div class="bg-purple-500 text-white rounded-full w-12 h-12 flex items-center justify-center font-bold text-xl mr-4">2</div>
|
| 416 |
+
<h3 class="text-3xl font-bold">Project 2: AI Travel Consultant Agent</h3>
|
| 417 |
+
</div>
|
| 418 |
+
|
| 419 |
+
<div class="grid lg:grid-cols-2 gap-8">
|
| 420 |
+
<div>
|
| 421 |
+
<h4 class="text-xl font-semibold mb-4">🎯 Learning Objectives</h4>
|
| 422 |
+
<ul class="space-y-2 text-gray-700">
|
| 423 |
+
<li class="flex items-start"><i class="fas fa-check text-green-500 mr-2 mt-1"></i>Understand AI Agents and autonomous behavior</li>
|
| 424 |
+
<li class="flex items-start"><i class="fas fa-check text-green-500 mr-2 mt-1"></i>Learn Chain-of-Thought reasoning</li>
|
| 425 |
+
<li class="flex items-start"><i class="fas fa-check text-green-500 mr-2 mt-1"></i>Master prompt engineering techniques</li>
|
| 426 |
+
<li class="flex items-start"><i class="fas fa-check text-green-500 mr-2 mt-1"></i>Integrate external tools and APIs</li>
|
| 427 |
+
</ul>
|
| 428 |
+
|
| 429 |
+
<h4 class="text-xl font-semibold mb-4 mt-6">🌍 What You'll Build</h4>
|
| 430 |
+
<p class="text-gray-700 mb-4">
|
| 431 |
+
An intelligent travel consultant that can research destinations, find hotels, suggest restaurants, and create detailed itineraries using multiple external tools and data sources.
|
| 432 |
+
</p>
|
| 433 |
+
</div>
|
| 434 |
+
|
| 435 |
+
<div>
|
| 436 |
+
<h4 class="text-xl font-semibold mb-4">🛠️ Tools & Integrations</h4>
|
| 437 |
+
<div class="grid grid-cols-2 gap-3">
|
| 438 |
+
<div class="bg-white p-3 rounded border">
|
| 439 |
+
<i class="fab fa-wikipedia-w text-blue-600 mr-2"></i>
|
| 440 |
+
<span class="text-sm">Wikipedia Search</span>
|
| 441 |
+
</div>
|
| 442 |
+
<div class="bg-white p-3 rounded border">
|
| 443 |
+
<i class="fab fa-google text-red-600 mr-2"></i>
|
| 444 |
+
<span class="text-sm">Google Search</span>
|
| 445 |
+
</div>
|
| 446 |
+
<div class="bg-white p-3 rounded border">
|
| 447 |
+
<i class="fas fa-globe text-green-600 mr-2"></i>
|
| 448 |
+
<span class="text-sm">Web Scraping</span>
|
| 449 |
+
</div>
|
| 450 |
+
<div class="bg-white p-3 rounded border">
|
| 451 |
+
<i class="fas fa-map-marker-alt text-purple-600 mr-2"></i>
|
| 452 |
+
<span class="text-sm">Maps API</span>
|
| 453 |
+
</div>
|
| 454 |
+
</div>
|
| 455 |
+
</div>
|
| 456 |
+
</div>
|
| 457 |
+
|
| 458 |
+
<div class="mt-8">
|
| 459 |
+
<h4 class="text-xl font-semibold mb-4">🚀 Agent Configuration</h4>
|
| 460 |
+
<div class="grid lg:grid-cols-2 gap-6">
|
| 461 |
+
<div class="bg-white rounded-lg p-6">
|
| 462 |
+
<h5 class="font-semibold mb-3">Agent Prompt Structure</h5>
|
| 463 |
+
<div class="code-block text-sm">
|
| 464 |
+
# Role
|
| 465 |
+
You are an expert travel consultant AI agent.
|
| 466 |
+
|
| 467 |
+
# Skills
|
| 468 |
+
- Destination research and recommendations
|
| 469 |
+
- Hotel and accommodation booking assistance
|
| 470 |
+
- Restaurant and activity suggestions
|
| 471 |
+
- Itinerary planning and optimization
|
| 472 |
+
- Budget estimation and planning
|
| 473 |
+
|
| 474 |
+
# Workflow
|
| 475 |
+
1. Understand the user's travel preferences
|
| 476 |
+
2. Research destination information
|
| 477 |
+
3. Find suitable accommodations
|
| 478 |
+
4. Suggest activities and dining
|
| 479 |
+
5. Create detailed itinerary
|
| 480 |
+
6. Provide helpful travel tips
|
| 481 |
+
|
| 482 |
+
# Constraints
|
| 483 |
+
- Always verify information from multiple sources
|
| 484 |
+
- Consider budget constraints mentioned by user
|
| 485 |
+
- Suggest alternatives when options are limited
|
| 486 |
+
- Be culturally sensitive in recommendations
|
| 487 |
+
</div>
|
| 488 |
+
</div>
|
| 489 |
+
|
| 490 |
+
<div class="bg-white rounded-lg p-6">
|
| 491 |
+
<h5 class="font-semibold mb-3">Example Interaction Flow</h5>
|
| 492 |
+
<div class="space-y-3">
|
| 493 |
+
<div class="flex items-start">
|
| 494 |
+
<div class="bg-blue-100 text-blue-800 px-2 py-1 rounded text-xs mr-2 mt-1">USER</div>
|
| 495 |
+
<p class="text-sm">"Plan a 3-day trip to Tokyo for $1500"</p>
|
| 496 |
+
</div>
|
| 497 |
+
<div class="flex items-start">
|
| 498 |
+
<div class="bg-purple-100 text-purple-800 px-2 py-1 rounded text-xs mr-2 mt-1">AGENT</div>
|
| 499 |
+
<p class="text-sm">"Let me research Tokyo destinations and find budget-friendly options..."</p>
|
| 500 |
+
</div>
|
| 501 |
+
<div class="flex items-start">
|
| 502 |
+
<div class="bg-green-100 text-green-800 px-2 py-1 rounded text-xs mr-2 mt-1">TOOLS</div>
|
| 503 |
+
<p class="text-sm">Wikipedia search → Google search → Hotel booking APIs</p>
|
| 504 |
+
</div>
|
| 505 |
+
<div class="flex items-start">
|
| 506 |
+
<div class="bg-purple-100 text-purple-800 px-2 py-1 rounded text-xs mr-2 mt-1">AGENT</div>
|
| 507 |
+
<p class="text-sm">"Here's your customized Tokyo itinerary with budget breakdown..."</p>
|
| 508 |
+
</div>
|
| 509 |
+
</div>
|
| 510 |
+
</div>
|
| 511 |
+
</div>
|
| 512 |
+
</div>
|
| 513 |
+
</div>
|
| 514 |
+
</div>
|
| 515 |
+
</section>
|
| 516 |
+
|
| 517 |
+
<div class="section-divider"></div>
|
| 518 |
+
|
| 519 |
+
<!-- Module 3: Advanced Workflows -->
|
| 520 |
+
<section class="py-16 bg-purple-50">
|
| 521 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 522 |
+
<div class="text-center mb-12">
|
| 523 |
+
<h2 class="text-4xl font-bold mb-6 text-purple-900">Module 3: Advanced Workflows</h2>
|
| 524 |
+
<p class="text-xl text-purple-700">Master complex AI workflows and integrations</p>
|
| 525 |
+
</div>
|
| 526 |
+
|
| 527 |
+
<div class="grid lg:grid-cols-2 gap-12">
|
| 528 |
+
<div>
|
| 529 |
+
<h3 class="text-2xl font-bold mb-6">Workflow Patterns</h3>
|
| 530 |
+
|
| 531 |
+
<div class="space-y-6">
|
| 532 |
+
<div class="bg-white rounded-lg p-6 shadow-sm">
|
| 533 |
+
<h4 class="text-lg font-semibold mb-3 flex items-center">
|
| 534 |
+
<i class="fas fa-link text-blue-600 mr-2"></i>
|
| 535 |
+
Prompt Chains
|
| 536 |
+
</h4>
|
| 537 |
+
<p class="text-gray-700 mb-3">Break complex tasks into sequential steps, using output from one step as input for the next.</p>
|
| 538 |
+
<div class="bg-blue-50 p-3 rounded text-sm">
|
| 539 |
+
<strong>Example:</strong> Recipe Generator → Check Ingredients → Suggest Alternatives → Format Output
|
| 540 |
+
</div>
|
| 541 |
+
</div>
|
| 542 |
+
|
| 543 |
+
<div class="bg-white rounded-lg p-6 shadow-sm">
|
| 544 |
+
<h4 class="text-lg font-semibold mb-3 flex items-center">
|
| 545 |
+
<i class="fas fa-route text-green-600 mr-2"></i>
|
| 546 |
+
Routing & Classification
|
| 547 |
+
</h4>
|
| 548 |
+
<p class="text-gray-700 mb-3">Direct user input to specialized workflows based on intent classification.</p>
|
| 549 |
+
<div class="bg-green-50 p-3 rounded text-sm">
|
| 550 |
+
<strong>Example:</strong> Support Query → Classify (Technical/Billing/General) → Route to Specialist Agent
|
| 551 |
+
</div>
|
| 552 |
+
</div>
|
| 553 |
+
|
| 554 |
+
<div class="bg-white rounded-lg p-6 shadow-sm">
|
| 555 |
+
<h4 class="text-lg font-semibold mb-3 flex items-center">
|
| 556 |
+
<i class="fas fa-stream text-purple-600 mr-2"></i>
|
| 557 |
+
Parallelization
|
| 558 |
+
</h4>
|
| 559 |
+
<p class="text-gray-700 mb-3">Run multiple LLMs simultaneously for diverse outputs or independent subtasks.</p>
|
| 560 |
+
<div class="bg-purple-50 p-3 rounded text-sm">
|
| 561 |
+
<strong>Example:</strong> Content Ideas → [Creative Writer + Technical Writer + SEO Specialist] → Combine Results
|
| 562 |
+
</div>
|
| 563 |
+
</div>
|
| 564 |
+
|
| 565 |
+
<div class="bg-white rounded-lg p-6 shadow-sm">
|
| 566 |
+
<h4 class="text-lg font-semibold mb-3 flex items-center">
|
| 567 |
+
<i class="fas fa-sitemap text-orange-600 mr-2"></i>
|
| 568 |
+
Orchestrator-Workers
|
| 569 |
+
</h4>
|
| 570 |
+
<p class="text-gray-700 mb-3">A coordinator distributes tasks to specialized workers when subtasks are unpredictable.</p>
|
| 571 |
+
<div class="bg-orange-50 p-3 rounded text-sm">
|
| 572 |
+
<strong>Example:</strong> Research Project → Orchestrator → [Data Collector + Analyst + Writer] → Final Report
|
| 573 |
+
</div>
|
| 574 |
+
</div>
|
| 575 |
+
</div>
|
| 576 |
+
</div>
|
| 577 |
+
|
| 578 |
+
<div>
|
| 579 |
+
<h3 class="text-2xl font-bold mb-6">API Integration & External Tools</h3>
|
| 580 |
+
|
| 581 |
+
<div class="bg-white rounded-lg p-6 shadow-sm mb-6">
|
| 582 |
+
<h4 class="text-lg font-semibold mb-4">Setting Up API Connections</h4>
|
| 583 |
+
<div class="space-y-4">
|
| 584 |
+
<div class="border-l-4 border-blue-500 pl-4">
|
| 585 |
+
<h5 class="font-semibold">OpenAPI/Swagger Integration</h5>
|
| 586 |
+
<p class="text-sm text-gray-600">Import API specifications to automatically create tool nodes</p>
|
| 587 |
+
</div>
|
| 588 |
+
<div class="border-l-4 border-green-500 pl-4">
|
| 589 |
+
<h5 class="font-semibold">Custom API Endpoints</h5>
|
| 590 |
+
<p class="text-sm text-gray-600">Connect to your internal APIs with custom headers and authentication</p>
|
| 591 |
+
</div>
|
| 592 |
+
<div class="border-l-4 border-purple-500 pl-4">
|
| 593 |
+
<h5 class="font-semibold">Pre-built Integrations</h5>
|
| 594 |
+
<p class="text-sm text-gray-600">Use ready-made connectors for popular services</p>
|
| 595 |
+
</div>
|
| 596 |
+
</div>
|
| 597 |
+
</div>
|
| 598 |
+
|
| 599 |
+
<div class="bg-white rounded-lg p-6 shadow-sm">
|
| 600 |
+
<h4 class="text-lg font-semibold mb-4">Popular Tool Integrations</h4>
|
| 601 |
+
<div class="grid grid-cols-2 gap-3">
|
| 602 |
+
<div class="bg-red-50 p-3 rounded text-center">
|
| 603 |
+
<i class="fab fa-google text-red-600 text-xl mb-1"></i>
|
| 604 |
+
<p class="text-sm font-medium">Google APIs</p>
|
| 605 |
+
</div>
|
| 606 |
+
<div class="bg-blue-50 p-3 rounded text-center">
|
| 607 |
+
<i class="fab fa-twitter text-blue-600 text-xl mb-1"></i>
|
| 608 |
+
<p class="text-sm font-medium">Social Media</p>
|
| 609 |
+
</div>
|
| 610 |
+
<div class="bg-green-50 p-3 rounded text-center">
|
| 611 |
+
<i class="fas fa-chart-line text-green-600 text-xl mb-1"></i>
|
| 612 |
+
<p class="text-sm font-medium">Analytics</p>
|
| 613 |
+
</div>
|
| 614 |
+
<div class="bg-yellow-50 p-3 rounded text-center">
|
| 615 |
+
<i class="fas fa-dollar-sign text-yellow-600 text-xl mb-1"></i>
|
| 616 |
+
<p class="text-sm font-medium">Finance APIs</p>
|
| 617 |
+
</div>
|
| 618 |
+
<div class="bg-purple-50 p-3 rounded text-center">
|
| 619 |
+
<i class="fas fa-envelope text-purple-600 text-xl mb-1"></i>
|
| 620 |
+
<p class="text-sm font-medium">Email Services</p>
|
| 621 |
+
</div>
|
| 622 |
+
<div class="bg-indigo-50 p-3 rounded text-center">
|
| 623 |
+
<i class="fas fa-database text-indigo-600 text-xl mb-1"></i>
|
| 624 |
+
<p class="text-sm font-medium">Databases</p>
|
| 625 |
+
</div>
|
| 626 |
+
</div>
|
| 627 |
+
</div>
|
| 628 |
+
</div>
|
| 629 |
+
</div>
|
| 630 |
+
|
| 631 |
+
<div class="mt-12">
|
| 632 |
+
<h3 class="text-2xl font-bold mb-6 text-center">Advanced Project: Multi-Step E-commerce Assistant</h3>
|
| 633 |
+
|
| 634 |
+
<div class="bg-white rounded-xl p-8 shadow-lg">
|
| 635 |
+
<div class="grid lg:grid-cols-3 gap-6">
|
| 636 |
+
<div class="text-center">
|
| 637 |
+
<div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 638 |
+
<i class="fas fa-search text-blue-600 text-xl"></i>
|
| 639 |
+
</div>
|
| 640 |
+
<h4 class="font-semibold mb-2">Product Discovery</h4>
|
| 641 |
+
<p class="text-sm text-gray-600">Classify user intent and search product catalog</p>
|
| 642 |
+
</div>
|
| 643 |
+
|
| 644 |
+
<div class="text-center">
|
| 645 |
+
<div class="bg-green-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 646 |
+
<i class="fas fa-shopping-cart text-green-600 text-xl"></i>
|
| 647 |
+
</div>
|
| 648 |
+
<h4 class="font-semibold mb-2">Purchase Processing</h4>
|
| 649 |
+
<p class="text-sm text-gray-600">Handle cart operations and payment processing</p>
|
| 650 |
+
</div>
|
| 651 |
+
|
| 652 |
+
<div class="text-center">
|
| 653 |
+
<div class="bg-purple-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 654 |
+
<i class="fas fa-user-circle text-purple-600 text-xl"></i>
|
| 655 |
+
</div>
|
| 656 |
+
<h4 class="font-semibold mb-2">Customer Service</h4>
|
| 657 |
+
<p class="text-sm text-gray-600">Provide support and handle inquiries</p>
|
| 658 |
+
</div>
|
| 659 |
+
</div>
|
| 660 |
+
|
| 661 |
+
<div class="mt-8 p-6 bg-gray-50 rounded-lg">
|
| 662 |
+
<h5 class="font-semibold mb-3">Workflow Configuration</h5>
|
| 663 |
+
<div class="code-block text-sm">
|
| 664 |
+
Start → Question Classifier → [Product Search | Purchase Intent | Support Query]
|
| 665 |
+
↓ ↓ ↓ ↓
|
| 666 |
+
Product Search: Purchase Intent: Support Query:
|
| 667 |
+
- Search API - Validate Cart - Knowledge Base
|
| 668 |
+
- Filter Results - Process Payment - Escalate if needed
|
| 669 |
+
- Show Options - Send Confirmation - Log interaction
|
| 670 |
+
</div>
|
| 671 |
+
</div>
|
| 672 |
+
</div>
|
| 673 |
+
</div>
|
| 674 |
+
</div>
|
| 675 |
+
</section>
|
| 676 |
+
|
| 677 |
+
<div class="section-divider"></div>
|
| 678 |
+
|
| 679 |
+
<!-- Module 4: Production & Deployment -->
|
| 680 |
+
<section class="py-16">
|
| 681 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 682 |
+
<div class="text-center mb-12">
|
| 683 |
+
<h2 class="text-4xl font-bold mb-6 text-orange-900">Module 4: Production & Deployment</h2>
|
| 684 |
+
<p class="text-xl text-orange-700">Deploy, monitor, and scale your AI applications</p>
|
| 685 |
+
</div>
|
| 686 |
+
|
| 687 |
+
<div class="grid lg:grid-cols-2 gap-12">
|
| 688 |
+
<div>
|
| 689 |
+
<h3 class="text-2xl font-bold mb-6">Deployment Options</h3>
|
| 690 |
+
|
| 691 |
+
<div class="space-y-6">
|
| 692 |
+
<div class="bg-white rounded-lg p-6 shadow-sm border-l-4 border-blue-500">
|
| 693 |
+
<h4 class="text-lg font-semibold mb-3">Cloud Hosting (Recommended for Beginners)</h4>
|
| 694 |
+
<ul class="space-y-2 text-gray-700">
|
| 695 |
+
<li class="flex items-start"><i class="fas fa-check text-green-500 mr-2 mt-1"></i>One-click publishing</li>
|
| 696 |
+
<li class="flex items-start"><i class="fas fa-check text-green-500 mr-2 mt-1"></i>Automatic scaling</li>
|
| 697 |
+
<li class="flex items-start"><i class="fas fa-check text-green-500 mr-2 mt-1"></i>Built-in analytics</li>
|
| 698 |
+
<li class="flex items-start"><i class="fas fa-check text-green-500 mr-2 mt-1"></i>SSL certificates included</li>
|
| 699 |
+
</ul>
|
| 700 |
+
</div>
|
| 701 |
+
|
| 702 |
+
<div class="bg-white rounded-lg p-6 shadow-sm border-l-4 border-green-500">
|
| 703 |
+
<h4 class="text-lg font-semibold mb-3">API Integration</h4>
|
| 704 |
+
<p class="text-gray-700 mb-3">Embed AI capabilities into existing applications:</p>
|
| 705 |
+
<div class="code-block text-sm">
|
| 706 |
+
# RESTful API Example
|
| 707 |
+
curl -X POST "https://api.dify.ai/v1/chat-messages" \
|
| 708 |
+
-H "Authorization: Bearer YOUR_API_KEY" \
|
| 709 |
+
-H "Content-Type: application/json" \
|
| 710 |
+
-d '{
|
| 711 |
+
"inputs": {},
|
| 712 |
+
"query": "Hello, how can you help me?",
|
| 713 |
+
"user": "user-123"
|
| 714 |
+
}'
|
| 715 |
+
</div>
|
| 716 |
+
</div>
|
| 717 |
+
|
| 718 |
+
<div class="bg-white rounded-lg p-6 shadow-sm border-l-4 border-purple-500">
|
| 719 |
+
<h4 class="text-lg font-semibold mb-3">Self-Hosted Deployment</h4>
|
| 720 |
+
<p class="text-gray-700 mb-3">Full control with Docker deployment:</p>
|
| 721 |
+
<div class="code-block text-sm">
|
| 722 |
+
# Clone repository
|
| 723 |
+
git clone https://github.com/langgenius/dify.git
|
| 724 |
+
|
| 725 |
+
# Navigate to docker directory
|
| 726 |
+
cd dify/docker
|
| 727 |
+
|
| 728 |
+
# Start all services
|
| 729 |
+
docker compose up -d
|
| 730 |
+
|
| 731 |
+
# Access at http://localhost
|
| 732 |
+
</div>
|
| 733 |
+
</div>
|
| 734 |
+
</div>
|
| 735 |
+
</div>
|
| 736 |
+
|
| 737 |
+
<div>
|
| 738 |
+
<h3 class="text-2xl font-bold mb-6">Monitoring & Analytics</h3>
|
| 739 |
+
|
| 740 |
+
<div class="bg-white rounded-lg p-6 shadow-sm mb-6">
|
| 741 |
+
<h4 class="text-lg font-semibold mb-4">Key Metrics to Track</h4>
|
| 742 |
+
<div class="grid grid-cols-2 gap-4">
|
| 743 |
+
<div class="text-center p-4 bg-blue-50 rounded-lg">
|
| 744 |
+
<i class="fas fa-users text-2xl text-blue-600 mb-2"></i>
|
| 745 |
+
<p class="font-semibold">Active Users</p>
|
| 746 |
+
<p class="text-sm text-gray-600">Daily/Monthly usage</p>
|
| 747 |
+
</div>
|
| 748 |
+
<div class="text-center p-4 bg-green-50 rounded-lg">
|
| 749 |
+
<i class="fas fa-comments text-2xl text-green-600 mb-2"></i>
|
| 750 |
+
<p class="font-semibold">Conversations</p>
|
| 751 |
+
<p class="text-sm text-gray-600">Total interactions</p>
|
| 752 |
+
</div>
|
| 753 |
+
<div class="text-center p-4 bg-yellow-50 rounded-lg">
|
| 754 |
+
<i class="fas fa-clock text-2xl text-yellow-600 mb-2"></i>
|
| 755 |
+
<p class="font-semibold">Response Time</p>
|
| 756 |
+
<p class="text-sm text-gray-600">Average latency</p>
|
| 757 |
+
</div>
|
| 758 |
+
<div class="text-center p-4 bg-red-50 rounded-lg">
|
| 759 |
+
<i class="fas fa-dollar-sign text-2xl text-red-600 mb-2"></i>
|
| 760 |
+
<p class="font-semibold">Token Usage</p>
|
| 761 |
+
<p class="text-sm text-gray-600">Cost tracking</p>
|
| 762 |
+
</div>
|
| 763 |
+
</div>
|
| 764 |
+
</div>
|
| 765 |
+
|
| 766 |
+
<div class="bg-white rounded-lg p-6 shadow-sm mb-6">
|
| 767 |
+
<h4 class="text-lg font-semibold mb-4">Performance Optimization</h4>
|
| 768 |
+
<div class="space-y-3">
|
| 769 |
+
<div class="flex items-center p-3 bg-gray-50 rounded">
|
| 770 |
+
<i class="fas fa-tachometer-alt text-blue-500 mr-3"></i>
|
| 771 |
+
<div>
|
| 772 |
+
<p class="font-medium">Model Selection</p>
|
| 773 |
+
<p class="text-sm text-gray-600">Choose appropriate models for your use case</p>
|
| 774 |
+
</div>
|
| 775 |
+
</div>
|
| 776 |
+
<div class="flex items-center p-3 bg-gray-50 rounded">
|
| 777 |
+
<i class="fas fa-compress text-green-500 mr-3"></i>
|
| 778 |
+
<div>
|
| 779 |
+
<p class="font-medium">Prompt Optimization</p>
|
| 780 |
+
<p class="text-sm text-gray-600">Reduce token usage with efficient prompts</p>
|
| 781 |
+
</div>
|
| 782 |
+
</div>
|
| 783 |
+
<div class="flex items-center p-3 bg-gray-50 rounded">
|
| 784 |
+
<i class="fas fa-memory text-purple-500 mr-3"></i>
|
| 785 |
+
<div>
|
| 786 |
+
<p class="font-medium">Memory Management</p>
|
| 787 |
+
<p class="text-sm text-gray-600">Optimize conversation history storage</p>
|
| 788 |
+
</div>
|
| 789 |
+
</div>
|
| 790 |
+
</div>
|
| 791 |
+
</div>
|
| 792 |
+
|
| 793 |
+
<div class="bg-white rounded-lg p-6 shadow-sm">
|
| 794 |
+
<h4 class="text-lg font-semibold mb-4">Scaling Strategies</h4>
|
| 795 |
+
<ol class="list-decimal list-inside space-y-2 text-gray-700">
|
| 796 |
+
<li>Start with cloud hosting for rapid deployment</li>
|
| 797 |
+
<li>Monitor usage patterns and performance metrics</li>
|
| 798 |
+
<li>Optimize prompts and model selection based on data</li>
|
| 799 |
+
<li>Consider self-hosting for higher volumes</li>
|
| 800 |
+
<li>Implement caching and rate limiting</li>
|
| 801 |
+
<li>Set up automated monitoring and alerts</li>
|
| 802 |
+
</ol>
|
| 803 |
+
</div>
|
| 804 |
+
</div>
|
| 805 |
+
</div>
|
| 806 |
+
</div>
|
| 807 |
+
</section>
|
| 808 |
+
|
| 809 |
+
<div class="section-divider"></div>
|
| 810 |
+
|
| 811 |
+
<!-- Resources & Next Steps -->
|
| 812 |
+
<section class="py-16 bg-gray-100">
|
| 813 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 814 |
+
<div class="text-center mb-12">
|
| 815 |
+
<h2 class="text-4xl font-bold mb-6">Resources & Next Steps</h2>
|
| 816 |
+
<p class="text-xl text-gray-600">Continue your journey with these valuable resources</p>
|
| 817 |
+
</div>
|
| 818 |
+
|
| 819 |
+
<div class="grid lg:grid-cols-3 gap-8">
|
| 820 |
+
<div class="bg-white rounded-lg p-6 shadow-sm">
|
| 821 |
+
<h3 class="text-xl font-semibold mb-4 flex items-center">
|
| 822 |
+
<i class="fas fa-book text-blue-600 mr-2"></i>
|
| 823 |
+
Official Documentation
|
| 824 |
+
</h3>
|
| 825 |
+
<ul class="space-y-2 text-gray-700">
|
| 826 |
+
<li><a href="https://docs.dify.ai/en/introduction" class="text-blue-600 hover:underline">Getting Started Guide</a></li>
|
| 827 |
+
<li><a href="https://docs.dify.ai/en/guides/application-orchestrate" class="text-blue-600 hover:underline">Application Building</a></li>
|
| 828 |
+
<li><a href="https://docs.dify.ai/en/guides/model-configuration" class="text-blue-600 hover:underline">Model Configuration</a></li>
|
| 829 |
+
<li><a href="https://docs.dify.ai/en/getting-started/install-self-hosted" class="text-blue-600 hover:underline">Self-Hosting Guide</a></li>
|
| 830 |
+
</ul>
|
| 831 |
+
</div>
|
| 832 |
+
|
| 833 |
+
<div class="bg-white rounded-lg p-6 shadow-sm">
|
| 834 |
+
<h3 class="text-xl font-semibold mb-4 flex items-center">
|
| 835 |
+
<i class="fas fa-users text-green-600 mr-2"></i>
|
| 836 |
+
Community Resources
|
| 837 |
+
</h3>
|
| 838 |
+
<ul class="space-y-2 text-gray-700">
|
| 839 |
+
<li><a href="https://github.com/langgenius/dify" class="text-blue-600 hover:underline">GitHub Repository</a></li>
|
| 840 |
+
<li><a href="https://discord.gg/dify" class="text-blue-600 hover:underline">Discord Community</a></li>
|
| 841 |
+
<li><a href="https://github.com/langgenius/dify/discussions" class="text-blue-600 hover:underline">GitHub Discussions</a></li>
|
| 842 |
+
<li><a href="https://docs.dify.ai/en/community/contribution" class="text-blue-600 hover:underline">Contribution Guide</a></li>
|
| 843 |
+
</ul>
|
| 844 |
+
</div>
|
| 845 |
+
|
| 846 |
+
<div class="bg-white rounded-lg p-6 shadow-sm">
|
| 847 |
+
<h3 class="text-xl font-semibold mb-4 flex items-center">
|
| 848 |
+
<i class="fas fa-lightbulb text-yellow-600 mr-2"></i>
|
| 849 |
+
Advanced Learning
|
| 850 |
+
</h3>
|
| 851 |
+
<ul class="space-y-2 text-gray-700">
|
| 852 |
+
<li><a href="https://www.datacamp.com/tutorial/dify" class="text-blue-600 hover:underline">DataCamp Tutorial</a></li>
|
| 853 |
+
<li><a href="https://docs.dify.ai/en/learn-more/use-cases" class="text-blue-600 hover:underline">Use Case Examples</a></li>
|
| 854 |
+
<li><a href="https://docs.dify.ai/en/getting-started/readme/features-and-specifications" class="text-blue-600 hover:underline">Features & Roadmap</a></li>
|
| 855 |
+
<li><a href="https://blog.dify.ai" class="text-blue-600 hover:underline">Official Blog</a></li>
|
| 856 |
+
</ul>
|
| 857 |
+
</div>
|
| 858 |
+
</div>
|
| 859 |
+
|
| 860 |
+
<div class="mt-12 bg-white rounded-xl p-8 shadow-lg">
|
| 861 |
+
<h3 class="text-2xl font-bold mb-6 text-center">Quick Reference Cheat Sheet</h3>
|
| 862 |
+
|
| 863 |
+
<div class="grid lg:grid-cols-2 gap-8">
|
| 864 |
+
<div>
|
| 865 |
+
<h4 class="text-lg font-semibold mb-4">Common Workflow Nodes</h4>
|
| 866 |
+
<div class="space-y-2 text-sm">
|
| 867 |
+
<div class="flex justify-between p-2 bg-gray-50 rounded">
|
| 868 |
+
<span><i class="fas fa-play text-green-600 mr-2"></i>Start Node</span>
|
| 869 |
+
<span>Initialize workflow</span>
|
| 870 |
+
</div>
|
| 871 |
+
<div class="flex justify-between p-2 bg-gray-50 rounded">
|
| 872 |
+
<span><i class="fas fa-brain text-blue-600 mr-2"></i>LLM Node</span>
|
| 873 |
+
<span>Process with AI model</span>
|
| 874 |
+
</div>
|
| 875 |
+
<div class="flex justify-between p-2 bg-gray-50 rounded">
|
| 876 |
+
<span><i class="fas fa-database text-purple-600 mr-2"></i>Knowledge Retrieval</span>
|
| 877 |
+
<span>Search knowledge base</span>
|
| 878 |
+
</div>
|
| 879 |
+
<div class="flex justify-between p-2 bg-gray-50 rounded">
|
| 880 |
+
<span><i class="fas fa-code text-orange-600 mr-2"></i>Code Node</span>
|
| 881 |
+
<span>Execute custom logic</span>
|
| 882 |
+
</div>
|
| 883 |
+
<div class="flex justify-between p-2 bg-gray-50 rounded">
|
| 884 |
+
<span><i class="fas fa-route text-red-600 mr-2"></i>Condition Node</span>
|
| 885 |
+
<span>Branch workflow logic</span>
|
| 886 |
+
</div>
|
| 887 |
+
</div>
|
| 888 |
+
</div>
|
| 889 |
+
|
| 890 |
+
<div>
|
| 891 |
+
<h4 class="text-lg font-semibold mb-4">Best Practices</h4>
|
| 892 |
+
<ul class="space-y-2 text-sm text-gray-700">
|
| 893 |
+
<li class="flex items-start"><i class="fas fa-check text-green-500 mr-2 mt-1"></i>Test prompts in the Prompt IDE before deployment</li>
|
| 894 |
+
<li class="flex items-start"><i class="fas fa-check text-green-500 mr-2 mt-1"></i>Use descriptive names for variables and nodes</li>
|
| 895 |
+
<li class="flex items-start"><i class="fas fa-check text-green-500 mr-2 mt-1"></i>Monitor token usage and costs regularly</li>
|
| 896 |
+
<li class="flex items-start"><i class="fas fa-check text-green-500 mr-2 mt-1"></i>Implement error handling and fallback logic</li>
|
| 897 |
+
<li class="flex items-start"><i class="fas fa-check text-green-500 mr-2 mt-1"></i>Start simple and iterate based on user feedback</li>
|
| 898 |
+
<li class="flex items-start"><i class="fas fa-check text-green-500 mr-2 mt-1"></i>Use knowledge bases to reduce hallucinations</li>
|
| 899 |
+
</ul>
|
| 900 |
+
</div>
|
| 901 |
+
</div>
|
| 902 |
+
</div>
|
| 903 |
+
</div>
|
| 904 |
+
</section>
|
| 905 |
+
|
| 906 |
+
<div class="section-divider"></div>
|
| 907 |
+
|
| 908 |
+
<!-- Final Call to Action -->
|
| 909 |
+
<section class="py-16 gradient-bg text-white">
|
| 910 |
+
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
|
| 911 |
+
<h2 class="text-4xl font-bold mb-6">Start Building Your AI Applications Today</h2>
|
| 912 |
+
<p class="text-xl mb-8 opacity-90">
|
| 913 |
+
You now have all the knowledge needed to create powerful AI applications with Dify. From simple chatbots to complex multi-agent systems, the possibilities are endless.
|
| 914 |
+
</p>
|
| 915 |
+
|
| 916 |
+
<div class="grid md:grid-cols-3 gap-6 mb-8">
|
| 917 |
+
<div class="text-center">
|
| 918 |
+
<div class="bg-white bg-opacity-20 rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-3">
|
| 919 |
+
<i class="fas fa-rocket text-2xl"></i>
|
| 920 |
+
</div>
|
| 921 |
+
<h3 class="font-semibold mb-2">Start Building</h3>
|
| 922 |
+
<p class="text-sm opacity-80">Create your first AI application in minutes</p>
|
| 923 |
+
</div>
|
| 924 |
+
|
| 925 |
+
<div class="text-center">
|
| 926 |
+
<div class="bg-white bg-opacity-20 rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-3">
|
| 927 |
+
<i class="fas fa-users text-2xl"></i>
|
| 928 |
+
</div>
|
| 929 |
+
<h3 class="font-semibold mb-2">Join Community</h3>
|
| 930 |
+
<p class="text-sm opacity-80">Connect with 180,000+ developers worldwide</p>
|
| 931 |
+
</div>
|
| 932 |
+
|
| 933 |
+
<div class="text-center">
|
| 934 |
+
<div class="bg-white bg-opacity-20 rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-3">
|
| 935 |
+
<i class="fas fa-graduation-cap text-2xl"></i>
|
| 936 |
+
</div>
|
| 937 |
+
<h3 class="font-semibold mb-2">Keep Learning</h3>
|
| 938 |
+
<p class="text-sm opacity-80">Explore advanced features and techniques</p>
|
| 939 |
+
</div>
|
| 940 |
+
</div>
|
| 941 |
+
|
| 942 |
+
<div class="space-y-4">
|
| 943 |
+
<p class="text-lg font-semibold">Ready to begin your AI journey?</p>
|
| 944 |
+
<div class="flex justify-center space-x-4">
|
| 945 |
+
<a href="https://dify.ai" class="bg-white text-purple-600 px-8 py-3 rounded-lg font-semibold hover:bg-gray-100 transition duration-300">
|
| 946 |
+
Get Started Free
|
| 947 |
+
</a>
|
| 948 |
+
<a href="https://github.com/langgenius/dify" class="bg-transparent border-2 border-white text-white px-8 py-3 rounded-lg font-semibold hover:bg-white hover:text-purple-600 transition duration-300">
|
| 949 |
+
View on GitHub
|
| 950 |
+
</a>
|
| 951 |
+
</div>
|
| 952 |
+
</div>
|
| 953 |
+
</div>
|
| 954 |
+
</section>
|
| 955 |
+
|
| 956 |
+
<script>
|
| 957 |
+
// Add interactive elements
|
| 958 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 959 |
+
// Progress bar animation
|
| 960 |
+
const progressBars = document.querySelectorAll('.progress-bar');
|
| 961 |
+
|
| 962 |
+
// Animate progress bars on scroll
|
| 963 |
+
const observerOptions = {
|
| 964 |
+
threshold: 0.5,
|
| 965 |
+
rootMargin: '0px 0px -100px 0px'
|
| 966 |
+
};
|
| 967 |
+
|
| 968 |
+
const observer = new IntersectionObserver(function(entries) {
|
| 969 |
+
entries.forEach(entry => {
|
| 970 |
+
if (entry.isIntersecting) {
|
| 971 |
+
const progressBar = entry.target;
|
| 972 |
+
const width = progressBar.style.width;
|
| 973 |
+
progressBar.style.width = '0%';
|
| 974 |
+
setTimeout(() => {
|
| 975 |
+
progressBar.style.width = width;
|
| 976 |
+
progressBar.style.transition = 'width 1s ease-in-out';
|
| 977 |
+
}, 100);
|
| 978 |
+
}
|
| 979 |
+
});
|
| 980 |
+
}, observerOptions);
|
| 981 |
+
|
| 982 |
+
progressBars.forEach(bar => {
|
| 983 |
+
observer.observe(bar);
|
| 984 |
+
});
|
| 985 |
+
|
| 986 |
+
// Add copy to clipboard functionality for code blocks
|
| 987 |
+
document.querySelectorAll('.code-block').forEach(block => {
|
| 988 |
+
const copyButton = document.createElement('button');
|
| 989 |
+
copyButton.innerHTML = '<i class="fas fa-copy"></i>';
|
| 990 |
+
copyButton.className = 'absolute top-2 right-2 bg-gray-700 hover:bg-gray-600 text-white p-2 rounded text-sm';
|
| 991 |
+
copyButton.onclick = function() {
|
| 992 |
+
navigator.clipboard.writeText(block.textContent);
|
| 993 |
+
copyButton.innerHTML = '<i class="fas fa-check"></i>';
|
| 994 |
+
setTimeout(() => {
|
| 995 |
+
copyButton.innerHTML = '<i class="fas fa-copy"></i>';
|
| 996 |
+
}, 2000);
|
| 997 |
+
};
|
| 998 |
+
|
| 999 |
+
block.style.position = 'relative';
|
| 1000 |
+
block.appendChild(copyButton);
|
| 1001 |
+
});
|
| 1002 |
+
|
| 1003 |
+
// Smooth scroll for internal links
|
| 1004 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 1005 |
+
anchor.addEventListener('click', function (e) {
|
| 1006 |
+
e.preventDefault();
|
| 1007 |
+
const target = document.querySelector(this.getAttribute('href'));
|
| 1008 |
+
if (target) {
|
| 1009 |
+
target.scrollIntoView({
|
| 1010 |
+
behavior: 'smooth',
|
| 1011 |
+
block: 'start'
|
| 1012 |
+
});
|
| 1013 |
+
}
|
| 1014 |
+
});
|
| 1015 |
+
});
|
| 1016 |
+
});
|
| 1017 |
+
</script>
|
| 1018 |
+
</body>
|
| 1019 |
</html>
|