X21 Tutorial
This hands-on tutorial guides you through X21’s essential features using practical examples. Follow along with your own workbook to learn how to interact with the AI assistant effectively.Prerequisites
- X21 installed and running (see Installation)
- Microsoft Excel with an active workbook
- Sample data (create a simple table with headers if needed)
Part 1: Your First AI Interaction
Step 1: Open the AI Chat
- Launch Excel and open a workbook
- Click the X21 ribbon tab
- Click AI Chat to display the task pane
- Verify the connection status shows “Connected”
Step 2: Select Your Data
- Select a range of cells in your worksheet (e.g., A1:D10)
- Notice the selected range badge appears in the input area
- The AI is now aware of your selection
Step 3: Send a Simple Request
Type this in the input area:- The AI reads your selection
- It streams a response in real-time
- You see “thinking blocks” showing the AI’s reasoning process
Part 2: Working with Tools
Understanding Tool Permissions
When the AI needs to modify your workbook, it requests permission first. Try this:- A pending tool card appears
- It shows what changes will be made
- You can View, Approve, or Reject
Viewing Changes Before Applying
- Click View on the pending tool
- Changes are applied temporarily
- Review the results in Excel
- Click Apply to keep or Revert to undo
Part 3: Using Slash Commands
Slash commands provide quick access to common operations.Try the Format Command
- Select a data range
- Type
/formatin the input - The slash command palette appears
- Press Enter to execute
/summarize_selection- Get insights about your data/clean_up_data- Find and fix data quality issues/generate_chart_plan- Get chart recommendations
Part 4: Working with References
Sheet Mentions
Reference specific sheets using the@ symbol:
- Type
@to open sheet picker - Search and select sheets
- Click sheet pills to navigate
Range References
Insert your current selection:Part 5: Managing Conversations
Starting Fresh
- Click New Chat to start a new conversation
- Previous conversations are automatically saved
- Access history with
Ctrl+H
Editing and Retrying
- Hover over any message you sent
- Click the Edit button
- Modify your prompt and resend
Providing Feedback
Help improve X21:- Click thumbs up 👍 for helpful responses
- Click thumbs down 👎 to provide feedback
- Add specific comments about issues
Part 6: Advanced Features
Attaching Files
Analyze external data:- Click the paperclip icon or drag files into the input
- Supported: PDFs (up to 100 pages), images (PNG, JPG)
- Ask questions about the attached content
Auto-Approve Mode
For trusted operations:- Toggle Auto-approve in the input area
- Read and write tools execute immediately
- Use for repetitive tasks
Tool Management
Customize which tools are available:- Press
Ctrl+Shift+Tto open tools panel - Toggle individual tools on/off
- See which tools auto-approve (marked AUTO)
Part 7: Best Practices
Effective Prompting
Be specific:Performance Tips
- Start new conversations for different tasks (avoids token limits)
- Use slash commands for common operations
- Batch similar operations in one request
When Things Go Wrong
- If disconnected, click Reconnect
- Cancel streaming responses with the Stop button
- Check Troubleshooting for common issues
Next Steps
Now that you’ve completed the tutorial:- Explore Use Cases & Excel Operations for specific scenarios
- Review Best Practices for expert tips
- Check the Reference for all available tools
Practice Exercises
Exercise 1: Data Cleanup
- Create a table with inconsistent formatting
- Use
/clean_up_datato identify issues - Let the AI fix formatting problems
Exercise 2: Analysis Pipeline
- Select a data table
- Ask for summary statistics
- Request a chart recommendation
- Have the AI format the results
Exercise 3: Multi-Sheet Workflow
- Create two sheets with related data
- Use
@sheetmentions to reference both - Ask the AI to compare or combine data

