# Creating documents (advanced)

> Templates, automatic data population, and more complex outputs when creating documents with the agent.

> **This content was translated automatically and may contain inaccuracies.**

import VideoEmbed from '../../../../../components/blog/VideoEmbed.astro';

Advanced document creation. We demonstrate how to work with templates, automatically populate a template with data from source materials, and produce more complex outputs in which the agent assembles a document from multiple sources.

<VideoEmbed url="https://pub-08e12a5d6d1a4d8d9a6a9c77b4ae3e84.r2.dev/homepage/academy/Documents%20-%2006%20-%20Document%20creation%20(advanced).mp4" title="Creating documents (advanced)" />