Skip to main content

1. Best Practices for Implementation & Orchestration

Successfully deploying agents on the EKB platform requires strategic planning and adherence to orchestration best practices.

Strategic Planning

Identifying High-Value Use Cases

Leverage the platform’s capabilities by targeting industries where EKB agents excel:
  • Finance: SQL-querying agents for P&L reports and risk analysis.
  • HR: Resume Screener agents that analyze PDFs and draft emails.
  • Software Development: PR Reviewer agents for code analysis and documentation.
  • Sales: Lead Enrichment agents integrating Web Search and Salesforce.
  • Customer Support: Tier-1 support agents with ERP and Knowledge Base access.

Defining Agent Scope

Agent Design Patterns

Pattern 1: Single Specialist A dedicated agent equipped with deep domain knowledge and specific tools. For example, a “Data Analyst” agent configured with the Database Toolkit and Python Code Execution Toolkit. Pattern 2: Multi-Agent Systems Use the Agent Communication Toolkit to create a system where a “Manager Agent” breaks down complex requests and delegates tasks to specialized “Worker Agents.” This ensures separation of concerns and higher accuracy for complex workflows.

Knowledge Base Strategy

The Knowledge Base Toolkit powers Retrieval Augmented Generation (RAG). To optimize performance:
  • Chunking: The platform handles chunking, but ensuring clear document structure improves retrieval.
  • Versioning: Remove outdated documents to prevent conflicting answers.

Prompt Engineering (Personality Prompts)

The Personality Prompt (also called System Instruction) in the General Settings tab is the most powerful configuration lever available in the EKB platform. This single text field governs your agent’s identity, behavior, decision-making framework, and interaction style. Unlike the field name suggests, it should contain comprehensive instructions—not just personality traits.

Why Personality Prompts Matter

A well-crafted Personality Prompt is the difference between an unreliable chatbot and a trusted enterprise assistant. It:
  • ✅ Defines the agent’s expertise domain and scope of responsibility
  • ✅ Establishes behavioral guardrails to prevent hallucinations or inappropriate responses
  • ✅ Instructs the agent on when and how to use tools (Database, Web Search, etc.)
  • ✅ Specifies response formatting for consistency across conversations
  • ✅ Sets escalation triggers for scenarios requiring human intervention
⚠ Common Mistake Many users write only 1-2 sentences like “You are a helpful assistant.” This is insufficient for enterprise agents. A production-grade Personality Prompt should be 200-500 words with clear sections covering role, constraints, tool usage, and output format.

Anatomy of a Robust Personality Prompt

Structure your Personality Prompt with these essential components:

Complete Personality Prompt Example: IT Support Agent

Best Practice: Iterative Refinement

No Personality Prompt is perfect on Day 1. After deployment:
  1. Review conversation logs in the Chat interface
  2. Identify where the agent failed or gave incorrect responses
  3. Update the Personality Prompt to address those specific scenarios
  4. Use Version History to track changes and rollback if needed
  5. Repeat monthly for continuous improvement

Advanced Prompt Engineering Techniques

Few-Shot Examples (In-Context Learning)

Include 2-3 example interactions directly in your Personality Prompt to demonstrate desired behavior:

Negative Constraints (What NOT to Do)

Explicitly list prohibited behaviors to reduce hallucinations and errors:
  • ❌ “Never invent employee information if a user is not found. Say: ‘I cannot locate that Employee ID. Please verify and try again.’”
  • ❌ “Never provide password reset instructions for accounts you cannot verify.”
  • ❌ “Never assume permissions. If uncertain, escalate.”

Chain-of-Thought Reasoning

Instruct the agent to explain its reasoning process for transparency:

Conditional Logic for Multi-Scenario Handling

Use IF-THEN structures to handle different request types:

Testing Your Personality Prompt

Use the Chat interface to test these scenarios before deployment: 💡 Platform Tip: Use Prompt Settings Enable Prompt Settings > Improve Prompts to let EKB automatically enhance user queries before they reach your agent. This feature adds clarity and context, improving your agent’s comprehension even if users submit vague requests.

Tool & Toolkit Orchestration

Select the appropriate EKB Toolkits to extend agent capabilities:
  • Knowledge Base Toolkit: RAG-powered retrieval from proprietary docs.
  • Web Search Toolkit: Real-time information access.
  • Database Toolkit: Query SQL databases and Smart Tables.
  • Python/Node.js Toolkits: Secure code execution sandboxes.
  • Document Manager Toolkit: Create and edit documents in chat.
  • Smart Table Manager Toolkit: NoSQL-style internal data management.
  • Agent Communication Toolkit: Delegate tasks to other agents.
  • Workflow Manager Toolkit: Execute deterministic automation workflows.
  • Image Generation Toolkit: Create images using DALL-E 3.

Testing & Iteration Workflow

Use the Center Panel Chat/Canvas for iterative testing. Test Scenario Checklist
  1. Happy Path: Standard query with all context.
  2. Missing Info: Does the agent ask clarifying questions?
  3. Tool Triggers: Verify specific toolkits activate correctly.
  4. Edge Cases: Ambiguous or out-of-scope requests.
  5. Latency: Check performance on complex tool chains.

Governance & Compliance

Adhere to EKB security best practices:
  • Principle of Least Privilege: Grant agents only minimum required tools.
  • Human-in-the-Loop: Configure approval workflows for high-risk actions (e.g., bulk emails, DB writes).
  • Data Access Controls: Use role-based access and PII masking.
  • Audit Logging: Enable logging for all actions for compliance.
  • Prompt Injection Protection: Validate inputs to prevent malicious overrides.

What Goes in the Personality Prompt?

Every production agent should have these elements clearly defined:
  • Role & Expertise: Who is this agent? What domain knowledge does it possess?
  • Mission Statement: What is the agent’s primary goal? What problems does it solve?
  • User Audience: Who will interact with this agent? What’s their technical level?
  • Scope & Boundaries: What CAN the agent help with? What is explicitly OUT OF SCOPE?
  • Behavioral Rules: Must-do and must-not-do behaviors
  • Tool Usage Guidelines: When and how to use Database, Web Search, Python, etc.
  • Response Structure: How should answers be formatted?
  • Escalation Criteria: When to defer to a human or specialized agent
  • Tone & Style: Formal? Friendly? Technical? Empathetic?

Real-World Example: Sales Lead Enrichment Agent

Personality Prompt Do’s and Don’ts

💡 Pro Tip: Prompt Templates by Use Case EKB’s Agent Templates (for example, Budget Planning Assistant, Contract Review AI, and Employee Assistant) come with pre-configured personality prompts optimized for those roles. Start from a template, then customize the personality prompt for your specific business context. This saves significant initial configuration time.

Testing & Troubleshooting

Common Issues & Solutions

Production Readiness Checklist

Ensure your agent is ready for deployment using the EKB verification framework.
  • ✅ Configuration Verification: Prompts are structured, correct Model selected.
  • ✅ Security Verification: Least privilege applied, approval workflows set for high-risk actions.
  • ✅ Testing Verification: Happy path, edge cases, and tool triggers tested in Chat.
  • ✅ Documentation: User guides and troubleshooting steps prepared.

6. Performance Optimization

Continuous improvement strategies to maintain agent effectiveness:
  • System Prompt Engineering: Continuously refine Personality Prompts based on user interaction logs.
  • Knowledge Base Optimization: Regularly audit KB documents; optimize file sizes and naming conventions.
  • Context & Token Management: Balance response quality with cost by managing context window usage.
  • Tool Usage: Minimize unnecessary calls; leverage parallel execution where possible.