{"product_id":"n8n-sub-workflow-summarize-text-with-google-gemini-json","title":"n8n Sub-Workflow: Summarize Text with Google Gemini JSON","description":"\u003ch3\u003eSummarize any text in n8n with Google Gemini—returns consistent JSON for automation\u003c\/h3\u003e\n\u003cp\u003eThis n8n sub-workflow takes text from another workflow, sends it to \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e for summarization, and returns a predictable \u003cstrong\u003eJSON response\u003c\/strong\u003e with a plain-language summary, bullet points, tone, confidence, and clear error handling.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives input\u003c\/strong\u003e from a calling workflow: the text to summarize plus optional parameters for \u003cstrong\u003elanguage\u003c\/strong\u003e, \u003cstrong\u003eaudience\u003c\/strong\u003e, and \u003cstrong\u003emaxWords\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eApplies defaults\u003c\/strong\u003e when inputs are missing and calculates basic metadata (such as character count) for the calling workflow.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates early\u003c\/strong\u003e: if no text is provided, it stops and returns a structured \u003cstrong\u003eerror response\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSummarizes with Google Gemini\u003c\/strong\u003e: sends the provided text and summarization instructions to the \u003cstrong\u003eGemini Chat Model\u003c\/strong\u003e to produce:\n    \u003cul\u003e\n      \u003cli\u003ea summary in the requested style\u003c\/li\u003e\n      \u003cli\u003e\u003cstrong\u003e3–5 bullet points\u003c\/strong\u003e\u003c\/li\u003e\n      \u003cli\u003etone and \u003cstrong\u003econfidence\u003c\/strong\u003e\n\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParses and normalizes output\u003c\/strong\u003e into a consistent response object, including \u003cstrong\u003ebulletText\u003c\/strong\u003e and metadata so downstream steps can reliably consume it.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eGenerate concise summaries of long articles, support tickets, or emails before posting to internal dashboards.\u003c\/li\u003e\n  \u003cli\u003eCreate consistent brief updates (summary + bullets) for SaaS customer communications or operational runbooks.\u003c\/li\u003e\n  \u003cli\u003eBuild n8n workflows that adapt summaries by \u003cstrong\u003elanguage\u003c\/strong\u003e, \u003cstrong\u003eaudience\u003c\/strong\u003e, and \u003cstrong\u003emaxWords\u003c\/strong\u003e without rewriting prompting logic.\u003c\/li\u003e\n  \u003cli\u003eImplement robust error handling when upstream sources fail to provide text.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eUses \u003cstrong\u003eGoogle Gemini (PaLM)\u003c\/strong\u003e via the \u003cstrong\u003eGoogle Gemini Chat Model\u003c\/strong\u003e node with a configured API credential.\u003c\/li\u003e\n  \u003cli\u003eIncludes logic nodes such as \u003cstrong\u003eif\u003c\/strong\u003e and \u003cstrong\u003ecode\u003c\/strong\u003e to handle defaults, validation, and JSON normalization.\u003c\/li\u003e\n  \u003cli\u003eDesigned as an \u003cstrong\u003eExecute Workflow Trigger\u003c\/strong\u003e sub-workflow so other n8n workflows can call it and map inputs\/outputs.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45850702545075,"sku":"N8N-18120","price":50.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/ypQR4PxEHVyU0iZSZ2vJT_ZHCkd7m9.png?v=1786871497","url":"https:\/\/buyflowscripts.com\/products\/n8n-sub-workflow-summarize-text-with-google-gemini-json","provider":"N8N Commerce","version":"1.0","type":"link"}