Skip to main content

Organizing UI toolbar icons: Apple HIG standards and Gemini AI

Workflow preview

Workflow preview
100%
Organizing UI toolbar icons: Apple HIG standards and Gemini AI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

When designing user interfaces, toolbar icons often get overlooked, even though their placement and grouping dramatically impact usability and user flow. This workflow leverages Gemini AI to automa...

Best for

  • Engineering automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.formtrigger, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.chainllm, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.agent

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Zeinabsadat Mousavi Amin.

Original n8n.io source

1.1 Workflow description

Title
Organizing UI toolbar icons: Apple HIG standards and Gemini AI
Workflow name
Organizing UI toolbar icons: Apple HIG standards and Gemini AI

Overview

When designing user interfaces, toolbar icons often get overlooked, even though their placement and grouping dramatically impact usability and user flow. This workflow leverages Gemini AI to automatically analyze UI screens, classify toolbar icons based on Apple’s Human Interface Guidelines (HIG), and suggest optimal placements.

By combining AI analysis with structured placement logic, this workflow helps designers build more consistent, efficient, and user-friendly interfaces—without spending hours manually arranging icons.


🚀 Features

  • AI Classification: Uses Gemini AI to analyze screenshots and classify icons into roles like .primaryAction, .navigation, .confirmationAction, and more.
  • HIG-Based Placement: Automatically assigns icons to the correct toolbar areas—Leading (Left), Trailing (Right), Center, Bottom, or System-decided.
  • Usage-Aware Reordering: Reorders icons based on frequency of use so the most relevant actions appear where users expect them.
  • JSON Output: Delivers structured results for seamless integration into design tools or documentation.

🔧 Setup Instructions

  1. Install the Workflow: Import the workflow into your n8n instance.

  2. Configure Input:

    • Upload a screenshot of your UI.
    • Upload a set of icons you want to classify and place.
  3. Set Up Gemini AI Node:

    • Add your Gemini AI API key in the node’s credentials.
  4. Run the Workflow: Submit the inputs and let the AI classify and assign placements.

  5. Export Results: Copy the JSON output or connect the workflow to your preferred design/documentation tools.


⚙️ How It Works

  1. Form Submission – Capture screenshot + icons.
  2. Gemini AI Agent – Interprets screen context and classifies each icon.
  3. Placement Logic – Maps icons to the correct toolbar areas.
  4. Reordering – Adjusts order based on relevance and HIG standards.
  5. Structured Output – Produces clean JSON for further use.

🎨 Customization

  • Change AI Prompts: Modify the Gemini AI node prompts to reflect your app’s design language.
  • Adjust Placement Rules: Update logic to follow custom guidelines beyond Apple HIG.
  • Integrate with Design Tools: Send the JSON output directly to tools like Figma, Sketch, or internal systems.

💡 Why This Matters

  • Consistency: Ensures toolbar designs always follow Apple’s HIG.
  • Efficiency: Saves designers hours of manual icon placement.
  • Scalability: Works across multiple screens, flows, and apps.
  • AI-Assisted Design: Augments designer decisions with structured insights instead of replacing them.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - On form submission

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.3

Block 2 - Gemini

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 3 - Gemini: Reordering

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 4 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 5 - Code: Clean Outcome

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - UI Guidance

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 7 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - AI Agent: Icon Categorizer

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 10 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Code: Clean Outcomes

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Basic LLM Chain: Reordering

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 13 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Organizing UI toolbar icons: Apple HIG standards and Gemini AI
Complexity intermediate
Nodes 13
Categories Engineering, AI Summarization
Author Zeinabsadat Mousavi Amin
Published 03 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8206/8206.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Organizing UI toolbar icons: Apple HIG standards and Gemini AI do?

When designing user interfaces, toolbar icons often get overlooked, even though their placement and grouping dramatically impact usability and user flow. This workflow leverages Gemini AI to automa...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering, AI Summarization use case.