# AI-Powered Flow Builder (Prompt → Advanced Flow Generator)

**URL:** <https://community.homey.app/t/ai-powered-flow-builder-prompt-advanced-flow-generator/144805>\
**Category:** Ideas & Suggestions\
**Tags:** homey-pro, advancedflow, ai\
**Created:** [November 1, 2025, 11:48am UTC](https://community.homey.app/t/ai-powered-flow-builder-prompt-advanced-flow-generator/144805 "2025-11-01T11:48:09Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![luca\_reina](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luca_reina/32/78928_2.png) [@luca\_reina](https://community.homey.app/u/luca_reina)\
**Post date:** [November 1, 2025, 11:48am UTC](https://community.homey.app/t/ai-powered-flow-builder-prompt-advanced-flow-generator/144805/1 "2025-11-01T11:48:09Z")

</div>

With the current evolution of Large Language Models (LLMs) and the capabilities already exposed by the Homey Web API, it would be extremely powerful to introduce an **AI-assisted Flow Builder** a system that allows users to describe an automation in natural language and automatically generate an **Advanced Flow** (complete with cards, conditions, tags, and variable bindings).

### Example use case

A user could type or say:

> “When the mmWave sensor in the hallway detects presence and it’s after sunset, dim the living room light to 40%, play soft music, and close the blinds.”

Homey’s AI Flow Builder would then automatically:

1. Identify the correct devices (sensor, light, speaker, blinds).

2. Build an **Advanced Flow** with the proper _When / And / Then_ cards.

3. Bind variables or tags (e.g. lux, time of day, presence).

4. Save the flow in the user’s workspace ready for review and activation.

### How it could be implemented (plausible based on current API capabilities)

- **API Foundation:**  
Homey already exposes Web APIs such as `HomeyAPIV3Local.ManagerFlow` and `HomeyAPIV3Cloud.ManagerFlow`, which include functions like `createFlow`, `updateFlow`, and `createAdvancedFlow`.  
These could serve as the backend for programmatically creating flows.

- **LLM Integration Layer:**  
The system could connect to a local or cloud-based LLM (OpenAI, Gemini, or even Athom’s own AI module).  
The LLM would parse a user’s prompt and output a structured JSON object describing the desired flow, including:

- **Flow Rendering & Validation:**  
Homey’s UI would then use this JSON to automatically render a draft Advanced Flow in the visual editor.  
The user could confirm, edit, or fine-tune it before saving.

- **Security & Permissions:**  
Since this feature would rely on creating flows via API, user confirmation and permission tokens would be required (similar to the current Developer API tokens).

### Benefits

- Makes Homey accessible to non-technical users.

- Greatly reduces setup time for complex automations.

- Bridges natural language and Homey’s powerful Advanced Flow UI.

- Would place Homey at the cutting edge of AI-assisted smart home automation.

### Related References

- Homey Web API: [api.developer.homey.app](https://api.developer.homey.app/?utm_source=chatgpt.com)

- `ManagerFlow` documentation: [athombv.github.io/node-homey-api/HomeyAPIV3Local.ManagerFlow.html](https://athombv.github.io/node-homey-api/HomeyAPIV3Local.ManagerFlow.html?utm_source=chatgpt.com)

- Community idea: [AI Chat Control App](https://community.homey.app/t/app-pro-ai-chat-control-control-your-homey-with-ai-assistants-using-natural-language/144644?utm_source=chatgpt.com)

If you also think this would be a game-changer for Homey Pro users, please **like** and **comment** to help prioritize this feature!

---

<div class="post-metadata">

**Author:** ![Marcel\_Visser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_visser/32/66024_2.png) [@Marcel\_Visser](https://community.homey.app/u/Marcel_Visser)\
**Post date:** [November 1, 2025, 12:19pm UTC](https://community.homey.app/t/ai-powered-flow-builder-prompt-advanced-flow-generator/144805/2 "2025-11-01T12:19:45Z")

</div>

I totally agree. Thinking about this already for some time.

---

<div class="post-metadata">

**Author:** ![JohanP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johanp/32/119002_2.png) [@JohanP](https://community.homey.app/u/JohanP)\
**Post date:** [November 1, 2025, 12:54pm UTC](https://community.homey.app/t/ai-powered-flow-builder-prompt-advanced-flow-generator/144805/3 "2025-11-01T12:54:15Z")

</div>

Been trying to build and adjust (complicated) flows with ChatGPT and what comes out is absolute BS…

It can’t even get calculations right and just makes up functions and cards Homey is supposed to have but doesn’t…

---

<div class="post-metadata">

**Author:** ![luca\_reina](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luca_reina/32/78928_2.png) [@luca\_reina](https://community.homey.app/u/luca_reina)\
**Post date:** [November 1, 2025, 2:14pm UTC](https://community.homey.app/t/ai-powered-flow-builder-prompt-advanced-flow-generator/144805/4 "2025-11-01T14:14:53Z")

</div>

Thanks for jumping in, @Marcel_Visser and @JohanP — totally agree with both points.

You’re right, current LLMs (including ChatGPT) often “hallucinate” functions or cards that don’t exist in Homey. However, I think we’re at a stage where a **hybrid solution** could actually work reliably if designed properly.

Here’s one possible approach:

**1. AI → JSON Template, not direct UI editing**  
Instead of letting the LLM try to “click” or simulate the Flow UI, it could output a structured JSON (based on the `ManagerFlow` API schema) describing triggers, conditions and actions.  
Homey could then **validate** this JSON against its internal capabilities list (to make sure all devices and cards exist) before rendering it in the Advanced Flow editor.

**Flow Validation Layer**  
A middleware could use the same capability database that the Web App already uses (`GET /api/manager/devices`) to auto-correct or suggest the right card names and tags.  
For instance, if the AI says “turn off TV” but no such device exists, Homey could suggest “TV plug” or “Infrared transmitter.”

**3. Prompt-Engineered Contexts**  
LLMs can be given _dynamic context_ a JSON list of the user’s devices, capabilities, and installed apps before generating the Flow.  
That way, it only uses cards that are truly available on that user’s Homey.

**4. Collaborative mode**  
The Flow Builder could first propose the “When / And / Then” chain in text and allow the user to approve before it actually creates anything a kind of “AI co-pilot” rather than full automation.

If Athom or a community dev could open up a **sandbox endpoint** to experiment with `createAdvancedFlow`, we could start testing this right away.

What do you all think?  
Would be great if some developers here could confirm whether `createAdvancedFlow()` is usable from the local API right now, and if validation hooks are available.

This could become a real community-driven project maybe even open-source an _AI Flow Builder_ prototype.

---

<div class="post-metadata">

**Author:** ![JohanP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johanp/32/119002_2.png) [@JohanP](https://community.homey.app/u/JohanP)\
**Post date:** [November 1, 2025, 3:15pm UTC](https://community.homey.app/t/ai-powered-flow-builder-prompt-advanced-flow-generator/144805/5 "2025-11-01T15:15:38Z")

</div>

From what i’ve seen I’m not letting ChatGPT, and for now not any other AI near my Homey flows. letting it create Json’s or scripts wich I don’t (fully) understand is asking for mayhem.

ChatGPT offered several times to create a ‘edited’ Json, and with my previous reply I mind, I’m glad I didn’t.

When I create a flow I want to understand what it’s doing, and even more; want to be able to adjust/edit it hen needed. I don’t think I can with a flow someone, or something made for me…

ChatGPT is nice to help me with ideas and suggest solution, but I create and implement them myself…

---

<div class="post-metadata">

**Author:** ![luca\_reina](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luca_reina/32/78928_2.png) [@luca\_reina](https://community.homey.app/u/luca_reina)\
**Post date:** [November 1, 2025, 3:17pm UTC](https://community.homey.app/t/ai-powered-flow-builder-prompt-advanced-flow-generator/144805/6 "2025-11-01T15:17:53Z")

</div>

I was thinking the same thing too…

---

<div class="post-metadata">

**Author:** ![Jeroen\_van\_Menen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_van_menen/32/87704_2.png) [@Jeroen\_van\_Menen](https://community.homey.app/u/Jeroen_van_Menen)\
**Post date:** [November 1, 2025, 3:24pm UTC](https://community.homey.app/t/ai-powered-flow-builder-prompt-advanced-flow-generator/144805/7 "2025-11-01T15:24:42Z")

</div>

I do think it is possible to create an AI Flow builder based on what I did with the AI Chat control app. Maybe next week I will play around with this option.

---

<div class="post-metadata">

**Author:** ![luca\_reina](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luca_reina/32/78928_2.png) [@luca\_reina](https://community.homey.app/u/luca_reina)\
**Post date:** [November 1, 2025, 7:00pm UTC](https://community.homey.app/t/ai-powered-flow-builder-prompt-advanced-flow-generator/144805/8 "2025-11-01T19:00:37Z")

</div>

That’s awesome to hear, Jeroen your _AI Chat Control_ app already proves that Homey can interact smoothly with external AI models.

Building an **AI Flow Builder** on top of that architecture sounds totally doable if we start small and expand step by step.

Here are a few ideas that might help u to define a first prototype:

**1. Reuse your existing AI endpoint**  
Instead of reinventing the wheel, the same MCP (Model Context Protocol) interface used by _AI Chat Control_ could send a “flow-design” intent, returning a structured JSON like:

```auto
{
  "intent": "create_flow",
  "flow": {
    "trigger": {"device": "Hallway Sensor", "capability": "motion_detected"},
    "conditions": [{"time": "after_sunset"}],
    "actions": [
      {"device": "Living Room Light", "capability": "dim", "value": 0.4},
      {"device": "Blinds", "capability": "close"}
    ]
  }
}

```

Then the app could call `ManagerFlow.createAdvancedFlow()` locally to generate the actual flow.

**2. Local capability validation**  
Before creating anything, the app could cross-check the JSON against `ManagerDevices.getDevices()` to ensure every capability and device ID actually exists.  
That would prevent “hallucinated cards” or invalid functions (the main issue users like @JohanP pointed out).

**3. Iterative prompt refinement**  
Once the draft flow is generated, the AI could return a short text like “Here’s what I built would you like to adjust brightness or timing?” so the user can refine it conversationally before saving.

**4. UI integration (future)**  
In a later stage, you could surface this as a _“Create with AI”_ button in the Flow Editor, opening a text box for the prompt and showing a preview of the generated structure before committing it.

I’d be happy to brainstorm or test a prototype if you start experimenting with it.  
You’ve already done the hardest part ( connecting Homey to an LLM ) now it’s just about **mapping prompt → flow schema → UI render**.

Super excited to see what you come up with, this could really change the way people build automations! 🙌  
Regards, Luca.

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [November 1, 2025, 7:20pm UTC](https://community.homey.app/t/ai-powered-flow-builder-prompt-advanced-flow-generator/144805/9 "2025-11-01T19:20:37Z")

</div>

it seems that ChatGpt helped you with this text?

---

<div class="post-metadata">

**Author:** ![luca\_reina](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luca_reina/32/78928_2.png) [@luca\_reina](https://community.homey.app/u/luca_reina)\
**Post date:** [November 1, 2025, 8:07pm UTC](https://community.homey.app/t/ai-powered-flow-builder-prompt-advanced-flow-generator/144805/10 "2025-11-01T20:07:53Z")

</div>

No, I use Gemini for translations, which might correct the structure of the post.

---

<div class="post-metadata">

**Author:** ![ARTNOW444](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/artnow444/32/132916_2.png) [@ARTNOW444](https://community.homey.app/u/ARTNOW444)\
**Post date:** [November 3, 2025, 7:39am UTC](https://community.homey.app/t/ai-powered-flow-builder-prompt-advanced-flow-generator/144805/11 "2025-11-03T07:39:17Z")

</div>

Bonjour , je suis ok pour cela également , j’utilise déjà les AI pour corriger, et faire des scripts pour ma HP2023.

---

<div class="post-metadata">

**Author:** ![Niels\_Kloes](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/niels_kloes/32/117055_2.png) [@Niels\_Kloes](https://community.homey.app/u/Niels_Kloes)\
**Post date:** [November 7, 2025, 12:27pm UTC](https://community.homey.app/t/ai-powered-flow-builder-prompt-advanced-flow-generator/144805/12 "2025-11-07T12:27:33Z")

</div>

I fully agree with Johan. Besides all the errors and hallucinations or current AI’s, for me the fun is to understand my system completely.

If everything is taken out of my hands, my hobby is lost.

---

<div class="post-metadata">

**Author:** ![Jeroen\_van\_Menen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_van_menen/32/87704_2.png) [@Jeroen\_van\_Menen](https://community.homey.app/u/Jeroen_van_Menen)\
**Post date:** [November 13, 2025, 11:02am UTC](https://community.homey.app/t/ai-powered-flow-builder-prompt-advanced-flow-generator/144805/13 "2025-11-13T11:02:15Z")

</div>

I found another way to create “flows”: not in Homey but put into the memory of Claude / ChatGPT and then let it use the devices or flows you expose to the Ai to execute the instructions

> [@\[APP\]\[Pro\] AI Chat Control - Control your Homey with AI assistants using natural language](https://community.homey.app/t/app-pro-ai-chat-control-control-your-homey-with-ai-assistants-using-natural-language/144644/22):
>
> Why I Store Automation Logic in Claude’s Memory I wanted to share something I got working that might inspire others. I listen to Kyau & Albert’s monthly Euphonic Sessions podcast. The goal was simple: just say “play Kyau & Albert from November” and have it start playing on my kitchen speaker. Claude tried fetching the podcast’s RSS feed but hit a robots.txt error. So I grabbed the XML myself from my browser and pasted it to Claude. Looking at the feed, we noticed the MP3 URLs follow a predicta…
