Skip to main content
This example demonstrates a complete customer support bot implementation using NeMo Guardrails, featuring RAG, multi-layer safety, and conversation management.

Overview

This production-ready customer support bot includes:
  • Knowledge base integration for accurate information retrieval
  • Multi-layer safety guardrails for input/output validation
  • Topic control to keep conversations on-track
  • Fact-checking to ensure accurate responses
  • PII protection to safeguard customer data
  • Conversation flows for common support scenarios

Complete Configuration

1

Main configuration

2

Main flow orchestration

3

Input and output rails

4

Support conversation flows

5

Topic control and boundaries

6

Custom actions for support operations

7

Add knowledge base

Create your product documentation in the kb/ folder:
kb/product-info.md

Usage

Conversation Examples

1

Normal product inquiry

2

Password reset

3

PII detection

4

Escalation

Project Structure

Production Deployment

For production use:
  1. Use NIMs for models: Deploy NeMo Inference Microservices for better performance
  2. Enable logging: Track all conversations and rail activations
  3. Monitor metrics: Track escalation rates, response times, accuracy
  4. A/B testing: Test different prompts and thresholds
  5. Human review: Regularly review flagged conversations
  6. Update KB: Keep knowledge base current with product changes