---
title: "Document Agent"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/agents/documentagent
markdown: https://docs.nodetool.ai/nodes/nodetool/agents/documentagent.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/agents/documentagent.md
---

# Document Agent

**Type:** `nodetool.agents.DocumentAgent`

**Namespace:** `nodetool.agents`

## Description

Read, analyze, and convert documents to Markdown from a prompt.
    agent, document, analysis, conversion, markdown

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| model | `language_model` | Model used for free-form document tasks. | `{"type":"language_model","provider":"empty","id...` |
| prompt | `str` | Prompt describing the document task. | `` |
| timeout_seconds | `int` | Maximum runtime for agent execution. | `120` |
| max_output_chars | `int` | Maximum serialized output chars before truncation. | `150000` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| text | `str` |  |
| document | `document` |  |

## Related Nodes

Browse other nodes in the [nodetool.agents](./) namespace.
