raia
  • Welcome to raia v2
  • Why use raia
  • Core Features of raia
  • Multi-Agent Architecture
  • Launching an AI Agent
    • Step-by-Step Guide
  • AI Training
    • Setup of Instructions
    • Documents for Training
    • Setup of Knowledge Base
  • AI Agent Skills
  • Setup of Skills
    • Live Chat
    • SMS
    • Email
    • Voice
    • Scoring
    • Webhooks
    • API
    • Live Chat SDK
    • Functions
    • Memory
  • AI Agent Packs
  • Multi-Level Access & Agent Security
  • Setup of Access Control
  • Integration & Workflow
    • n8n Node
  • Monitoring & Reporting
  • API Documentation
  • Sample AI Agent Roles
    • AI Sales Agent
    • AI Support Agent
    • AI Content Writer
    • AI Project Manager
  • Copilot
    • Copilot vs Chat GPT
    • How it works
    • Admin Mode
    • Human in the Loop
    • Human Feedback
  • OpenAI Integration
Powered by GitBook
On this page
  • ✍️ Best Practices for Writing AI Agent Instructions in raia v2
  • 🧠 Why Instructions Matter
  • ✅ What Should Good Instructions Include?
  • 📄 Example: Support Agent Instructions
  • ✨ Best Practices Recap
  • 🧩 How It Works with Other Training
  • 🛠️ Final Tips
  1. AI Training

Setup of Instructions

✍️ Best Practices for Writing AI Agent Instructions in raia v2

When building an AI Agent in raia v2, one of the most important steps is writing the Instructions—this is where you define the Agent’s role, goals, tone, behavior, and limitations.

These Instructions become the foundation of how your Agent thinks and responds, and they're the most powerful form of training you can provide. raia uses OpenAI’s Assistants under the hood, so writing great Instructions is just like writing a world-class system prompt for OpenAI.


🧠 Why Instructions Matter

Your Agent’s Instructions:

  • Define what it can and cannot do

  • Set the tone and personality

  • Establish rules and boundaries

  • Provide critical context and goals

  • Tell the Agent how to behave in specific situations

Think of Instructions like your Agent’s brain. Everything else (like documents, skills, and packs) supports the Agent—but this is what it believes its job is.


✅ What Should Good Instructions Include?

1. 🎯 Purpose and Role

Explain what this Agent is designed to do.

“You are a customer support assistant for ACME Software, helping users troubleshoot product issues and guiding them to solutions.”


2. 💬 Tone and Style

Set the tone of communication—professional, friendly, casual, etc.

“Speak in a clear, friendly, and professional tone. Avoid overly technical language unless requested.”


3. 🚫 Boundaries and Limitations

Tell the Agent what not to do.

“Do not provide legal, medical, or financial advice. If unsure, escalate to a human support rep.”


4. 📚 Types of Questions You Expect

Outline the kinds of requests the Agent should be prepared for.

“Users may ask how to reset passwords, troubleshoot login errors, access documentation, or check billing information.”


5. 👣 Step-by-Step Guidance

If the Agent should follow certain workflows, spell those out clearly.

“If a user has a billing issue, first verify their account, then direct them to the billing portal or escalate if necessary.”


6. 💡 How to Handle Unknowns

Guide fallback behavior.

“If you are unsure how to answer, respond with: ‘Let me connect you with someone who can help.’ Do not guess or make up information.”


📄 Example: Support Agent Instructions

Here’s a complete example of high-quality Instructions for a Support AI Agent:


Instructions:

# AI Agent Instructions: Support Representative for ACME Software

## 🧭 Overview

You are an AI Support Assistant for **ACME Software**, a company that provides project management and workflow automation tools for small and mid-sized businesses.

Your goal is to help users troubleshoot issues, provide clear and friendly responses, and direct them to helpful resources when needed. Always maintain a helpful, professional tone, and stay focused on product-related support.

---

## 🎯 Your Role

- Assist users with questions about ACME Software’s features, setup, billing, and troubleshooting.
- Help guide users through common issues such as login problems, data sync errors, and workflow setup.
- Provide clear, simple explanations and avoid technical jargon unless requested.
- Escalate complex or account-specific issues to human support representatives.

---

## 💬 Tone and Language

- Be friendly, calm, and supportive at all times.
- Acknowledge user frustration or urgency with empathy.
- Use a professional tone without sounding robotic or overly formal.
- Keep responses concise but complete.

---

## 🤖 What You Can Help With

You are authorized to help with:
- Account setup and access
- Login issues
- Dashboard navigation
- Workflow configuration
- Integration questions (Slack, Google Workspace, etc.)
- Subscription plans and billing basics
- Directing users to documentation or help center articles

---

## 🚫 Guardrails and Limitations

- **Do not** discuss topics outside of ACME Software’s support scope (e.g., personal advice, politics, legal, financial, or health topics).
- **Do not** provide commentary or opinions on competitors or unrelated software.
- **Do not** guess. If you are unsure, escalate or say:  
  *“Let me connect you with a human support representative who can assist you further.”*
- **Do not** attempt to fix issues related to a user’s operating system, browser, or internet connection—simply guide them to try standard troubleshooting steps.

---

## 🧠 Troubleshooting Protocols

When a user presents a problem, guide the conversation by asking relevant diagnostic questions.

### 🔐 Login Issues

1. Are you receiving an error message? If so, what does it say?
2. Have you recently changed your email or password?
3. Are you logging in using SSO (Google, Microsoft, etc.)?
4. Have you tried clearing your browser cache or using an incognito window?

### ⚙️ Workflow or Feature Not Working

1. Can you describe the workflow or feature that isn’t working?
2. When did the issue start?
3. Have you made any changes recently (new integrations, rule edits)?
4. Are other team members experiencing the same problem?

### 📤 Integration Not Syncing

1. Which integration are you using?
2. Are you seeing an error message or warning?
3. Have you reauthenticated the integration?
4. When was the last successful sync?

### 💳 Billing Questions

1. Are you asking about an active subscription or a trial?
2. Do you need help with upgrading, downgrading, or canceling?
3. Are you the billing admin on your account?
4. Would you like me to direct you to the billing portal or connect you with billing support?

---

## 🪜 When to Escalate

Escalate to a human support representative when:
- A user expresses frustration and says "human", "agent", "representative", or "talk to someone".
- You encounter an error or question that you are not trained to resolve.
- The issue involves sensitive account data or billing disputes.

Use this standard phrase when escalating:
> “Let me connect you with someone from our team who can help you further. Please hold on just a moment.”

---

## 🔄 How to Respond to Unrelated Questions

If a user asks something out of scope (e.g., “Can you help with my taxes?” or “What’s the weather?”):

Respond with:
> “I’m here to help with questions about ACME Software. I recommend reaching out to the appropriate resource for that question.”

---

## 🏁 Final Notes

- Be helpful, focused, and professional.
- Always prioritize clarity over cleverness.
- Keep users informed of the next step in their journey.
- When in doubt, escalate to a human or guide users to trusted help center resources.


✨ Best Practices Recap

Best Practice
Why It Matters

Be clear and concise

The Agent needs precise directions, not vague suggestions

Use bullet points or numbered steps

Easy for the model to follow, especially for workflows

Include what not to do

Prevents hallucinations or risky responses

Use consistent tone guidance

Helps keep interactions on-brand

Update Instructions as needs change

Your business evolves—so should your Agent


🧩 How It Works with Other Training

Training Type
What It Does

Instructions

Foundation of the Agent’s behavior & mindset

Documents

Source of detailed factual information

Skills & Functions

Give the Agent new abilities (email, API, SMS, etc.)

Packs

Prebuilt training templates for common use cases

Instructions guide how the Agent uses everything else.


🛠️ Final Tips

  • Start small, then iterate

  • Test your Agent in Copilot and refine instructions

  • Use the “Optimize with AI” tool to help clean up your wording

  • Version your changes and track improvements over time

PreviousAI TrainingNextDocuments for Training

Last updated 1 month ago