Skip to main content
Under the hood, the agent sends the document type, an optional template, and the content to an AI-powered document processor, which assembles the file and returns it to the agent. This means documents can be populated with data the agent just generated, instead of relying on a static template alone.

What is an Office Documents Tool?

An Office Documents Tool lets you:
  • βœ… Generate Word documents (.docx)
  • βœ… Create Excel spreadsheets (.xlsx)
  • βœ… Build PowerPoint presentations (.pptx)
  • βœ… Generate PDF documents
  • βœ… Edit existing documents
  • βœ… Populate templates with dynamic data
  • βœ… Use AI-powered document generation
Agent Process:
  1. Agent prepares data
  2. Calls Office Doc Tool
    • Document type
    • Template
    • Content
  3. Office Processor (Claude + Skills)
  4. Document generated (docx/xlsx/pptx/pdf)
  5. Returns to agent

Supported Document Types

Word Documents (.docx)

Create professional reports, contracts, and written content:
  • βœ… Formatted text with styles
  • βœ… Tables and lists
  • βœ… Headers and footers
  • βœ… Page breaks
  • βœ… Images and diagrams
  • βœ… Metadata (title, author, etc.)
Use Cases:
  • Report generation
  • Contract generation
  • Meeting minutes
  • Technical documentation

Excel Spreadsheets (.xlsx)

Generate data-rich spreadsheets with formulas:
  • βœ… Multiple sheets
  • βœ… Formulas and calculations
  • βœ… Cell formatting
  • βœ… Charts and graphs
  • βœ… Pivot tables
  • βœ… Data validation
Use Cases:
  • Financial reports
  • Data analysis
  • Inventory tracking
  • Performance dashboards

PowerPoint Presentations (.pptx)

Create dynamic presentations with slides:
  • βœ… Multiple slide layouts
  • βœ… Text formatting
  • βœ… Images and shapes
  • βœ… Charts and tables
  • βœ… Animations
  • βœ… Speaker notes
Use Cases:
  • Sales presentations
  • Training materials
  • Executive reports
  • Project updates

PDF Documents

Generate portable PDF files:
  • βœ… Convert from other formats
  • βœ… Create from templates
  • βœ… Add watermarks and signatures
  • βœ… Merge documents
  • βœ… Extract content
Use Cases:
  • Reports and forms
  • Contracts and agreements
  • Certificates
  • Published documents

Use Cases

Financial Report Generation

Agent receives quarterly data and generates a report:

Invoice Generation

Sales agent creates invoices programmatically:

Data Analysis Report

Analysis agent processes dataset:

Meeting Summary Document

Support agent documents meeting outcomes:

Configuration

Adding Office Documents Tool to an Agent

1

Go to Agent Settings

Open the agent where you want to use the Office Documents Tool
2

Open Tools Tab

Navigate to the Tools configuration section
3

Add New Tool

Click β€œAdd Tool” and select β€œOffice Documents”
4

Select Document Types

Choose which document types to enable:
  • Word (DOCX)
  • Excel (XLSX)
  • PowerPoint (PPTX)
  • PDF
5

Choose Model

Select the AI model for document generation:
  • Claude Sonnet 4.6 (recommended)
  • Claude Opus 4.6 (more capable)
6

Save

Office Documents Tool is now available

Tool Configuration

Skill Selection

The tool can use different skills depending on document type:

How to Use

Basic Document Generation

Agent provides document specifications:

Template-Based Generation

Agent uses predefined templates:

Excel with Formulas

Generate spreadsheet with calculations:

PowerPoint Presentation

Create slides dynamically:

Response Format

After generating a document, the tool returns:

Best Practices

Clear Structure

Organize documents logically with sections and headings

Professional Formatting

Use consistent styles and branding

Dynamic Data

Populate templates with accurate data

Error Handling

Handle generation failures gracefully

Document Generation Example

Template Strategy


Troubleshooting

Symptoms: Error when calling Office Documents ToolSolutions:
  • Check document data is properly formatted
  • Verify document type is supported
  • Review data completeness
  • Simplify content if too complex
  • Check model token limits
Symptoms: Document structure or formatting is incorrectSolutions:
  • Review template structure
  • Check data formatting
  • Adjust styling in template
  • Test with simpler content first
  • Use consistent formatting patterns
Symptoms: Large file or slow generationSolutions:
  • Split large documents into multiple files
  • Reduce data complexity
  • Use simpler formatting
  • Generate in batches
  • Optimize template structure
Symptoms: Excel formulas not working correctlySolutions:
  • Verify formula syntax
  • Check cell references
  • Use absolute references if needed
  • Test formulas in Excel first
  • Simplify complex calculations
Symptoms: Can’t download or access generated documentSolutions:
  • Check download URL is valid
  • Verify file hasn’t expired
  • Check storage permissions
  • Regenerate if expired
  • Verify storage is configured

Advanced Usage

Dynamic Report Generation

Batch Document Generation

Template Personalization

Document Workflow Integration


Model Selection

Claude Sonnet 4.6

  • Default choice for most use cases
  • Good balance of speed and capability
  • Handles complex document structures
  • Recommended for production use

Claude Opus 4.6

  • Most capable model
  • Better for complex content generation
  • Higher token usage
  • Use for premium/complex documents

Next Steps