Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ a[href*="#no-click"], img[src*="#no-click"] {
background-color: #ddd;
}

/* Redis AI Agent Builder Styles */
/* AI Agent Builder Styles */

.agent-builder-container {
@apply max-w-4xl mx-auto p-6 bg-white rounded-lg border border-redis-pen-800 shadow-lg;
Expand Down
6 changes: 3 additions & 3 deletions content/develop/ai/agent-builder/_index.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
Title: Redis AI Agent Builder
Title: AI agent builder
alwaysopen: false
categories:
- docs
- develop
- ai
description: Build custom AI agents powered by Redis with our interactive code generator
linkTitle: Agent Builder
linkTitle: Agent builder
hideListLinks: true
weight: 50
---


Agents use Redis for data storage, vector search, and conversation memory. The interactive builder generates production-ready code in your preferred programming language.
Agents use Redis for data storage, vector search, and conversation memory. The interactive builder generates code in your preferred programming language with your choice of model.

## Get started

Expand Down
6 changes: 3 additions & 3 deletions layouts/shortcodes/agent-builder.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked@9.1.6/marked.min.js"></script>

<!-- Redis AI Agent Builder Shortcode -->
<!-- AI Agent Builder Shortcode -->
<div id="redis-agent-builder" class="agent-builder-container">
<div class="agent-builder-header">
<h3 class="text-2xl font-semibold text-redis-ink-900 mb-2">Build Your Redis AI Agent</h3>
<h3 class="text-2xl font-semibold text-redis-ink-900 mb-2">Build Your AI Agent</h3>
<p class="text-redis-pen-600 mb-6">Tell us what you want to build and we'll generate the code for you</p>
</div>

Expand All @@ -20,7 +20,7 @@ <h3 class="text-2xl font-semibold text-redis-ink-900 mb-2">Build Your Redis AI A
</svg>
</div>
<div class="message-content">
<p>Hi! I'll help you build a Redis AI agent. Let's start with what type of agent you want to create.</p>
<p>Hi! I'll help you build an AI agent. Let's start with what type of agent you want to create.</p>
<div class="suggestion-chips">
<button class="suggestion-chip" data-suggestion="recommendation">🛍️ Recommendation Engine</button>
<button class="suggestion-chip" data-suggestion="conversational">💬 Conversational Assistant</button>
Expand Down
16 changes: 8 additions & 8 deletions static/js/agent-builder.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Redis AI Agent Builder JavaScript
* AI Agent Builder JavaScript
* Handles chat interface and code generation
*/

Expand Down Expand Up @@ -410,7 +410,7 @@

// Handle special responses from coming soon message
if (input === 'wait') {
addMessage('Thanks for checking out the Redis AI Agent Builder. Come back when your preferred language is supported!', 'bot');
addMessage('Thanks for checking out the AI Agent Builder. Come back when your preferred language is supported!', 'bot');
return;
}

Expand Down Expand Up @@ -480,7 +480,7 @@
const config = CONFIG.models[selectedModel];

addMessage(`Perfect! ${config.description}`, 'bot');
addMessage('🎉 I have everything I need! Generating your Redis AI agent code...', 'bot');
addMessage('🎉 I have everything I need! Generating your AI agent code...', 'bot');

// Generate code
setTimeout(() => {
Expand All @@ -498,7 +498,7 @@
function generateAndDisplayCode() {
const code = generateAgentCode(conversationState.selections);

addMessage('✅ Your Redis AI agent code is ready! You can copy or download it below.', 'bot');
addMessage('✅ Your AI agent code is ready! You can copy or download it below.', 'bot');

// Show code section
displayGeneratedCode(code, conversationState.selections);
Expand Down Expand Up @@ -560,7 +560,7 @@
}

function getGenericPythonCode(formData) {
return `# ${formData.agentName} - Redis AI Agent
return `# ${formData.agentName} - AI Agent
# Generated for ${CONFIG.agentTypes[formData.agentType].description}

import redis
Expand Down Expand Up @@ -597,7 +597,7 @@ if __name__ == "__main__":
}

function getGenericJavaScriptCode(formData) {
return `// ${formData.agentName} - Redis AI Agent
return `// ${formData.agentName} - AI Agent
// Generated for ${CONFIG.agentTypes[formData.agentType].description}

const redis = require('redis');
Expand Down Expand Up @@ -640,7 +640,7 @@ module.exports = ${formData.agentName.replace(/\s+/g, '')};`;
}

function getGenericJavaCode(formData) {
return `// ${formData.agentName} - Redis AI Agent
return `// ${formData.agentName} - AI Agent
// Generated for ${CONFIG.agentTypes[formData.agentType].description}

import redis.clients.jedis.Jedis;
Expand Down Expand Up @@ -680,7 +680,7 @@ public class ${formData.agentName.replace(/\s+/g, '')} {
}

function getGenericCSharpCode(formData) {
return `// ${formData.agentName} - Redis AI Agent
return `// ${formData.agentName} - AI Agent
// Generated for ${CONFIG.agentTypes[formData.agentType].description}

using StackExchange.Redis;
Expand Down