Skip to main content

Overview

The lua resources command manages your agent’s knowledge base - documents and information that your agent can reference during conversations.

Non-Interactive Mode

Note: Creating and updating resources requires interactive mode due to the editor integration for writing long-form content.

Knowledge Base

Create documents for your agent to reference

Full CRUD

Create, read, update, and delete resources

Editor Integration

Write long-form content easily

Always Current

Update resources as info changes

What Are Resources?

Resources are documents that your agent can access and reference - think of them as your agent’s knowledge library. Examples:
  • Product catalogs and specifications
  • Company policies and procedures
  • FAQs and common questions
  • Return/refund policies
  • Shipping information
  • Troubleshooting guides
  • Company history and values
  • Pricing information

Quick Start

1

Run Command

2

Create Resource

Opens your editor
3

Write Content

Write your content in the editor:
4

Save

Save and close editor

Operations

Create New Resource

Update Existing Resource

View Resource

Delete Resource

Deletion is permanent and cannot be undone. Always confirm before deleting.

Resource Best Practices

Structure Your Resources

Content Guidelines

Use Cases

Product Knowledge Base

Policy Documentation

FAQ Repository

Integration with Agent

How Agents Use Resources

Automatically:
  • Searches when relevant
  • Retrieves accurate information
  • Provides consistent answers
  • References specific resources
Example conversation:

Combine with Persona

Common Workflows

Build Knowledge Base

Seasonal Update

Policy Change

Best Practices

  • Update monthly minimum
  • Review quarterly
  • Archive old resources
  • Track last update dates
  • Good: 500-5000 characters
  • Too small: < 100 characters
  • Too large: > 50,000 characters
Break large docs into focused resources

Troubleshooting

Solution: Update persona to reference resources
Solution: Set default editor
Solution: Split into multiple resourcesOne large doc → Multiple focused docs

Next Steps

Configure Persona

Define how agent uses resources

Test Your Agent

Verify agent references resources correctly