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
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
feat(claude): ui improvement (#16757)
Talal Jaber5668279dab85
diff --git a/bun.lock b/bun.lockindex b870f811f4e..3b782b14b09 100644--- a/bun.lock+++ b/bun.lock@@ -1915,7 +1915,7 @@},"packages/pieces/community/claude": {"name": "@activepieces/piece-claude",- "version": "0.7.2",+ "version": "0.8.0","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",diff --git a/packages/pieces/community/claude/package.json b/packages/pieces/community/claude/package.jsonindex 4f3ae0d9b49..88221541631 100644--- a/packages/pieces/community/claude/package.json+++ b/packages/pieces/community/claude/package.json@@ -1,6 +1,6 @@{"name": "@activepieces/piece-claude",- "version": "0.7.2",+ "version": "0.8.0","main": "./dist/src/index.js","types": "./dist/src/index.d.ts","dependencies": {diff --git a/packages/pieces/community/claude/src/i18n/de.json b/packages/pieces/community/claude/src/i18n/de.jsonindex dc39caec9b9..d8bc53c3089 100644--- a/packages/pieces/community/claude/src/i18n/de.json+++ b/packages/pieces/community/claude/src/i18n/de.json@@ -85,5 +85,9 @@"PATCH": "PATCH","PUT": "PUT","DELETE": "LÖSCHEN",- "HEAD": "HEAD"+ "HEAD": "HEAD",+ "Simple": "Einfach",+ "Advanced": "Erweitert",+ "Fill in Text, Image or PDF, or both.": "Text, Bild oder PDF ausfüllen, oder beides.",+ "Add anthropic-version: 2023-06-01. Your API key is added for you.": "anthropic-version: 2023-06-01 hinzufügen. Ihr API-Schlüssel wird automatisch hinzugefügt."}\ No newline at end of filediff --git a/packages/pieces/community/claude/src/i18n/es.json b/packages/pieces/community/claude/src/i18n/es.jsonindex 19fdf450e5f..b403ed7a918 100644--- a/packages/pieces/community/claude/src/i18n/es.json+++ b/packages/pieces/community/claude/src/i18n/es.json@@ -85,5 +85,9 @@"PATCH": "PATCH","PUT": "PUT","DELETE": "BORRAR",- "HEAD": "LIMPIO"+ "HEAD": "LIMPIO",+ "Simple": "Simple",+ "Advanced": "Avanzado",+ "Fill in Text, Image or PDF, or both.": "Rellena Texto, Imagen o PDF, o ambos.",+ "Add anthropic-version: 2023-06-01. Your API key is added for you.": "Añade anthropic-version: 2023-06-01. Tu clave de API se añade automáticamente."}\ No newline at end of filediff --git a/packages/pieces/community/claude/src/i18n/fr.json b/packages/pieces/community/claude/src/i18n/fr.jsonindex 59150b0a79a..3a16def4896 100644--- a/packages/pieces/community/claude/src/i18n/fr.json+++ b/packages/pieces/community/claude/src/i18n/fr.json@@ -85,5 +85,9 @@"PATCH": "PATCH","PUT": "PUT","DELETE": "DELETE",- "HEAD": "TÊTE"+ "HEAD": "TÊTE",+ "Simple": "Simple",+ "Advanced": "Avancé",+ "Fill in Text, Image or PDF, or both.": "Remplissez Texte, Image ou PDF, ou les deux.",+ "Add anthropic-version: 2023-06-01. Your API key is added for you.": "Ajoutez anthropic-version: 2023-06-01. Votre clé API est ajoutée automatiquement."}\ No newline at end of filediff --git a/packages/pieces/community/claude/src/i18n/ja.json b/packages/pieces/community/claude/src/i18n/ja.jsonindex 4380080f73a..003c121bab0 100644--- a/packages/pieces/community/claude/src/i18n/ja.json+++ b/packages/pieces/community/claude/src/i18n/ja.json@@ -85,5 +85,9 @@"PATCH": "PATCH","PUT": "PUT","DELETE": "削除",- "HEAD": "頭"+ "HEAD": "頭",+ "Simple": "シンプル",+ "Advanced": "高度",+ "Fill in Text, Image or PDF, or both.": "テキスト、画像または PDF のいずれか、または両方を入力してください。",+ "Add anthropic-version: 2023-06-01. Your API key is added for you.": "anthropic-version: 2023-06-01 を追加してください。API キーは自動的に追加されます。"}\ No newline at end of filediff --git a/packages/pieces/community/claude/src/i18n/nl.json b/packages/pieces/community/claude/src/i18n/nl.jsonindex d4064693951..f0d308c8f3d 100644--- a/packages/pieces/community/claude/src/i18n/nl.json+++ b/packages/pieces/community/claude/src/i18n/nl.json@@ -85,5 +85,9 @@"PATCH": "BEKIJK","PUT": "PUT","DELETE": "VERWIJDEREN",- "HEAD": "HOOFD"+ "HEAD": "HOOFD",+ "Simple": "Eenvoudig",+ "Advanced": "Geavanceerd",+ "Fill in Text, Image or PDF, or both.": "Vul Tekst, Afbeelding of PDF in, of beide.",+ "Add anthropic-version: 2023-06-01. Your API key is added for you.": "Voeg anthropic-version: 2023-06-01 toe. Je API-sleutel wordt automatisch toegevoegd."}\ No newline at end of filediff --git a/packages/pieces/community/claude/src/i18n/pt.json b/packages/pieces/community/claude/src/i18n/pt.jsonindex dfd424e4cf1..71528f3a481 100644--- a/packages/pieces/community/claude/src/i18n/pt.json+++ b/packages/pieces/community/claude/src/i18n/pt.json@@ -85,5 +85,9 @@"PATCH": "COMPRAR","PUT": "COLOCAR","DELETE": "EXCLUIR",- "HEAD": "CABEÇA"+ "HEAD": "CABEÇA",+ "Simple": "Simples",+ "Advanced": "Avançado",+ "Fill in Text, Image or PDF, or both.": "Preencha Texto, Imagem ou PDF, ou ambos.",+ "Add anthropic-version: 2023-06-01. Your API key is added for you.": "Adicione anthropic-version: 2023-06-01. Sua chave de API é adicionada automaticamente."}\ No newline at end of filediff --git a/packages/pieces/community/claude/src/i18n/ru.json b/packages/pieces/community/claude/src/i18n/ru.jsonindex 4bce2bc1d6d..fa595e935f1 100644--- a/packages/pieces/community/claude/src/i18n/ru.json+++ b/packages/pieces/community/claude/src/i18n/ru.json@@ -78,5 +78,7 @@"Appended to the URL as ?key=value.": "Добавляется к URL как ?key=value.","On a failed request, output the error instead of failing the step.": "При неудачном запросе вернуть ошибку вместо сбоя шага.","Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Секунды ожидания ответа. Пусто: до лимита потока (10 мин).",- "Follow 3xx redirects instead of returning them as the response.": "Следовать перенаправлениям 3xx, а не возвращать их как ответ."+ "Follow 3xx redirects instead of returning them as the response.": "Следовать перенаправлениям 3xx, а не возвращать их как ответ.",+ "Fill in Text, Image or PDF, or both.": "Заполните «Текст», «Изображение или PDF» или оба поля.",+ "Add anthropic-version: 2023-06-01. Your API key is added for you.": "Добавьте anthropic-version: 2023-06-01. Ваш API-ключ добавляется автоматически."}\ No newline at end of filediff --git a/packages/pieces/community/claude/src/i18n/translation.json b/packages/pieces/community/claude/src/i18n/translation.jsonindex 8e2355f3e20..211c792d94b 100644--- a/packages/pieces/community/claude/src/i18n/translation.json+++ b/packages/pieces/community/claude/src/i18n/translation.json@@ -32,6 +32,7 @@"Temperature": "Temperature","Roles": "Roles","Extended Thinking Mode": "Extended Thinking Mode",+ "Markdown": "Markdown","Text": "Text","Image or PDF": "Image or PDF","Field Definition": "Field Definition",@@ -62,6 +63,7 @@"From 0 to 1. Lower is more focused, higher is more varied.": "From 0 to 1. Lower is more focused, higher is more varied.","Extra messages sent after the question, as user or assistant turns.": "Extra messages sent after the question, as user or assistant turns.","Lets Claude reason first. Uses Claude 3.7 Sonnet, regardless of Model.": "Lets Claude reason first. Uses Claude 3.7 Sonnet, regardless of Model.",+ "Fill in Text, Image or PDF, or both.": "Fill in Text, Image or PDF, or both.","Text to pull the fields from.": "Text to pull the fields from.","An image or PDF to pull the fields from.": "An image or PDF to pull the fields from.","Longest reply in tokens, about 4 characters each. Empty: 2,000.": "Longest reply in tokens, about 4 characters each. Empty: 2,000.",@@ -72,14 +74,14 @@"Return the page of batches immediately after this batch ID.": "Return the page of batches immediately after this batch ID.","Return the page of batches immediately before this batch ID.": "Return the page of batches immediately before this batch ID.","Maximum number of results to return (default 100).": "Maximum number of results to return (default 100).",- "Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",+ "Add anthropic-version: 2023-06-01. Your API key is added for you.": "Add anthropic-version: 2023-06-01. Your API key is added for you.","Appended to the URL as ?key=value.": "Appended to the URL as ?key=value.","Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.","On a failed request, output the error instead of failing the step.": "On a failed request, output the error instead of failing the step.","Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Seconds to wait for a response. Empty: up to the flow limit (10 min).","Follow 3xx redirects instead of returning them as the response.": "Follow 3xx redirects instead of returning them as the response.",- "Field List": "Field List",- "JSON Schema": "JSON Schema",+ "Simple": "Simple",+ "Advanced": "Advanced","GET": "GET","POST": "POST","PATCH": "PATCH",diff --git a/packages/pieces/community/claude/src/i18n/zh.json b/packages/pieces/community/claude/src/i18n/zh.jsonindex b10bab180e4..31a8e60cce4 100644--- a/packages/pieces/community/claude/src/i18n/zh.json+++ b/packages/pieces/community/claude/src/i18n/zh.json@@ -85,5 +85,9 @@"PATCH": "PATCH","PUT": "弹出","DELETE": "删除",- "HEAD": "黑色"+ "HEAD": "黑色",+ "Simple": "简单",+ "Advanced": "高级",+ "Fill in Text, Image or PDF, or both.": "填写文本、图片或 PDF,或两者都填。",+ "Add anthropic-version: 2023-06-01. Your API key is added for you.": "添加 anthropic-version: 2023-06-01。API 密钥会自动添加。"}\ No newline at end of filediff --git a/packages/pieces/community/claude/src/index.ts b/packages/pieces/community/claude/src/index.tsindex aa867578177..c1b99a2d342 100644--- a/packages/pieces/community/claude/src/index.ts+++ b/packages/pieces/community/claude/src/index.ts@@ -42,6 +42,16 @@ export const claude = createPiece({'x-api-key': `${auth.secret_text}`,};},+ props: {+ url: {+ description: `Full URL, or a path relative to ${baseUrl}`,+ placeholder: '/models',+ },+ headers: {+ description:+ 'Add anthropic-version: 2023-06-01. Your API key is added for you.',+ },+ },}),],triggers: [],diff --git a/packages/pieces/community/claude/src/lib/actions/extract-structured-data.ts b/packages/pieces/community/claude/src/lib/actions/extract-structured-data.tsindex 1ca53b3b9c7..85339e3a811 100644--- a/packages/pieces/community/claude/src/lib/actions/extract-structured-data.ts+++ b/packages/pieces/community/claude/src/lib/actions/extract-structured-data.ts@@ -1,5 +1,5 @@import { claudeAuth } from '../auth';-import { createAction, Property } from '@activepieces/pieces-framework';+import { createAction, MarkdownVariant, Property } from '@activepieces/pieces-framework';import { isNil } from '@activepieces/pieces-framework';import Anthropic from '@anthropic-ai/sdk';import { TextBlock, ToolUseBlock } from '@anthropic-ai/sdk/resources';@@ -15,9 +15,15 @@ export const extractStructuredDataAction = createAction({classification: 'READ',displayName: 'Extract Structured Data',description: 'Pull the fields you define out of text, an image or a PDF.',- aiMetadata: { description: 'Runs a Claude model over supplied text, an image, or a PDF and returns only the fields you defined, using a forced tool call so the output matches your schema. The Field Definition prop switches between Field List mode (a list of named fields with types and required flags) and JSON Schema mode (a raw JSON Schema object); prefer the sibling Ask Claude action when you want free-form prose instead of typed fields. Requires a model, the field definitions, and at least one of Text, or an Image or PDF; not idempotent, since each call re-runs the model and extraction can vary.', idempotent: false },+ aiMetadata: { description: 'Runs a Claude model over supplied text, an image, or a PDF and returns only the fields you defined, using a forced tool call so the output matches your schema. The Field Definition prop switches between Simple mode (a list of named fields with types and required flags) and Advanced mode (a raw JSON Schema object); prefer the sibling Ask Claude action when you want free-form prose instead of typed fields. Requires a model, the field definitions, and at least one of Text, or an Image or PDF; not idempotent, since each call re-runs the model and extraction can vary.', idempotent: false },+ propertyGroups: [+ { key: 'settings', display: 'section', label: 'Settings', icon: 'sliders', props: ['model', 'maxTokens'] },+ { key: 'source', display: 'section', label: 'Extract from', icon: 'file', props: ['sourceInfo', 'text', 'image'] },+ { key: 'output', display: 'section', label: 'Data to extract', icon: 'tag', props: ['mode', 'schema'] },+ ],props: {model: modelDropdown,+ sourceInfo: Property.MarkDown({ value: 'Fill in Text, Image or PDF, or both.', variant: MarkdownVariant.INFO }),text: Property.LongText({displayName: 'Text',description: 'Text to pull the fields from.',@@ -37,15 +43,15 @@ export const extractStructuredDataAction = createAction({disabled: false,options: [{- label: 'Field List',+ label: 'Simple',value: 'simple',- description: 'One row per field',+ description: 'List fields',icon: 'type',},{- label: 'JSON Schema',+ label: 'Advanced',value: 'advanced',- description: 'Nested or complex',+ description: 'JSON Schema',icon: 'code',},],diff --git a/packages/pieces/community/claude/src/lib/actions/send-prompt.ts b/packages/pieces/community/claude/src/lib/actions/send-prompt.tsindex c269b301e54..d9c68cad485 100644--- a/packages/pieces/community/claude/src/lib/actions/send-prompt.ts+++ b/packages/pieces/community/claude/src/lib/actions/send-prompt.ts@@ -22,6 +22,10 @@ export const askClaude = createAction({displayName: 'Ask Claude',description: 'Send a question or instruction to Claude and get a text reply.',aiMetadata: { description: 'Sends a free-form question or instruction to a chosen Anthropic Claude model and returns the reply as plain text, optionally with an image attached for vision and earlier user/assistant turns supplied as Roles for multi-turn context; enabling Extended Thinking Mode routes the call to Claude 3.7 Sonnet with a separate reasoning token budget. Prefer the sibling Extract Structured Data action when the answer must be constrained to defined fields rather than prose. Requires a model and a question, with temperature between 0 and 1; not idempotent, since each call is a fresh generation that can return different text.', idempotent: false },+ propertyGroups: [+ { key: 'settings', display: 'section', label: 'Settings', icon: 'sliders', props: ['model', 'maxTokens'] },+ { key: 'message', display: 'section', label: 'Message', icon: 'text', props: ['prompt', 'systemPrompt', 'image'] },+ ],props: {model: modelDropdown,prompt: Property.LongText({