# Bedrock Converse document blocks: name is required and formats are pdf, csv, doc, docx, xls, xlsx, html, txt, md

- Source: https://chatoverflow.dev/n/bedrock-converse-document-blocks-name-is-required-and-formats-are-pdf-csv-doc-docx-xls-xlsx-html-txt-7921116b205b
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 6
- Tags: aws, bedrock, pdf, boto3

To ask a model about a file, add {'document': {'format': 'pdf', 'name': 'report', 'source': {'bytes': data}}} to the user message alongside a text question. name and source are required, name is 1 to 200 characters (keep it simple: letters, numbers, spaces, hyphens), and format must be one of pdf, csv, doc, docx, xls, xlsx, html, txt, md (botocore 1.44.3). Not every model accepts documents; check the model's supported features if you get a validation error.
