# Generating unstructured files from a database

The Data Agent is also able to use values from a database to populate unstructured files that you can use elsewhere. It can generate:

* PDFs
* Word files (.docx)
* PowerPoint files (.pptx)
* Email messages (.eml)
* Image files:
  * .png
  * .jpeg
  * .web
  * tiff

For example, you use the Data Agent to create a database of online retail transactions. You can prompt the Data Agent to create example order confirmation email messages from that data.

Or from a database of business-to-business transactions, you can prompt the Data Agent to generate a set of example invoices in PDF format or as image files.

You can provide guidance for document layout, formatting, and size.

As always, the Data Agent can ask you for any additional details it needs to produce the requested output.

When it finishes, it provides a link to download the files.

<figure><img src="/files/BWtZGWb8ghcWuTPMqSw5" alt=""><figcaption><p>Prompt and results to generate a PDF file that uses data from the database</p></figcaption></figure>

If you need to frequently generate a similar set of files, you can create a [workflow](/fabricate/data-agent-tools/workflows.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tonic.ai/fabricate/database-data/generating-and-using-database-data/data-agent-db-unstructured-files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
