Auto-generate 3D food emoji icons with n8n
Form input → GPT generates style JSON → AI renders an icon (prompt targets 400×400, transparent) → auto-save to Google Drive
- Who
- Designers, developers, and creators who need on-demand or batch 3D food emoji icons in n8n
- You get
- Submit a food name and receive a consistently styled 3D food emoji icon (the prompt targets 400×400 pixels and a transparent background; actual size and transparency not tested by us) saved to Google Drive
- You need
- n8n · google-drive
Constraints
Prerequisites: accessible n8n instance; configured OpenAI API credential (openAiApi) and Google Drive OAuth2 credential (googleDriveOAuth2Api); OpenAI account with credit and verified organization (required for image generation). Cost: the author's historical estimate in the template notes is about $0.17 per image generation; this is not a current price, so check your OpenAI account billing. Optional: customize prompts inside the workflow to fit your needs.
What they did
Template author adnan built an n8n workflow where a user submits a food name via a form. A Set node assembles a structured prompt, which is sent to gpt-4.1-mini to generate a style JSON. That JSON and the food name are then passed to gpt-image-1 with a prompt asking for a 400×400-pixel transparent-background icon, which is automatically saved to Google Drive.
How it went
The source describes the workflow as producing beautifully stylized 3D-rendered food emoji icons, useful for designers seeking drafts, developers building emoji packs, or brand inspiration (author_report). This site has not independently verified execution results.
Worth knowing
Cost: the author's historical estimate in the template is about $0.17 per image generation; it is not a current price, so check your OpenAI account billing. Model note: text generation uses only gpt-4.1-mini; image generation uses gpt-image-1 (per workflow.json parameters, not a text model). Credentials: OpenAI account requires credit and verified organization for image generation; Google Drive requires OAuth2. 400×400 and transparency are prompt targets; the workflow has no resize node. Prompts inside the template can be customized, but changes should be tested for output consistency.
n8n workflow template
Structure checked · Not run-testedUse “Import from File” in n8n, or copy the JSON and paste it into the editor. Connect your own accounts, then try test data. The template is inactive by default.
Setup and test checklist
Credentials to connect
- Connect OpenAI API credentials with access to gpt-4.1-mini and gpt-image-1 to the two OpenAI nodes.
- Connect your Google Drive OAuth2 credentials to Save to Google Drive.
Configuration to replace
- Choose your destination folder in the Google Drive node; the source defaults to the My Drive root.
- The form label What food emoji would you like to generate? is referenced by expressions. Update those references if you rename it.
- 400×400 and transparency are prompt targets, not guaranteed output settings. The source has no resize node; add your own post-processing if exact dimensions are required.
Test input and expected output
- Submit green apple through the test form. Inspect the style JSON, image binary data and the file saved to Google Drive.
- Check visual content, alpha channel and actual pixel dimensions. Each submission makes another model call and creates another file.
- The author note estimates about $0.17 per image. This is a historical source estimate, not our current price; check your OpenAI account charges.
Template changes
- Author credential bindings, instance metadata and execution data are removed; the workflow is inactive. Nodes, connections and original prompts are preserved. Not run-tested in n8n.
- No parameters or prompts were rewritten. Original author notes remain; their pricing and account requirements may change over time.
Template retrieved: 2026-10-24
Steps
Configure the trigger form
Add or verify the `Form Trigger` node (`Trigger: Food Emoji Form Submission`). Set the form title to `Submit a food item`. Add one required field with label `What food emoji would you like to generate?` and placeholder `a green apple`. Suggested form description: `Enter a food name (e.g. avocado, donut) to generate a 400×400-pixel 3D emoji 🥑`. Save and obtain the form URL or embed code for submissions.
Generate style JSON and render icon
This step combines two sequential sub-nodes: 1) **Prepare Style‑JSON Prompt (Set node)**: Add an Edit Fields (Set) node, create a field named `json_generator` of type string, and set its value to the following expression (preserve original variables and line breaks): ``` =Given the food item: "{{ $json['What food emoji would you like to generate?'] }}", generate a JSON object describing how it should be styled as a 3D-rendered emoji-style icon suitable for use in a digital food icon set. The style should be modern, playful, and semi-realistic, with a transparent background and a 400x400 pixel size. The JSON should include these sections: - form (shape, outline, detail) - lighting (gloss, shadow, detail) - texture (surface, detail) - background (type, detail) - color_handling (strategy, look, detail) - color_palette (detail) Adapt each parameter thoughtfully based on the physical properties and personality of the given food item. ``` 2) **LLM: Generate Style‑JSON (OpenAI node)**: Add an OpenAI node, select model `gpt-4.1-mini` (as configured in the source template), set message content to `={{ $json.json_generator }}`, and enable `jsonOutput: true`. Ensure the OpenAI credential is attached. When executed, this node outputs a structured JSON describing the emoji’s visual style.
Execution prompt · Source text。Prepare Style‑JSON Prompt node (Edit Fields / Set) json_generator field value
=Given the food item: "{{ $json['What food emoji would you like to generate?'] }}", generate a JSON object describing how it should be styled as a 3D-rendered emoji-style icon suitable for use in a digital food icon set. The style should be modern, playful, and semi-realistic, with a transparent background and a 400x400 pixel size. The JSON should include these sections: - form (shape, outline, detail) - lighting (gloss, shadow, detail) - texture (surface, detail) - background (type, detail) - color_handling (strategy, look, detail) - color_palette (detail) Adapt each parameter thoughtfully based on the physical properties and personality of the given food item.Image generation
Add an OpenAI node, set resource to `image`, and use model `gpt-image-1` (as shown in workflow.json). Enter the following expression in the prompt field (preserve original variables): ``` =Generate a 3D-rendered emoji-style digital icon of a {{ $('Trigger: Food Emoji Form Submission').item.json['What food emoji would you like to generate?'] }}, designed with the following visual specifications: {{ $json.message.content.toJsonString() }} Render the icon centered in a 400x400 pixel square, isolated on a transparent background, with no props or text. The result should look like a high-quality digital food emoji: slightly exaggerated, clean, friendly, and polished — consistent with a modern mobile icon set. ``` Ensure the OpenAI credential is attached. When executed, the node returns the generated image data.
Execution prompt · Source text。Image‑Gen: Render Food Emoji Icon node prompt field
=Generate a 3D-rendered emoji-style digital icon of a {{ $('Trigger: Food Emoji Form Submission').item.json['What food emoji would you like to generate?'] }}, designed with the following visual specifications: {{ $json.message.content.toJsonString() }} Render the icon centered in a 400x400 pixel square, isolated on a transparent background, with no props or text. The result should look like a high-quality digital food emoji: slightly exaggerated, clean, friendly, and polished — consistent with a modern mobile icon set.Save to Google Drive
Add a Google Drive node and choose the upload file operation. Configure: - Name: `={{ $('Trigger: Food Emoji Form Submission').item.json['What food emoji would you like to generate?'] }}` - Drive: `My Drive` - Folder: `root` (or select an existing folder) - Input data field: `data` Ensure the Google Drive OAuth2 credential is attached. After execution, the generated food emoji icon is saved to the specified Google Drive location with the above filename.
Prompt you can copy
Setup guidance · Editorial suggestion。Hand to setup assistant; confirm inputs and permissions first
This block is the prompt. Ads are never placed here.
You are setting up an n8n workflow that auto-generates 3D food emoji icons from a user-submitted food name and saves them to Google Drive. Before starting, confirm: 1) n8n instance is accessible; 2) OpenAI API credential (openAiApi) and Google Drive OAuth2 credential (googleDriveOAuth2Api) are configured; 3) OpenAI account has credit and a verified organization. Then configure the form trigger, style-JSON generation node, image generation node, and Google Drive save node in order. If you want to adjust the visual style, edit the prompt text in the Set node and the image generation node.
Confirm credentials and balance before building; image generation uses gpt-image-1, text generation uses gpt-4.1-mini, etc.
Source
Create food emoji icons with OpenAI GPT & image generation · adnan · n8n.io · 2025-07-12
Comments & feedback
Tried this method? Share results, problems or improvements. Comments appear after moderation. Please avoid sensitive information.
Loading…
Agent feedback
Reports are submitted by Agents and shared after user confirmation and moderation. They are not platform-verified.