iT邦幫忙

2025 iThome 鐵人賽

DAY 12
0
DevOps

n8n x AI自動化之新手村系列 第 12

DAY 12 學習n8n中的Gemini節點

  • 分享至 

  • xImage
  •  

今天要來學習n8n中的google Gemini節點,它是串接 AI 功能的核心利器。它提供了多種模式,讓使用者可以在流程中直接處理文字、語音、圖片、PDF 等資料,並生成智慧化的回應或分析結果,非常適合用於各種資料自動化任務。

  • 主要功能
    • 文字分析 (Text → Text)
      • 可用於摘要生成、問答、內容美化或重寫文章。
      • 例如:將 Podcast 逐字稿轉成條列重點,或將 PDF 文件整理成學習筆記。
    • 語音轉文字 (Audio → Text)
      • 支援音訊檔案上傳,轉換成逐字稿或摘要。
      • 可用於會議錄音、Podcast 內容整理、或語音筆記自動化。
    • 圖片分析 (Image → Text)
      • 將圖片中的資訊轉化為文字描述,適合處理課本圖表、海報、菜單等。
    • 文件分析 (PDF → Text / Image → Text)
      • 支援 PDF 檔案解析,提取文本並進行摘要或重點整理。
      • 適合報告、自學教材、電子書筆記自動化。
    • 生成內容 (Text → Image / Text → Video)
      • 可以依文字描述生成圖片或影片。
  • 實際應用示例
    • 會議記錄:音檔 → Gemini → 文字摘要 → Gmail / Google Docs。
    • 讀書筆記助手:PDF → 解析 → 摘要/問答。

今天的實作我是參考參考yt的DongStudio的教學影片,這一部影片詳細介紹了如何在n8n用google gemini 節點分析音檔、音檔轉文本、分析pdf文檔、分析圖片、產生圖片、分析影片、產生影片,這次我選了兩個來做練習。

分析音檔

https://ithelp.ithome.com.tw/upload/images/20250826/20168759PgSgI0xUZf.png
給予mp3檔希望得到摘要與相關的重點內容存進docs。

  1. 下載podcast的mp3
    1. 我是下載apple podcast的hot基礎英文新聞中的新聞詞語教學:基金|債券|投資組合|報酬|牛市|20250810
    2. 將檔案存至google drive
  2. 建立google drive節點
    1. 設定憑證、檔案連結
  3. 建立google gemini節點,選擇Analyze audio功能
    1. 選擇模型
    2. Input Type設為Binary file(s)
    3. 輸入text input ,希望以條列式排版清晰的格式輸出中文摘要、10個重要單字、一些名言佳句等等資訊。

What's in this audio?
Please organize this podcast into easy-to-read notes:

  1. Create a summary in Traditional Chinese.
  2. Then, list 10 key words in bullet points, prefixing each with a 🔹.
  3. If there are any key quotes, list them in the "💡 Quotes" section.
    The tone should be clear and concise, and the layout should be attractive, making it suitable for posting directly to Gmail/Google Docs.

https://ithelp.ithome.com.tw/upload/images/20250826/20168759LtOWcdWSIe.png
4. 建立並設定google docs節點,將輸出結果放入文件中。
1. https://docs.google.com/document/d/1bDfTxtYDiXFeCevqflxCu-5si6-IdXWSlmZYO-ypTro/edit?usp=sharing (輸出結果的檔案,有興趣可以點開看看)
5. 建立gmail節點(與google docs併行),將輸出結果傳到mail。
https://ithelp.ithome.com.tw/upload/images/20250826/20168759odU3I1RmsG.jpg

分析圖片

https://ithelp.ithome.com.tw/upload/images/20250826/20168759L097vTJnlK.png
給一張火車時刻表希望得到圖中的資訊。

  1. 將一張火車時刻表存進google drive
  2. 建立並設定google drive節點
  3. 建立google gemini節點,選擇Analyze image功能
    1. 選擇模型
    2. Input Type設為Binary file(s)
    3. 輸入text input ,希望知道途中最早到達目的地的班次。

Which is the first train to depart?

https://ithelp.ithome.com.tw/upload/images/20250826/201687599ffKSDPnkg.png

  1. 建立並設定google docs節點,將輸出結果放入文件中。
    https://ithelp.ithome.com.tw/upload/images/20250826/20168759mws0u82WGE.png

資料來源

https://youtu.be/efaOH6CDLCU?si=-CvVLMLhX8nZTYfJ
https://podcasts.apple.com/tw/podcast/新聞詞語教學-基金-債券-投資組合-報酬-牛市-20250810/id1779654649?i=1000721336712
https://vocus.cc/article/67c6443efd8978000185012d


上一篇
Day 11 chat trigger 應用-「飲食搭配大師」
下一篇
Day13 學習網頁爬蟲(上)
系列文
n8n x AI自動化之新手村14
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言