Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

fix(amazon-textract): upload single-page PDF and TIFF files directly, no S3 needed (#16538)

Odai Ahmad74679c431184
diff --git a/bun.lock b/bun.lock
index b4242f27010..13b60b610d3 100644
--- a/bun.lock
+++ b/bun.lock
@@ -631,7 +631,7 @@
},
"packages/pieces/community/amazon-textract": {
"name": "@activepieces/piece-amazon-textract",
- "version": "0.3.8",
+ "version": "0.3.9",
"dependencies": {
"@activepieces/core-piece-types": "workspace:*",
"@activepieces/core-utils": "workspace:*",
diff --git a/packages/pieces/community/amazon-textract/package.json b/packages/pieces/community/amazon-textract/package.json
index d64fb6011be..7515a722e4e 100644
--- a/packages/pieces/community/amazon-textract/package.json
+++ b/packages/pieces/community/amazon-textract/package.json
@@ -1,6 +1,6 @@
{
"name": "@activepieces/piece-amazon-textract",
- "version": "0.3.8",
+ "version": "0.3.9",
"type": "commonjs",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
diff --git a/packages/pieces/community/amazon-textract/src/i18n/de.json b/packages/pieces/community/amazon-textract/src/i18n/de.json
index 41370c505fa..b00c024b70e 100644
--- a/packages/pieces/community/amazon-textract/src/i18n/de.json
+++ b/packages/pieces/community/amazon-textract/src/i18n/de.json
@@ -27,8 +27,6 @@
"Analyze Expense": "Ausgaben analysieren",
"Analyze ID Document": "ID-Dokument analysieren",
"Analyze Document from S3 (Multi-Page)": "Dokument von S3 analysieren (Multi-Page)",
- "Extract text, forms (key-value pairs), tables, and signatures from a document. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only. For multi-page PDFs, use Start Document Analysis instead.": "Extrahieren Sie Text, Formulare (Schlüssel-Wert-Paare), Tabellen und Signaturen aus einem Dokument. Unterstützt JPEG und PNG via Direktupload; PDF und TIFF nur über S3. Für mehrseitige PDFs verwenden Sie stattdessen Start Document Analysis .",
- "Extract plain text from a document. Faster and cheaper than Analyze Document — use this when you only need the text content without forms or tables. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only.": "Extrahieren Sie Klartext aus einem Dokument. Schneller und kostengünstiger als Dokument analysieren — verwenden Sie diese, wenn Sie nur den Textinhalt ohne Formulare oder Tabellen benötigen. Unterstützt JPEG und PNG via Direktupload; PDF und TIFF nur über S3.",
"Extract structured data from receipts and invoices: vendor name, totals, tax, line items, and more. Works best with clearly formatted receipts and invoices.": "Extrahieren Sie strukturierte Daten aus Quittungen und Rechnungen: Händlername, Totale, Steuern, Zeilenartikel und vieles mehr. Funktioniert am besten mit klar formatierten Quittungen und Rechnungen.",
"Extract structured data from identity documents such as driver's licenses and passports. Returns fields like name, date of birth, ID number, and expiry date.": "Extrahiert strukturierte Daten aus Personaldokumenten wie Führerschein und Reisepässe. Gibt Felder wie Name, Geburtsdatum, ID-Nummer und Ablaufdatum zurück.",
"Extract text, forms, tables, and signatures from a PDF or TIFF stored in S3. Works with both single-page and multi-page documents. This action waits for processing to finish and returns all results automatically — no extra steps needed.": "Extrahieren Sie Text, Formulare, Tabellen und Signaturen aus einem in S3 gespeicherten PDF oder TIFF. Funktioniert sowohl mit ein- als auch mehrseitigen Dokumenten. Diese Aktion wartet auf die Verarbeitung und gibt alle Ergebnisse automatisch zurück — keine zusätzlichen Schritte nötig.",
diff --git a/packages/pieces/community/amazon-textract/src/i18n/es.json b/packages/pieces/community/amazon-textract/src/i18n/es.json
index f97bbd348a2..d84a1b4dc2b 100644
--- a/packages/pieces/community/amazon-textract/src/i18n/es.json
+++ b/packages/pieces/community/amazon-textract/src/i18n/es.json
@@ -27,8 +27,6 @@
"Analyze Expense": "Analizar gastos",
"Analyze ID Document": "Analizar documento de ID",
"Analyze Document from S3 (Multi-Page)": "Analizar documento desde S3 (Multi-página)",
- "Extract text, forms (key-value pairs), tables, and signatures from a document. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only. For multi-page PDFs, use Start Document Analysis instead.": "Extraer textos, formularios (pares clave-valor), tablas, y firmas de un documento. Soporta JPEG y PNG mediante la subida directa; PDF y TIFF vía S3 solamente. Para PDFs de varias páginas, utilice el Análisis de Documento de Inicio en su lugar.",
- "Extract plain text from a document. Faster and cheaper than Analyze Document — use this when you only need the text content without forms or tables. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only.": "Extraer texto plano de un documento. Más rápido y más barato que Analizar Documento — utilice esto cuando sólo necesite el contenido de texto sin formularios o tablas. Soporta JPEG y PNG mediante la subida directa; PDF y TIFF a través de S3 solamente.",
"Extract structured data from receipts and invoices: vendor name, totals, tax, line items, and more. Works best with clearly formatted receipts and invoices.": "Extraer datos estructurados de recibos y facturas: nombre del proveedor, totales, impuestos, artículos de línea, etc. Funciona mejor con recibos y facturas claramente formateadas.",
"Extract structured data from identity documents such as driver's licenses and passports. Returns fields like name, date of birth, ID number, and expiry date.": "Extraer datos estructurados de documentos de identidad como licencias de conducir y pasaportes. Devuelve campos como nombre, fecha de nacimiento, número de ID y fecha de caducidad.",
"Extract text, forms, tables, and signatures from a PDF or TIFF stored in S3. Works with both single-page and multi-page documents. This action waits for processing to finish and returns all results automatically — no extra steps needed.": "Extraer textos, formularios, tablas y firmas de un PDF o TIFF almacenados en S3. Funciona con documentos de una sola página y de varias páginas. Esta acción espera a que el procesamiento finalice y devuelva todos los resultados automáticamente — no se necesitan pasos adicionales.",
diff --git a/packages/pieces/community/amazon-textract/src/i18n/fr.json b/packages/pieces/community/amazon-textract/src/i18n/fr.json
index eafcffc7a7c..34316a318d9 100644
--- a/packages/pieces/community/amazon-textract/src/i18n/fr.json
+++ b/packages/pieces/community/amazon-textract/src/i18n/fr.json
@@ -27,8 +27,6 @@
"Analyze Expense": "Analyser les dépenses",
"Analyze ID Document": "Document Analyze ID",
"Analyze Document from S3 (Multi-Page)": "Analyser le document à partir de S3 (Multi-Page)",
- "Extract text, forms (key-value pairs), tables, and signatures from a document. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only. For multi-page PDFs, use Start Document Analysis instead.": "Extraire du texte, des formulaires (paires clé-valeurs), des tables et des signatures d'un document. Prise en charge JPEG et PNG via téléchargement direct; PDF et TIFF via S3 uniquement. Pour les PDF multi-pages, utilisez l'analyse de document de démarrage à la place.",
- "Extract plain text from a document. Faster and cheaper than Analyze Document — use this when you only need the text content without forms or tables. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only.": "Extraire le texte brut d'un document. Plus rapide et moins cher que Analyze Document — utilisez ceci lorsque vous n'avez besoin que du contenu de texte sans formulaires ou tableaux. Prise en charge JPEG et PNG via téléchargement direct; PDF et TIFF uniquement via S3.",
"Extract structured data from receipts and invoices: vendor name, totals, tax, line items, and more. Works best with clearly formatted receipts and invoices.": "Extrait les données structurées des reçus et des factures : nom du vendeur, totaux, taxes, éléments de ligne et plus encore. Fonctionne mieux avec des reçus et des factures clairement formatés.",
"Extract structured data from identity documents such as driver's licenses and passports. Returns fields like name, date of birth, ID number, and expiry date.": "Extrait les données structurées des documents d'identité tels que les permis de conduire et les passeports. Renvoie les champs comme le nom, la date de naissance, le numéro d'identification et la date d'expiration.",
"Extract text, forms, tables, and signatures from a PDF or TIFF stored in S3. Works with both single-page and multi-page documents. This action waits for processing to finish and returns all results automatically — no extra steps needed.": "Extrait du texte, des formulaires, des tables et des signatures à partir d'un PDF ou d'un TIFF stocké dans S3. Fonctionne avec des documents à page unique et multi-pages. Cette action attend la fin du traitement et retourne tous les résultats automatiquement — aucune étape supplémentaire n'est requise.",
diff --git a/packages/pieces/community/amazon-textract/src/i18n/ja.json b/packages/pieces/community/amazon-textract/src/i18n/ja.json
index 8c33b3b0527..7239533df4d 100644
--- a/packages/pieces/community/amazon-textract/src/i18n/ja.json
+++ b/packages/pieces/community/amazon-textract/src/i18n/ja.json
@@ -27,8 +27,6 @@
"Analyze Expense": "経費の分析",
"Analyze ID Document": "ID文書の分析",
"Analyze Document from S3 (Multi-Page)": "S3 からドキュメントを分析(Multi-Page)",
- "Extract text, forms (key-value pairs), tables, and signatures from a document. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only. For multi-page PDFs, use Start Document Analysis instead.": "ドキュメントからテキスト、フォーム (キーと値のペア)、テーブル、および署名を抽出します。 直接アップロードしてJPEGとPNGをサポート、PDFとTIFFをS3のみでサポートしています。複数ページのPDFの場合は、代わりにドキュメント解析を開始してください。",
- "Extract plain text from a document. Faster and cheaper than Analyze Document — use this when you only need the text content without forms or tables. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only.": "ドキュメントからプレーンテキストを抽出します。 ドキュメントを分析するよりも高速で安価です — フォームやテーブルを持たないテキストコンテンツのみが必要な場合にこれを使用します。 直接アップロードを介してJPEGとPNGをサポートします。S3のみを介してPDFとTIFF。",
"Extract structured data from receipts and invoices: vendor name, totals, tax, line items, and more. Works best with clearly formatted receipts and invoices.": "レシートや請求書から構造化されたデータを抽出します:ベンダー名、合計、税金、行商品など。明確にフォーマットされたレシートや請求書で最適です。",
"Extract structured data from identity documents such as driver's licenses and passports. Returns fields like name, date of birth, ID number, and expiry date.": "運転免許証やパスポートなどの身分証明書から構造化されたデータを抽出します。名前、生年月日、ID番号、有効期限などのフィールドを返します。",
"Extract text, forms, tables, and signatures from a PDF or TIFF stored in S3. Works with both single-page and multi-page documents. This action waits for processing to finish and returns all results automatically — no extra steps needed.": "S3に格納されているPDFまたはTIFFからテキスト、フォーム、表、および署名を抽出します。シングルページおよびマルチページドキュメントの両方で動作します。 このアクションは、処理が完了するまで待機し、すべての結果を自動的に返します。追加のステップは必要ありません。",
diff --git a/packages/pieces/community/amazon-textract/src/i18n/nl.json b/packages/pieces/community/amazon-textract/src/i18n/nl.json
index ae9559d388d..0d4aa9b197b 100644
--- a/packages/pieces/community/amazon-textract/src/i18n/nl.json
+++ b/packages/pieces/community/amazon-textract/src/i18n/nl.json
@@ -27,8 +27,6 @@
"Analyze Expense": "Uitgaven analyseren",
"Analyze ID Document": "Analyseer ID Document",
"Analyze Document from S3 (Multi-Page)": "Document analyseren van S3 (Multi-Pagina)",
- "Extract text, forms (key-value pairs), tables, and signatures from a document. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only. For multi-page PDFs, use Start Document Analysis instead.": "Verwijder tekst, formulieren (sleutelwaarde paren), tabellen en handtekeningen van een document. Ondersteunt JPEG en PNG via direct upload; PDF en TIFF alleen via S3. Gebruik in plaats daarvan Start Document Analyse voor meerdere pagina's PDF's.",
- "Extract plain text from a document. Faster and cheaper than Analyze Document — use this when you only need the text content without forms or tables. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only.": "Verwijder platte tekst van een document. Sneller en goedkoper dan het analyseren van Document - gebruik dit wanneer je alleen tekstinhoud nodig hebt zonder formulieren of tabellen. Ondersteunt JPEG en PNG via direct upload; PDF en TIFF alleen via S3.",
"Extract structured data from receipts and invoices: vendor name, totals, tax, line items, and more. Works best with clearly formatted receipts and invoices.": "Haal gestructureerde gegevens uit bonnen en facturen uit: leveranciersnaam, totaal, belastingen, eindartikelen en meer. Werkt het beste met duidelijk geformatteerde bonnen en facturen.",
"Extract structured data from identity documents such as driver's licenses and passports. Returns fields like name, date of birth, ID number, and expiry date.": "Haal gestructureerde gegevens uit identiteitsdocumenten zoals rijbewijzen en paspoorten uit. Retourvelden zoals naam, geboortedatum, ID-nummer en vervaldatum.",
"Extract text, forms, tables, and signatures from a PDF or TIFF stored in S3. Works with both single-page and multi-page documents. This action waits for processing to finish and returns all results automatically — no extra steps needed.": "Verwijder tekst, formulieren, en handtekeningen uit een PDF of TIFF opgeslagen in S3. Werkt met zowel enkelvoudige pagina's als meerdere pagina's documenten. Deze actie wacht op de verwerking om de resultaten af te ronden en levert de resultaten automatisch op — geen extra stappen nodig.",
diff --git a/packages/pieces/community/amazon-textract/src/i18n/pt.json b/packages/pieces/community/amazon-textract/src/i18n/pt.json
index c1351dc54b8..7c7fabc6d62 100644
--- a/packages/pieces/community/amazon-textract/src/i18n/pt.json
+++ b/packages/pieces/community/amazon-textract/src/i18n/pt.json
@@ -27,8 +27,6 @@
"Analyze Expense": "Analisar Despesa",
"Analyze ID Document": "Analisar documento de identificação",
"Analyze Document from S3 (Multi-Page)": "Analisar o documento do S3 (multi-página)",
- "Extract text, forms (key-value pairs), tables, and signatures from a document. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only. For multi-page PDFs, use Start Document Analysis instead.": "Extrair textos, formas (pares de valor chave), tabelas e assinaturas de um documento. Suporta JPEG e PNG via upload direto; PDF e TIFF somente via S3. Para PDFs multi-página, use a Análise de Documento Iniciado.",
- "Extract plain text from a document. Faster and cheaper than Analyze Document — use this when you only need the text content without forms or tables. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only.": "Extrair texto de um documento. Mais rápido e mais barato do que analisar o Documento — use isso quando você só precisa do conteúdo de texto sem formulários ou tabelas. Suporta JPEG e PNG por upload direto; PDF e TIFF somente via S3.",
"Extract structured data from receipts and invoices: vendor name, totals, tax, line items, and more. Works best with clearly formatted receipts and invoices.": "Extraia dados estruturados de recibos e faturas: nomes de fornecedores, totais, impostos, itens de linha e muito mais. Funciona melhor com recibos e faturas claramente formatados.",
"Extract structured data from identity documents such as driver's licenses and passports. Returns fields like name, date of birth, ID number, and expiry date.": "Extraia dados estruturados de documentos de identidade, como licenças de motorista e passaportes. Retorna campos como nome, data de nascimento, número de ID e data de validade.",
"Extract text, forms, tables, and signatures from a PDF or TIFF stored in S3. Works with both single-page and multi-page documents. This action waits for processing to finish and returns all results automatically — no extra steps needed.": "Extrair texto, formulários, tabelas e assinaturas de um PDF ou TIFF armazenado no S3. Funciona com documentos de uma única página e de várias páginas. Esta ação espera pelo processamento para terminar e retorna todos os resultados automaticamente — não é necessário nenhum passo extra.",
diff --git a/packages/pieces/community/amazon-textract/src/i18n/translation.json b/packages/pieces/community/amazon-textract/src/i18n/translation.json
index 70fd0e49d8a..0d8e9d91f46 100644
--- a/packages/pieces/community/amazon-textract/src/i18n/translation.json
+++ b/packages/pieces/community/amazon-textract/src/i18n/translation.json
@@ -27,8 +27,8 @@
"Analyze Expense": "Analyze Expense",
"Analyze ID Document": "Analyze ID Document",
"Analyze Document from S3 (Multi-Page)": "Analyze Document from S3 (Multi-Page)",
- "Extract text, forms (key-value pairs), tables, and signatures from a document. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only. For multi-page PDFs, use Start Document Analysis instead.": "Extract text, forms (key-value pairs), tables, and signatures from a document. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only. For multi-page PDFs, use Start Document Analysis instead.",
- "Extract plain text from a document. Faster and cheaper than Analyze Document — use this when you only need the text content without forms or tables. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only.": "Extract plain text from a document. Faster and cheaper than Analyze Document — use this when you only need the text content without forms or tables. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only.",
+ "Extract text, forms (key-value pairs), tables, and signatures from a document. Supports JPEG, PNG, and single-page PDF or TIFF, uploaded directly or from S3. For multi-page PDFs, use Analyze Document from S3 (Multi-Page) instead.": "Extract text, forms (key-value pairs), tables, and signatures from a document. Supports JPEG, PNG, and single-page PDF or TIFF, uploaded directly or from S3. For multi-page PDFs, use Analyze Document from S3 (Multi-Page) instead.",
+ "Extract plain text from a document. Faster and cheaper than Analyze Document — use this when you only need the text content without forms or tables. Supports JPEG, PNG, and single-page PDF or TIFF, uploaded directly or from S3.": "Extract plain text from a document. Faster and cheaper than Analyze Document — use this when you only need the text content without forms or tables. Supports JPEG, PNG, and single-page PDF or TIFF, uploaded directly or from S3.",
"Extract structured data from receipts and invoices: vendor name, totals, tax, line items, and more. Works best with clearly formatted receipts and invoices.": "Extract structured data from receipts and invoices: vendor name, totals, tax, line items, and more. Works best with clearly formatted receipts and invoices.",
"Extract structured data from identity documents such as driver's licenses and passports. Returns fields like name, date of birth, ID number, and expiry date.": "Extract structured data from identity documents such as driver's licenses and passports. Returns fields like name, date of birth, ID number, and expiry date.",
"Extract text, forms, tables, and signatures from a PDF or TIFF stored in S3. Works with both single-page and multi-page documents. This action waits for processing to finish and returns all results automatically — no extra steps needed.": "Extract text, forms, tables, and signatures from a PDF or TIFF stored in S3. Works with both single-page and multi-page documents. This action waits for processing to finish and returns all results automatically — no extra steps needed.",
diff --git a/packages/pieces/community/amazon-textract/src/i18n/zh.json b/packages/pieces/community/amazon-textract/src/i18n/zh.json
index d4378e0321d..9fcf4fac3d1 100644
--- a/packages/pieces/community/amazon-textract/src/i18n/zh.json
+++ b/packages/pieces/community/amazon-textract/src/i18n/zh.json
@@ -27,8 +27,6 @@
"Analyze Expense": "Analyze Expense",
"Analyze ID Document": "Analyze ID Document",
"Analyze Document from S3 (Multi-Page)": "Analyze Document from S3 (Multi-Page)",
- "Extract text, forms (key-value pairs), tables, and signatures from a document. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only. For multi-page PDFs, use Start Document Analysis instead.": "Extract text, forms (key-value pairs), tables, and signatures from a document. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only. For multi-page PDFs, use Start Document Analysis instead.",
- "Extract plain text from a document. Faster and cheaper than Analyze Document — use this when you only need the text content without forms or tables. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only.": "Extract plain text from a document. Faster and cheaper than Analyze Document — use this when you only need the text content without forms or tables. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only.",
"Extract structured data from receipts and invoices: vendor name, totals, tax, line items, and more. Works best with clearly formatted receipts and invoices.": "Extract structured data from receipts and invoices: vendor name, totals, tax, line items, and more. Works best with clearly formatted receipts and invoices.",
"Extract structured data from identity documents such as driver's licenses and passports. Returns fields like name, date of birth, ID number, and expiry date.": "Extract structured data from identity documents such as driver's licenses and passports. Returns fields like name, date of birth, ID number, and expiry date.",
"Extract text, forms, tables, and signatures from a PDF or TIFF stored in S3. Works with both single-page and multi-page documents. This action waits for processing to finish and returns all results automatically — no extra steps needed.": "Extract text, forms, tables, and signatures from a PDF or TIFF stored in S3. Works with both single-page and multi-page documents. This action waits for processing to finish and returns all results automatically — no extra steps needed.",
diff --git a/packages/pieces/community/amazon-textract/src/lib/actions/analyze-document.ts b/packages/pieces/community/amazon-textract/src/lib/actions/analyze-document.ts
index de2c48c187d..d5510681388 100644
--- a/packages/pieces/community/amazon-textract/src/lib/actions/analyze-document.ts
+++ b/packages/pieces/community/amazon-textract/src/lib/actions/analyze-document.ts
@@ -17,9 +17,9 @@ export const analyzeDocument = createAction({
classification: 'READ',
displayName: 'Analyze Document',
description:
- 'Extract text, forms (key-value pairs), tables, and signatures from a document. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only. For multi-page PDFs, use Start Document Analysis instead.',
+ 'Extract text, forms (key-value pairs), tables, and signatures from a document. Supports JPEG, PNG, and single-page PDF or TIFF, uploaded directly or from S3. For multi-page PDFs, use Analyze Document from S3 (Multi-Page) instead.',
audience: 'both',
- aiMetadata: { description: 'Synchronously analyze a single-page document with AWS Textract to pull out forms (key-value pairs), tables, and signatures, optionally answering natural-language queries about it. Choose it when you need structured layout extraction rather than just raw text (use Detect Document Text for plain text only) and the document is one page. The source can be an uploaded file (JPEG/PNG only) or an S3 object (also PDF/TIFF, single-page only); for multi-page PDFs use the S3 multi-page action. Idempotent: it is a stateless read-only inference that returns the same result for the same input.', idempotent: true },
+ aiMetadata: { description: 'Synchronously analyze a single-page document with AWS Textract to pull out forms (key-value pairs), tables, and signatures, optionally answering natural-language queries about it. Choose it when you need structured layout extraction rather than just raw text (use Detect Document Text for plain text only) and the document is one page. The source can be an uploaded file or an S3 object in JPEG, PNG, or single-page PDF/TIFF format; for multi-page PDFs use the S3 multi-page action. Idempotent: it is a stateless read-only inference that returns the same result for the same input.', idempotent: true },
props: {
source: Property.StaticDropdown({
displayName: 'Document Source',
@@ -48,7 +48,7 @@ export const analyzeDocument = createAction({
}),
s3Key: Property.ShortText({
displayName: 'S3 File Path',
- description: 'The path to the file in your S3 bucket (e.g. "documents/invoice.pdf"). PDF and TIFF are supported for single-page documents only. For multi-page PDFs, use the Start Document Analysis action instead.',
+ description: 'The path to the file in your S3 bucket (e.g. "documents/invoice.pdf"). PDF and TIFF are supported for single-page documents only. For multi-page PDFs, use the Analyze Document from S3 (Multi-Page) action instead.',
required: true,
}),
};
@@ -56,7 +56,7 @@ export const analyzeDocument = createAction({
return {
file: Property.File({
displayName: 'File',
- description: 'The document to analyze. Only JPEG and PNG are supported for direct upload (max 5 MB). For PDF or TIFF files, use the "From S3 bucket" option instead.',
+ description: 'The document to analyze: JPEG, PNG, or a single-page PDF or TIFF (max 10 MB). For multi-page PDFs, use the Analyze Document from S3 (Multi-Page) action instead.',
required: true,
}),
};
diff --git a/packages/pieces/community/amazon-textract/src/lib/actions/analyze-expense.ts b/packages/pieces/community/amazon-textract/src/lib/actions/analyze-expense.ts
index 7ef0a794b98..52ab80547e4 100644
--- a/packages/pieces/community/amazon-textract/src/lib/actions/analyze-expense.ts
+++ b/packages/pieces/community/amazon-textract/src/lib/actions/analyze-expense.ts
@@ -16,7 +16,7 @@ export const analyzeExpense = createAction({
description:
'Extract structured data from receipts and invoices: vendor name, totals, tax, line items, and more. Works best with clearly formatted receipts and invoices.',
audience: 'both',
- aiMetadata: { description: 'Synchronously analyze a receipt or invoice with AWS Textract to extract structured financial fields such as vendor name, totals, tax, dates, and line items. Choose it specifically for expense documents rather than the general Analyze Document action. The source can be an uploaded file (JPEG/PNG only) or an S3 object (also PDF/TIFF, single-page only). Idempotent: it is a stateless read-only inference that returns the same result for the same input.', idempotent: true },
+ aiMetadata: { description: 'Synchronously analyze a receipt or invoice with AWS Textract to extract structured financial fields such as vendor name, totals, tax, dates, and line items. Choose it specifically for expense documents rather than the general Analyze Document action. The source can be an uploaded file or an S3 object in JPEG, PNG, or single-page PDF/TIFF format. Idempotent: it is a stateless read-only inference that returns the same result for the same input.', idempotent: true },
props: {
source: Property.StaticDropdown({
displayName: 'Document Source',
@@ -53,7 +53,7 @@ export const analyzeExpense = createAction({
return {
file: Property.File({
displayName: 'File',
- description: 'The receipt or invoice to analyze. Only JPEG and PNG are supported for direct upload (max 5 MB). For PDF or TIFF files, use the "From S3 bucket" option instead.',
+ description: 'The receipt or invoice to analyze: JPEG, PNG, or a single-page PDF or TIFF (max 10 MB).',
required: true,
}),
};
diff --git a/packages/pieces/community/amazon-textract/src/lib/actions/detect-document-text.ts b/packages/pieces/community/amazon-textract/src/lib/actions/detect-document-text.ts
index d429cd68c2a..bd38d88c6f4 100644
--- a/packages/pieces/community/amazon-textract/src/lib/actions/detect-document-text.ts
+++ b/packages/pieces/community/amazon-textract/src/lib/actions/detect-document-text.ts
@@ -14,9 +14,9 @@ export const detectDocumentText = createAction({
classification: 'READ',
displayName: 'Detect Document Text',
description:
- 'Extract plain text from a document. Faster and cheaper than Analyze Document — use this when you only need the text content without forms or tables. Supports JPEG and PNG via direct upload; PDF and TIFF via S3 only.',
+ 'Extract plain text from a document. Faster and cheaper than Analyze Document — use this when you only need the text content without forms or tables. Supports JPEG, PNG, and single-page PDF or TIFF, uploaded directly or from S3.',
audience: 'both',
- aiMetadata: { description: 'Synchronously OCR a single-page document with AWS Textract and return its plain text content (lines and words), without forms, tables, or signatures. Choose it when you only need the raw text — it is faster and cheaper than Analyze Document. The source can be an uploaded file (JPEG/PNG only) or an S3 object (also PDF/TIFF, single-page only). Idempotent: it is a stateless read-only inference that returns the same result for the same input.', idempotent: true },
+ aiMetadata: { description: 'Synchronously OCR a single-page document with AWS Textract and return its plain text content (lines and words), without forms, tables, or signatures. Choose it when you only need the raw text — it is faster and cheaper than Analyze Document. The source can be an uploaded file or an S3 object in JPEG, PNG, or single-page PDF/TIFF format. Idempotent: it is a stateless read-only inference that returns the same result for the same input.', idempotent: true },
props: {
source: Property.StaticDropdown({
displayName: 'Document Source',
@@ -54,7 +54,7 @@ export const detectDocumentText = createAction({
return {
file: Property.File({
displayName: 'File',
- description: 'The document to read. Only JPEG and PNG are supported for direct upload (max 5 MB). For PDF or TIFF files, use the "From S3 bucket" option instead.',
+ description: 'The document to read: JPEG, PNG, or a single-page PDF or TIFF (max 10 MB).',
required: true,
}),
};
diff --git a/packages/pieces/community/amazon-textract/src/lib/common.ts b/packages/pieces/community/amazon-textract/src/lib/common.ts
index 47e4bf0bb5d..bc788081580 100644
--- a/packages/pieces/community/amazon-textract/src/lib/common.ts
+++ b/packages/pieces/community/amazon-textract/src/lib/common.ts
@@ -501,7 +501,7 @@ export function formatTextractError(error: unknown): string {
case 'InvalidS3ObjectException':
return 'The specified S3 object could not be read. Check the bucket name, key, and permissions.';
case 'UnsupportedDocumentException':
- return 'The document format or page count is not supported. Synchronous analysis supports JPEG, PNG, and single-page PDF or TIFF via S3. For multi-page PDFs, use the Start Document Analysis action.';
+ return 'The document format or page count is not supported. Synchronous analysis supports JPEG, PNG, and single-page PDF or TIFF. For multi-page PDFs, use the Analyze Document from S3 (Multi-Page) action.';
case 'DocumentTooLargeException':
return 'The document exceeds the maximum allowed size. Use S3 for large documents.';
case 'BadDocumentException':