Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

SuperDoc + AWS Bedrock

Agentic document editing using the Bedrock Converse API.

Docs: Integrations

Prerequisites

  • AWS credentials configured (aws configure or environment variables)
  • Bedrock model access enabled in the AWS console

Run

Node.js

npm install
npx tsx index.ts contract.docx reviewed.docx

Python

python -m venv venv && source venv/bin/activate
pip install superdoc-sdk boto3
python index.py contract.docx reviewed.docx

Configuration

Variable Default Description
AWS_REGION us-east-1 AWS region with Bedrock access
BEDROCK_MODEL_ID us.anthropic.claude-sonnet-4-6 Any Bedrock model that supports tool use

How it works

  1. Connects to SuperDoc via the SDK
  2. Loads tool definitions in Anthropic format — the same format Bedrock's Converse API expects
  3. Converts to Bedrock's toolSpec shape (3-line mapping)
  4. Runs an agentic loop: the model calls SuperDoc tools to read, query, and edit the document
  5. Saves the reviewed document