Skip to main content

Overview

The lua features command provides an interactive interface for managing your AI agent’s capabilities: Knowledge Search (rag), Web Search (webSearch), and Inquiry Forms (inquiry). For what each feature does and how it fits with resources and the Admin Dashboard, see Features.
Prefer a UI? The same toggles and per-agent context editing are available in the Admin Dashboard — see Features → Admin Dashboard. The CLI and dashboard call the same API, so changes in one surface immediately in the other.
Centralized control over agent features with instant enable/disable and context customization!

Non-Interactive Mode

View Features

See all available features and their status

Enable/Disable

Activate or deactivate features instantly

Update Context

Customize feature instructions

Batch Updates

Update status and context together

Available Features

Knowledge Search (rag)

RAG-based knowledge base search for retrieving information from your documentation. Capabilities:
  • Semantic search across knowledge base
  • Category-based search (FAQ, policies, instructions)
  • Document retrieval with citations
  • Contextual information retrieval
Best for: Information agents, documentation assistants, customer support

Web Search (webSearch)

Real-time internet search capability for accessing current information, with source links attached to the response. Search runs one of two ways depending on your agent’s model:
  • Native search — models with a built-in, cited web search path (OpenAI, Anthropic, Google/Gemini, xAI, and Zhipu AI’s GLM models) use the provider’s own search tool.
  • Assisted search — every other model falls back to Lua’s own web-search tool.
Either way, responses come back with the same source-citation format, so your agent’s behavior doesn’t change based on which model it’s using.
Important: The Web Search feature is not a web scraper. It cannot navigate to or read specific URLs directly, and it does not scrape content from individual or bulk pages.
Capabilities:
  • Search the web in real-time
  • Retrieve up-to-date information and current events
  • Return synthesized answers with source citations
Best for: Research agents, information lookup, real-time data needs How to Enable:
  • Enabled by default for new agents, like the other built-in features. Native search can add latency and per-search cost on some models, so disable it if your agent doesn’t need it.
  • Can be toggled on or off by running lua features enable --feature-name webSearch or lua features disable --feature-name webSearch in the CLI.

Inquiry Forms (inquiry)

Define conversational forms so the agent can collect structured answers from users. Submissions are visible in the Admin Dashboard. Inquiry forms are general-purpose (leads, intake, feedback, or support-style flows)—they replaced the older standalone “support tickets” feature. Capabilities:
  • Generate inquiry forms from your form definitions
  • Collect and track submissions
  • Add comments and manage follow-up in the dashboard
Best for: Sales, lead capture, support intake, or any workflow that needs structured data from conversations

Quick Start

1

Run Command

2

View Features

See all available features with their current status:
3

Manage Features

Select what you want to do:
  • View feature details
  • Manage a feature (enable/disable/update)
  • Refresh list
See complete information about a feature
Use for: Understanding what a feature does before enabling

Managing Features

Enable a Feature

1

Select Manage

2

Choose Feature

3

Activate

Disable a Feature

1

Select Feature

2

Deactivate

Update Feature Context

Customize how your agent uses a feature by editing its instructions.
1

Select Feature

2

Update Context

Your system editor opens with the current context:
3

Edit and Save

Modify the instructions:
Save and exit your editor.
4

Confirm

Batch Update (Status + Context)

Update both feature status and context in one operation.
1

Select Feature

2

Choose Batch Update

3

Edit Context

Your editor opens for context editing…Save your changes.
4

Review and Confirm

Use Cases

Customer Support Agent

Enable features for internal knowledge and optional intake:
Features Active:
  • ✅ Knowledge Search - Access help docs and policies
  • ✅ Inquiry Forms (optional) - Structured intake or follow-up
  • ❌ Web Search - Not needed for internal-only support

Sales Agent

Configure for lead generation and product information:
Features Active:
  • ✅ Inquiry Forms - Lead generation
  • ✅ Knowledge Search - Product information
  • ✅ Web Search - Market research

Information Agent

Optimize for information retrieval:
Features Active:
  • ✅ Knowledge Search - Primary source
  • ✅ Web Search - Supplementary data
  • ❌ Inquiry Forms - No data collection needed

Customizing Feature Context

Writing Effective Context

Good feature context should include:
Explain what the feature is for:
Specify appropriate situations:
Set boundaries and expectations:
Provide concrete examples:

Context Templates

Knowledge Search Template

Web Search Template

Inquiry Forms Template

Complete Workflows

Initial Agent Setup

Feature Testing Workflow

Feature Optimization

Integration with Other Commands

Features + Persona

Coordinate features with persona:

Features + Skills

Build skills that use platform features:

Features + Environment

Different features per environment:

Best Practices

Enable only features you need:
Detailed instructions improve results:
Always test feature changes:
Keep notes on feature configuration:
Audit features periodically:

Troubleshooting

Error: “Failed to fetch features”Solutions:
  1. Verify authentication:
  2. Check lua.skill.yaml has agentId:
  3. Test API connection:
Problem: Editor opens but changes don’t saveSolutions:
  1. Make sure you save in editor (:wq for vim)
  2. Confirm when prompted after editing
  3. Check for error messages
  4. Try again with refresh:
Problem: Enabled feature not available in chatSolutions:
  1. Verify feature is active:
  2. Refresh agent session:
  3. Check feature context is not empty
  4. Redeploy if needed:
Error: “Feature update failed”Solutions:
  1. Check agentId is correct
  2. Verify API key has permissions
  3. Ensure feature name is valid
  4. Check network connection
  5. Try refreshing features list first
Problem: Context update doesn’t open editorSolutions:
  1. Set EDITOR environment variable:
  2. Add to shell config (~/.bashrc or ~/.zshrc):
  3. Try different editor:

Requirements

  • Authentication: Valid API key (lua auth configure)
  • Project: Must be in skill directory with lua.skill.yaml
  • Agent ID: Configuration must contain agent.agentId
  • Permissions: API key must have agent management permissions

lua persona

Configure agent personality to work with features

lua chat

Test features in conversation

lua admin

View feature usage in admin dashboard

lua push skill

Deploy skills that use features

Next Steps

Features overview

What each feature does (rag, webSearch, inquiry)

Test Features

Use lua chat to test feature behavior

Build Skills

Create tools that leverage features

Configure Persona

Update persona to mention capabilities

Admin Dashboard

Monitor feature usage