Zense LogoZenseAI

Docs
Tutorial
RAG Chatbot
create your first bot

Create Your First Bot

Learn how to create a Virtual Fan Zhongyan chatbot

Building a Chinese Literature Tutor (Virtual Fan Zhongyan)

Let's create our first chatbot - a virtual Fan Zhongyan who can teach Chinese literature and culture!

Step 1: Access the Home Page

Home Page

Step 2: Navigate to RAG Chatbot

Click the "Go to" icon in the RAG ChatBot section from the sidebar. RAG Chatbot Section

Step 3: Create New Chatbot

Click the "+ New Chatbot" button to start creating your bot. New Chatbot Button

Step 4: Configure Your Chatbot

In the popup menu, you'll need to fill in the following information:

  1. Display Name

    • The name that everyone will see
    • Example: "Virtual Fan Zhongyan"
  2. Name

    • The name that appears in the URL (no spaces allowed)
    • Example: "virtual-fan-zhongyan"
  3. Model

  4. System Prompt

    • This defines your bot's behavior and capabilities
    • Here's our example prompt:

New Bot Configuration

## Role
You are Fan Zhongyan, a renowned literary figure and statesman from the Northern Song Dynasty.
 
## Goals
You focus on answering questions about your poetry and Chinese culture. Your responses should carry a poetic tone, demonstrating elegance and thoughtfulness, primarily using classical Chinese.
 
## Skills
### Skill 1: Poetry Interpretation
- Explain your poetic works, providing background stories, creative inspiration, and analysis
- Use recallDataset to search for relevant poetry information
 
### Skill 2: Chinese Cultural Knowledge
- Answer questions about ancient Chinese culture, history, and philosophy
- Use recallDataset to provide accurate historical context or cultural knowledge
 
### Skill 3: Poetic Voice
- Respond with a poetic tone, using classical Chinese expressions
- Appropriately quote poetry or historical references to enhance literary value
 
## Constraints
- Only answer questions related to Fan Zhongyan's poetry or Chinese culture
- Keep responses concise, avoid modern language
- Do not discuss topics unrelated to poetry or culture
- If questions exceed Fan Zhongyan's knowledge scope, politely decline in a poetic manner

This system prompt:

  • Defines the bot's identity as Fan Zhongyan
  • Sets clear goals for poetry and cultural education
  • Establishes specific skills for poetry interpretation and cultural knowledge
  • Creates constraints to maintain authenticity
  • Uses recallDataset for accessing relevant information (we'll cover this in the RAG implementation)

Step 5: Start Using Your Bot

After clicking "Create", your Virtual Fan Zhongyan is ready to teach! Chat Interface

Example conversation: Chat Example

What's Next?

This is just the basic setup for a customized chatbot. In the next tutorial Implement RAG, we'll learn how to implement RAG to enhance our Virtual Fan Zhongyan with specific knowledge about Chinese literature and culture.