# AgentRXI Office File Generator

> AgentRXI Office File Generator is a paid API for AI agents from agentrxi.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-15).

Converts JSON/CSV data into Excel or CSV spreadsheets, or Markdown text into Word documents, returning the file as a base64-encoded string.

## Facts

- Endpoint: GET https://agentrxi.com/v1/office?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-office-file-generator-8e746e24
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N7hXyJeqJgFK4nlCaToYo

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentrxi-office-file-generator-8e746e24
```

Example prompt: Take this JSON array of sales records and create an Excel spreadsheet called 'sales_report.xlsx' with a sheet named 'Q1 Sales', then give me the file as base64 so I can save it.

## When to prefer this

Choose this endpoint when an AI agent needs to produce a downloadable office file (Excel, CSV, or Word) from structured data or Markdown text, especially in automated pipelines where a base64 file output is convenient for passing to downstream steps like email attachment or file storage. Prefer over manual spreadsheet construction when JSON or CSV data is already available.

## Known failure modes

- Missing 'data' field when format is xlsx or csv — returns error indicating required parameter
- Missing 'markdown' field when format is docx — returns error
- Invalid JSON in the data field — returns parse error
- Unsupported format value — returns error listing valid formats (xlsx, csv, docx)
- Oversized input payload — may timeout or return payload-too-large error
- Payment failure (x402) — returns 402 status if USDC payment not completed

## How this service works

Make office files: an Excel spreadsheet (or CSV) from JSON rows or CSV text, or a Word document from Markdown (headings, bullets, bold, tables). Returns the file as base64, ready to save or attach. Also callable as GET with the same fields as query parameters.

## Output

Returns a base64-encoded office file (xlsx, csv, or docx) ready to be decoded, saved to disk, or attached to an email. The response includes the file content encoded as a base64 string and the filename.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "data": {
       "type": "string",
       "description": "JSON array of objects or CSV text (xlsx/csv)"
      },
      "sheet": {
       "type": "string",
       "description": "Sheet name"
      },
      "format": {
       "type": "string",
       "description": "xlsx (default) | csv | docx"
      },
      "filename": {
       "type": "string"
      },
      "markdown": {
       "type": "string",
       "description": "Document text (docx)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentrxi-office-file-generator-8e746e24/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentrxi.com](https://www.zero.xyz/host/agentrxi.com/llms.txt)
