AI Tutorial

NanoBanana + n8n: สร้างภาพ AI อัตโนมัติใน Workflow

เชื่อม NanoBanana (Gemini Image) เข้ากับ n8n สร้าง content pipeline ที่สร้างรูปภาพอัตโนมัติ

b
booAIBootCamp
1 นาทีในการอ่าน
NanoBanana + n8n: สร้างภาพ AI อัตโนมัติใน Workflow

NanoBanana คืออะไร?

NanoBanana Pro เป็น image generation tool ที่ใช้ Gemini 3 Pro Image Model สร้างภาพคุณภาพสูงจาก text prompt รองรับ text-to-image และ image-to-image

ทำไมต้องเชื่อมกับ n8n?

การเชื่อม NanoBanana กับ n8n ทำให้สร้าง automated content pipeline:

Blog Post Draft (GPT) → Generate Hero Image (NanoBanana) → Upload to S3 → Publish Post

ตัวอย่าง Workflow: Auto Blog Cover

Step 1: สร้าง prompt จาก title

Input: blog title

GPT: "Create image prompt for this blog: {{title}}"

Output: detailed image prompt

Step 2: ส่งไปสร้างรูป

NanoBanana API call:

  • prompt: {{image_prompt}}
  • resolution: 2K
  • style: modern flat illustration

Step 3: อัปโหลดและเชื่อม

Upload to Vercel Blob → Get URL → PATCH blog post coverImageUrl

Resolution Options

| ขนาด | เหมาะกับ |

|---|---|

| 1K | Draft/thumbnail |

| 2K | Blog hero image |

| 4K | Print/billboard |

สรุป

NanoBanana + n8n ช่วยให้ workflow สร้าง blog post แบบ full-auto ตั้งแต่ title จนถึง cover image พร้อมขึ้นเว็บ

พร้อมนำ AI ไปใช้ในธุรกิจคุณหรือยัง?

เวิร์กช็อป 1:1 ที่ออกแบบตามบริบทธุรกิจของคุณ เพื่อให้เริ่มใช้ AI ได้อย่างเป็นระบบและวัดผลได้จริง

จองรอบเรียน