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

feat(google-gemini): ui improvement (#16406)

Talal Jaber1f659043d00c
diff --git a/bun.lock b/bun.lock
index 08f7c2f14d2..d4223d097f4 100644
--- a/bun.lock
+++ b/bun.lock
@@ -3921,7 +3921,7 @@
},
"packages/pieces/community/google-gemini": {
"name": "@activepieces/piece-google-gemini",
- "version": "0.4.2",
+ "version": "0.5.0",
"dependencies": {
"@activepieces/core-piece-types": "workspace:*",
"@activepieces/core-utils": "workspace:*",
diff --git a/packages/pieces/community/google-gemini/package.json b/packages/pieces/community/google-gemini/package.json
index 7e561a308ab..b4c87bcae44 100644
--- a/packages/pieces/community/google-gemini/package.json
+++ b/packages/pieces/community/google-gemini/package.json
@@ -1,6 +1,6 @@
{
"name": "@activepieces/piece-google-gemini",
- "version": "0.4.2",
+ "version": "0.5.0",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"dependencies": {
diff --git a/packages/pieces/community/google-gemini/src/i18n/de.json b/packages/pieces/community/google-gemini/src/i18n/de.json
index 22a60cfdd9e..6e5c0ea8303 100644
--- a/packages/pieces/community/google-gemini/src/i18n/de.json
+++ b/packages/pieces/community/google-gemini/src/i18n/de.json
@@ -101,5 +101,6 @@
"None": "Keine",
"JSON": "JSON",
"Form Data": "Formulardaten",
- "Raw": "Rohe"
+ "Raw": "Rohe",
+ "Saved for the whole project, so other flows that use this key join the same conversation.": "Wird für das ganze Projekt gespeichert, daher setzen andere Flows mit diesem Schlüssel dasselbe Gespräch fort."
}
\ No newline at end of file
diff --git a/packages/pieces/community/google-gemini/src/i18n/es.json b/packages/pieces/community/google-gemini/src/i18n/es.json
index ae8b8a94a05..445706f2997 100644
--- a/packages/pieces/community/google-gemini/src/i18n/es.json
+++ b/packages/pieces/community/google-gemini/src/i18n/es.json
@@ -101,5 +101,6 @@
"None": "Ninguna",
"JSON": "JSON",
"Form Data": "Datos de Formulario",
- "Raw": "Rápido"
+ "Raw": "Rápido",
+ "Saved for the whole project, so other flows that use this key join the same conversation.": "Se guarda para todo el proyecto, así que otros flujos que usen esta clave continúan la misma conversación."
}
\ No newline at end of file
diff --git a/packages/pieces/community/google-gemini/src/i18n/fr.json b/packages/pieces/community/google-gemini/src/i18n/fr.json
index b67dda7c0b4..ed8b123981e 100644
--- a/packages/pieces/community/google-gemini/src/i18n/fr.json
+++ b/packages/pieces/community/google-gemini/src/i18n/fr.json
@@ -101,5 +101,6 @@
"None": "Aucun",
"JSON": "JSON",
"Form Data": "Données du formulaire",
- "Raw": "Brut"
+ "Raw": "Brut",
+ "Saved for the whole project, so other flows that use this key join the same conversation.": "Enregistré pour tout le projet : les autres flux qui utilisent cette clé poursuivent la même conversation."
}
\ No newline at end of file
diff --git a/packages/pieces/community/google-gemini/src/i18n/ja.json b/packages/pieces/community/google-gemini/src/i18n/ja.json
index ce9a4e41e78..568556df500 100644
--- a/packages/pieces/community/google-gemini/src/i18n/ja.json
+++ b/packages/pieces/community/google-gemini/src/i18n/ja.json
@@ -101,5 +101,6 @@
"None": "なし",
"JSON": "JSON",
"Form Data": "フォームデータ",
- "Raw": "Raw"
+ "Raw": "Raw",
+ "Saved for the whole project, so other flows that use this key join the same conversation.": "プロジェクト全体で保存されるため、このキーを使う他のフローも同じ会話を引き継ぎます。"
}
\ No newline at end of file
diff --git a/packages/pieces/community/google-gemini/src/i18n/nl.json b/packages/pieces/community/google-gemini/src/i18n/nl.json
index a72191af522..f72ad7d67bd 100644
--- a/packages/pieces/community/google-gemini/src/i18n/nl.json
+++ b/packages/pieces/community/google-gemini/src/i18n/nl.json
@@ -101,5 +101,6 @@
"None": "geen",
"JSON": "JSON",
"Form Data": "Formulieren gegevens",
- "Raw": "Onbewerkte"
+ "Raw": "Onbewerkte",
+ "Saved for the whole project, so other flows that use this key join the same conversation.": "Wordt voor het hele project opgeslagen, dus andere flows met deze sleutel zetten hetzelfde gesprek voort."
}
\ No newline at end of file
diff --git a/packages/pieces/community/google-gemini/src/i18n/pt.json b/packages/pieces/community/google-gemini/src/i18n/pt.json
index 704c1cec0a2..83502b481f2 100644
--- a/packages/pieces/community/google-gemini/src/i18n/pt.json
+++ b/packages/pieces/community/google-gemini/src/i18n/pt.json
@@ -101,5 +101,6 @@
"None": "Nenhuma",
"JSON": "JSON",
"Form Data": "Dados de Formulário",
- "Raw": "RAW"
+ "Raw": "RAW",
+ "Saved for the whole project, so other flows that use this key join the same conversation.": "É salvo para todo o projeto, então outros fluxos que usam esta chave continuam a mesma conversa."
}
\ No newline at end of file
diff --git a/packages/pieces/community/google-gemini/src/i18n/ru.json b/packages/pieces/community/google-gemini/src/i18n/ru.json
index ff3c9c9f681..3526f1a0d6f 100644
--- a/packages/pieces/community/google-gemini/src/i18n/ru.json
+++ b/packages/pieces/community/google-gemini/src/i18n/ru.json
@@ -30,5 +30,6 @@
"PATCH": "ПАТЧ",
"PUT": "ПОКУПИТЬ",
"DELETE": "УДАЛИТЬ",
- "HEAD": "HEAD"
+ "HEAD": "HEAD",
+ "Saved for the whole project, so other flows that use this key join the same conversation.": "Сохраняется для всего проекта, поэтому другие потоки с этим ключом продолжают ту же беседу."
}
\ No newline at end of file
diff --git a/packages/pieces/community/google-gemini/src/i18n/translation.json b/packages/pieces/community/google-gemini/src/i18n/translation.json
index e52061b78c3..6553f30bab4 100644
--- a/packages/pieces/community/google-gemini/src/i18n/translation.json
+++ b/packages/pieces/community/google-gemini/src/i18n/translation.json
@@ -31,6 +31,7 @@
"File Store Name": "File Store Name",
"Image": "Image",
"Memory Key": "Memory Key",
+ "Markdown": "Markdown",
"Text": "Text",
"Voice": "Voice",
"Aspect Ratio": "Aspect Ratio",
@@ -62,6 +63,7 @@
"The image Gemini looks at.": "The image Gemini looks at.",
"Your next message in the conversation.": "Your next message in the conversation.",
"Reuse a key to continue its conversation. Empty: no memory.": "Reuse a key to continue its conversation. Empty: no memory.",
+ "Saved for the whole project, so other flows that use this key join the same conversation.": "Saved for the whole project, so other flows that use this key join the same conversation.",
"The words Gemini reads aloud.": "The words Gemini reads aloud.",
"Gemini speech model that reads the text aloud.": "Gemini speech model that reads the text aloud.",
"Describe the scene, motion, style and lighting you want.": "Describe the scene, motion, style and lighting you want.",
diff --git a/packages/pieces/community/google-gemini/src/i18n/zh.json b/packages/pieces/community/google-gemini/src/i18n/zh.json
index eb8859a3de6..3571a4b530e 100644
--- a/packages/pieces/community/google-gemini/src/i18n/zh.json
+++ b/packages/pieces/community/google-gemini/src/i18n/zh.json
@@ -101,5 +101,6 @@
"None": "无",
"JSON": "JSON",
"Form Data": "表单数据",
- "Raw": "原始文件"
+ "Raw": "原始文件",
+ "Saved for the whole project, so other flows that use this key join the same conversation.": "历史记录在整个项目中保存,因此使用此键的其他流程会延续同一段对话。"
}
\ No newline at end of file
diff --git a/packages/pieces/community/google-gemini/src/lib/actions/chat-gemini.action.ts b/packages/pieces/community/google-gemini/src/lib/actions/chat-gemini.action.ts
index 6f433a3ff77..7c59ca937e6 100644
--- a/packages/pieces/community/google-gemini/src/lib/actions/chat-gemini.action.ts
+++ b/packages/pieces/community/google-gemini/src/lib/actions/chat-gemini.action.ts
@@ -1,5 +1,6 @@
import { Content, GoogleGenerativeAI } from '@google/generative-ai';
import {
+ MarkdownVariant,
Property,
StoreScope,
createAction,
@@ -19,6 +20,11 @@ export const chatGemini = createAction({
displayName: 'Chat with Gemini',
description: 'Chat with Gemini, optionally remembering earlier messages.',
aiMetadata: { description: 'Sends a prompt as one turn of a Gemini chat and returns the reply, with two modes: supply a memory key (max 128 characters) to load and persist the conversation history in project storage so later runs remember earlier turns, or leave it empty for a stateless single turn. Pick it over generate_content when the exchange spans multiple runs and must retain context; generate_content is the better choice for one-shot generation or when a built-in tool such as Google Search or File Search is needed. Not idempotent: each call produces a new reply and, when a memory key is set, rewrites the stored history.', idempotent: false },
+ propertyGroups: [
+ { key: 'message', display: 'section', label: 'Message', icon: 'text', props: ['prompt'] },
+ { key: 'settings', display: 'section', label: 'Settings', icon: 'sliders', props: ['model'] },
+ { key: 'history', display: 'section', label: 'History', icon: 'inbox', props: ['memoryKey', 'memoryInfo'] },
+ ],
props: {
prompt: Property.LongText({
displayName: 'Prompt',
@@ -40,6 +46,7 @@ export const chatGemini = createAction({
'Reuse a key to continue its conversation. Empty: no memory.',
required: false,
}),
+ memoryInfo: Property.MarkDown({ value: 'Saved for the whole project, so other flows that use this key join the same conversation.', variant: MarkdownVariant.INFO }),
},
outputSchema: chatGeminiActionOutputSchema,
async run({ auth, propsValue, store }) {
diff --git a/packages/pieces/community/google-gemini/src/lib/actions/count-tokens.action.ts b/packages/pieces/community/google-gemini/src/lib/actions/count-tokens.action.ts
index 6c0a61f78a2..89a0b80f3cf 100644
--- a/packages/pieces/community/google-gemini/src/lib/actions/count-tokens.action.ts
+++ b/packages/pieces/community/google-gemini/src/lib/actions/count-tokens.action.ts
@@ -16,6 +16,10 @@ export const countTokensAction = createAction({
'Counts the tokens a piece of text will consume for a given Gemini model, without generating any content. Use it before generate_content or chat_gemini to check a prompt fits the model\'s input limit or to estimate cost. Idempotent: same text and model always return the same count.',
idempotent: true,
},
+ propertyGroups: [
+ { key: 'content', display: 'section', label: 'Content', icon: 'text', props: ['text'] },
+ { key: 'settings', display: 'section', label: 'Settings', icon: 'sliders', props: ['model'] },
+ ],
props: {
text: Property.LongText({
displayName: 'Text',
diff --git a/packages/pieces/community/google-gemini/src/lib/actions/create-video.action.ts b/packages/pieces/community/google-gemini/src/lib/actions/create-video.action.ts
index 75e7bd51cf7..af68688f72e 100644
--- a/packages/pieces/community/google-gemini/src/lib/actions/create-video.action.ts
+++ b/packages/pieces/community/google-gemini/src/lib/actions/create-video.action.ts
@@ -14,6 +14,10 @@ export const createVideoAction = createAction({
displayName: 'Create Video',
description: 'Generate a video from a text prompt using Google Veo models.',
aiMetadata: { description: 'Generates a short video with a Google Veo model from a text prompt, optionally seeded by a start image (image-to-video) or by both a start and end image (interpolation between those frames), polling the long-running generation job for up to 10 minutes before returning the finished MP4 as a file. Use it whenever the required output is video; text goes through generate_content and speech through text-to-speech. Note the model-dependent limits: 1080p needs Veo 3.0 or newer, 4K needs Veo 3.1, and both require an 8-second duration. Not idempotent: each call renders a new video.', idempotent: false },
+ propertyGroups: [
+ { key: 'video', display: 'section', label: 'Video', icon: 'text', props: ['prompt', 'model'] },
+ { key: 'output', display: 'section', label: 'Output', icon: 'sliders', props: ['aspectRatio', 'durationSeconds', 'resolution'] },
+ ],
props: {
prompt: Property.LongText({
displayName: 'Prompt',
@@ -36,8 +40,8 @@ export const createVideoAction = createAction({
display: 'cards',
options: {
options: [
- { label: 'Landscape', value: '16:9', description: '16:9' },
- { label: 'Portrait', value: '9:16', description: '9:16' },
+ { label: 'Landscape', value: '16:9', description: '16:9', icon: 'blank' },
+ { label: 'Portrait', value: '9:16', description: '9:16', icon: 'blank' },
],
},
}),
diff --git a/packages/pieces/community/google-gemini/src/lib/actions/generate-content-from-image.action.ts b/packages/pieces/community/google-gemini/src/lib/actions/generate-content-from-image.action.ts
index 5dd4b5ee880..34ef6628bae 100644
--- a/packages/pieces/community/google-gemini/src/lib/actions/generate-content-from-image.action.ts
+++ b/packages/pieces/community/google-gemini/src/lib/actions/generate-content-from-image.action.ts
@@ -17,6 +17,10 @@ export const generateContentFromImageAction = createAction({
name: 'generate_content_from_image',
classification: 'READ',
auth: googleGeminiAuth,
+ propertyGroups: [
+ { key: 'message', display: 'section', label: 'Message', icon: 'text', props: ['image', 'prompt'] },
+ { key: 'settings', display: 'section', label: 'Settings', icon: 'sliders', props: ['model'] },
+ ],
props: {
prompt: Property.LongText({
displayName: 'Prompt',
diff --git a/packages/pieces/community/google-gemini/src/lib/actions/generate-content-with-file-search.ts b/packages/pieces/community/google-gemini/src/lib/actions/generate-content-with-file-search.ts
index c11a5b4651e..589f99a603c 100644
--- a/packages/pieces/community/google-gemini/src/lib/actions/generate-content-with-file-search.ts
+++ b/packages/pieces/community/google-gemini/src/lib/actions/generate-content-with-file-search.ts
@@ -13,6 +13,11 @@ export const generateContentWithFileSearchAction = createAction({
name: 'generate_content_with_filesearch',
classification: 'WRITE',
auth: googleGeminiAuth,
+ propertyGroups: [
+ { key: 'message', display: 'section', label: 'Message', icon: 'text', props: ['prompt'] },
+ { key: 'source', display: 'section', label: 'Search in', icon: 'file', props: ['file', 'fileStoreName'] },
+ { key: 'settings', display: 'section', label: 'Settings', icon: 'sliders', props: ['model'] },
+ ],
props: {
prompt: Property.LongText({
displayName: 'Prompt',
diff --git a/packages/pieces/community/google-gemini/src/lib/actions/generate-content.action.ts b/packages/pieces/community/google-gemini/src/lib/actions/generate-content.action.ts
index 7060b36e933..9c06f1afffb 100644
--- a/packages/pieces/community/google-gemini/src/lib/actions/generate-content.action.ts
+++ b/packages/pieces/community/google-gemini/src/lib/actions/generate-content.action.ts
@@ -15,6 +15,10 @@ export const generateContentAction = createAction({
name: 'generate_content',
classification: 'WRITE',
auth: googleGeminiAuth,
+ propertyGroups: [
+ { key: 'message', display: 'section', label: 'Message', icon: 'text', props: ['prompt'] },
+ { key: 'settings', display: 'section', label: 'Settings', icon: 'sliders', props: ['model', 'toolType', 'toolProperties'] },
+ ],
props: {
prompt: Property.LongText({
displayName: 'Prompt',
diff --git a/packages/pieces/community/google-gemini/src/lib/actions/generate-embeddings.action.ts b/packages/pieces/community/google-gemini/src/lib/actions/generate-embeddings.action.ts
index 259972fd386..6a877feef20 100644
--- a/packages/pieces/community/google-gemini/src/lib/actions/generate-embeddings.action.ts
+++ b/packages/pieces/community/google-gemini/src/lib/actions/generate-embeddings.action.ts
@@ -16,6 +16,10 @@ export const generateEmbeddingsAction = createAction({
'Converts input text into a numerical embedding vector for semantic search, similarity comparison, clustering, or classification. Set Task Type to the intended use (e.g. retrieval_document when indexing content, retrieval_query when searching it) for a better-tuned vector. Idempotent: the same text and settings always produce the same vector.',
idempotent: true,
},
+ propertyGroups: [
+ { key: 'content', display: 'section', label: 'Content', icon: 'text', props: ['text'] },
+ { key: 'settings', display: 'section', label: 'Settings', icon: 'sliders', props: ['model', 'taskType'] },
+ ],
props: {
text: Property.LongText({
displayName: 'Text',
diff --git a/packages/pieces/community/google-gemini/src/lib/actions/generate-image.action.ts b/packages/pieces/community/google-gemini/src/lib/actions/generate-image.action.ts
index f241de44f28..8aec9f2d5f1 100644
--- a/packages/pieces/community/google-gemini/src/lib/actions/generate-image.action.ts
+++ b/packages/pieces/community/google-gemini/src/lib/actions/generate-image.action.ts
@@ -17,6 +17,10 @@ export const generateImageAction = createAction({
'Generates an image from a text prompt using a Gemini image-generation model (e.g. Nano Banana) and returns it as a downloadable file. Use this for text-to-image; generate_content_from_image goes the other direction (image in, text out), and create_video is for motion output. Not idempotent: each call renders a new image.',
idempotent: false,
},
+ propertyGroups: [
+ { key: 'image', display: 'section', label: 'Image', icon: 'text', props: ['prompt', 'model'] },
+ { key: 'output', display: 'section', label: 'Output', icon: 'sliders', props: ['aspectRatio', 'imageSize'] },
+ ],
props: {
prompt: Property.LongText({
displayName: 'Prompt',
diff --git a/packages/pieces/community/google-gemini/src/lib/actions/text-to-speech.action.ts b/packages/pieces/community/google-gemini/src/lib/actions/text-to-speech.action.ts
index a2fecf0c908..2172769ad01 100644
--- a/packages/pieces/community/google-gemini/src/lib/actions/text-to-speech.action.ts
+++ b/packages/pieces/community/google-gemini/src/lib/actions/text-to-speech.action.ts
@@ -14,6 +14,10 @@ export const textToSpeechAction = createAction({
displayName: 'Text to Speech',
description: 'Turn text into a spoken WAV audio file.',
aiMetadata: { description: 'Synthesizes spoken audio from input text using a Gemini TTS model and one of roughly thirty prebuilt named voices, returning a WAV file. This is the audio-output sibling of generate_content: use it when the flow needs speech instead of text, and create_video when it needs video. Requires a TTS-capable model, which the model dropdown restricts to. Not idempotent: each call renders a new audio file.', idempotent: false },
+ propertyGroups: [
+ { key: 'script', display: 'section', label: 'Script', icon: 'text', props: ['text'] },
+ { key: 'speaker', display: 'section', label: 'Speaker', icon: 'user', props: ['model', 'voice'] },
+ ],
props: {
text: Property.LongText({
displayName: 'Text',