Used Codex's tool use to auto-generate actual .pptx / .docx / .xlsx files — not just content, the real files

Reddit r/AI_Agents Tools

Summary

The author describes using OpenAI's Codex model to generate actual Office files (.pptx, .docx, .xlsx) directly via function calls, resulting in a useful end-to-end document generation pattern for AI agents.

Been messing around with giving Codex tools that write Office files directly instead of just returning text. Took a while to get the function calls structured right but once it worked it felt like one of those "why wasn't I doing this already" moments. The agent handles the whole thing end to end — you describe what you want, it figures out the structure, calls the right functions, outputs a file you can actually open. Nothing groundbreaking architecturally but a genuinely useful pattern if you're building anything that involves document output. Full walkthrough in the comments.
Original Article

Similar Articles

Codex for Everyday Work: AI Agents Beyond Coding

YouTube AI Channels

OpenAI's Codex has evolved from a coding tool into a general-purpose AI agent, now used by knowledge workers for research, coordination, and data analysis, reducing hours of work into minutes.

What is Codex?

OpenAI Blog

OpenAI introduces Codex as a distinct AI agent designed to execute tasks across files and tools, complementing ChatGPT's conversational capabilities by handling workflows like file updates and automation.

Codex-maxxing

Hacker News Top

Jason Liu shares how he uses OpenAI's Codex for knowledge work beyond coding, leveraging durable threads, voice input, and steering to integrate coding agents into his broader workflow.

Introducing Codex

OpenAI Blog

OpenAI launches Codex, a cloud-based AI software engineering agent powered by codex-1 (optimized o3), capable of writing features, fixing bugs, and proposing pull requests with parallel task execution. Available to ChatGPT Pro, Business, Enterprise users today, with Plus and Edu support coming soon.

@vintcessun: VibeOfficing is bound to take off. OfficeDex lets you generate native .docx/.pptx/.xlsx files directly from natural language — no need to go through HTML first or tweak formatting manually. Its design isn't a single-prompt file generator; instead, multiple agents divide the work — one defines the outline, one writes the content, one handles layout, and it remembers your past style. Plus, with built-in preview, you don't need Office installed — great for teams that produce weekly reports.

X AI KOLs Timeline

OfficeDex is the first AI-native VibeOfficing platform that generates native .docx/.pptx/.xlsx files directly from natural language, using multiple agents for structure, content, and formatting, with memory and built-in preview.