AI Hairstyle Preview Generator with OpenAI and LINE Group Sharing

Nodes

9c37fa7f-8da8-447f-886c-c8b0d3c3533c3b9f1b78-6b80-4575-aa6c-966987000389818211a2-bc09-427d-bfa4-d8db9fbffb509dd572aa-e531-4ffe-a66c-58ac7003ac5d

Created by

kokote2

Last edited 58 days ago

Overview

This workflow takes an image + instruction text from an n8n Form, edits only the hairstyle while keeping the face unchanged, uploads the result to Cloudinary, and pushes the image to a designated LINE group. It’s designed for salons or creative teams that need quick, consistent “hair-only” edits and one-click sharing to a staff group.

Key Features

  • Accepts image and free-form instructions via n8n Forms
  • Enforces identity preservation: face is not altered; only the hairstyle is modified
  • Uses OpenAI Image Edit to generate the edited image
  • Uploads the output to Cloudinary and returns a public URL
  • Sends the final image to a LINE group via the Push API (no replyToken required)
  • Optional safety: store the groupId once (via webhook) in n8n Data Store and reuse it, avoiding mis-sending to individuals

Requirements

  • OpenAI API key (Image Edit capable model)
  • Cloudinary account with an unsigned upload_preset
  • LINE Official Account (Messaging API enabled) and the bot added to the target group (to capture groupId once)
  • n8n with Forms enabled and Data Store available

Notes

  • Replace placeholders like CLOUDINARY_CLOUD_NAME, CLOUDINARY_UPLOAD_PRESET, LINE_CHANNEL_TOKEN, and LINE_GROUP_ID with your values.

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!