Skip to main content

Flowise smart home integration, free and open source

Flowise integration for Gladys Assistant

Ask your Flowise chatflows and agents from a scene, and follow the state of the server.

Flowise builds AI chatflows and agents by wiring blocks together: a model (OpenAI, Mistral, Ollama…), a memory, documents, tools. This integration lets your Gladys scenes send a question to one of these flows, with information from the scene in the question, and use its answer in the next actions: send it as a message, read it aloud, test it in a condition.

It also follows the server (online or not, number of flows), keeps the last answer on a device, and offers a dashboard widget and two scene triggers.

Requirements​

  • Gladys 5.1 or later.
  • A Flowise server on your network (port 3000 by default), with at least one chatflow or agentflow.
  • A Flowise API key, optional but advised: create it in Flowise, API Keys menu. It lists your flows (a scene can then name a flow by its name) and opens the flows protected by a key.

Setup​

  1. In Gladys, open Integrations, search for Flowise and install it.
  2. In Configuration, fill in:
    • Address: the IP address or name of the server, e.g. 192.168.1.20 (port 3000 is added), 192.168.1.20:8080, or the full URL of a reverse proxy; an address copied from the browser works too;
    • API key (optional): the key created in Flowise;
    • Default flow: the flow used when a scene action names none;
    • Longest wait for an answer: 30 to 110 seconds (60 by default);
    • Refresh interval: how often the state of the server is read (one minute by default);
    • Language of the feature names: the names given to the features and the texts of the scene events and errors.
  3. Save, then press Test the connection: it shows the Flowise version and, with a key, the list of your flows.
  4. In the Discover tab, add the Flowise device to Gladys.

A flow is given by its id (the string of digits and letters at the end of the address of the flow in Flowise, e.g. b4aa0269-51dd-45e4-8121-569626ad0539), by the full address copied from the browser, or by its name when an API key is set.

The Flowise device​

FeatureMeaning
Online1 when the server answers, 0 after two failed readings in a row
Flowsnumber of chatflows and agentflows (with an API key only)
Last answerbeginning of the last answer a scene received (500 characters)

Adding the API key later offers Update in the Discover tab, to add the Flows feature.

Dashboard​

The Flowise widget shows the server (online, version), the number of flows (with a key), the flow and time of the last answer, and the beginning of that answer. The Show the last answer setting hides the text of the answer.

Scenes​

Triggers​

  • Flowise is offline: the server stops answering (two failed readings in a row, 15 seconds apart). Variable: the reason.
  • Flowise is back online: the server answers again. Variable: the length of the outage, in minutes.

Actions​

  • Ask Flowise: sends a question to a flow.

    • Question: type {{ to insert scene information, e.g. the temperature of a sensor or a value of the trigger;
    • Flow: empty for the default flow; else its id, its address or its name;
    • Conversation: the same name from one run to the next (e.g. kitchen) keeps the memory of the flow, if the flow has a memory; empty, every run is a new conversation;
    • Longest answer: in characters (1000 by default, 10 000 at most). A longer answer is cut at the end of a sentence (or a word), marked by ….

    Its results are available to the next actions: Answer, Flow used, Conversation id, Answer time (seconds) and Answer cut (yes/no). In a Send a message action, type {{ and pick Answer. A failure (server unreachable, flow not found, key refused, flow in error) shows in red with its reason.

Scene ideas​

  • Morning briefing: at 7 am, Ask Flowise "Sum up the day: outdoor temperature {{…}}, calendar {{…}}." to an agent that knows your habits, then send the Answer to your phone.
  • Kitchen assistant: with the conversation kitchen, every question keeps the thread of the previous ones.
  • Watch the server: on Flowise is offline, send yourself a message with the reason.

Troubleshooting​

  • "Flowise does not answer": check the address and the port (3000), and that the server is started. With Docker, the port must be published.
  • "flow not found": copy the id from the Flowise address bar, or use Test the connection to see the exact names.
  • "access refused": the API key is wrong, or the flow is protected by another key.
  • "the flow failed in Flowise": a block of the flow failed (model unreachable, missing credentials…); open the flow and its Executions in Flowise.
  • "Flowise took too long to answer": raise the longest wait, or simplify the flow.
  • Problems and ideas: GitHub issues.

Limits​

  • Text only: no image nor file in the question, no streamed answer.
  • Gladys waits two minutes at most for an action. The answer is capped at 10 000 characters.
  • Flowise variables ($vars) are not sent: put the scene information in the question.
  • Langflow is not supported: its API and its ids are different.
  • Questions and answers never go to the logs of the integration.
  • Tested against a real Flowise 3.1.2 (an agentflow without model), without a real Gladys instance: feedback welcome.
  • Not affiliated with FlowiseAI.

Configuration settings​

These are the settings Flowise asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
Your Flowise serversectionNoFlowise listens on port 3000. Create an API key in Flowise (API Keys menu) to list your flows and use the ones protected by a key.
AddressstringYesIP address or name of the server (port 3000 by default), or the full URL of a reverse proxy.
API key (optional)secretNoLists the flows (so a scene can name a flow) and opens the flows protected by a key.
Default flowstringNoUsed when a scene action names no flow: its id (in the Flowise address bar), its address, or its name with an API key.
Longest wait for an answerselectNoA flow that calls a large model or several tools can take a minute or more.
Refresh intervalselectNoHow often the state of the server is read.
Language of the feature namesselectNoNames given to the features when the device is added, and texts of the scene events and errors.

How to install Flowise in Gladys​

  1. In Gladys, open Integrations: Flowise appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/guim31/gladys-flowise:1.0.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration).
  3. Open the Configuration screen of the integration, fill in the settings, and save.
  4. You can also install it directly from its repository URL: https://github.com/guim31/gladys-flowise.

Flowise requires Gladys >=5.1.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.

Not running Gladys yet? It is free and open source: follow the installation guide to get started.

About external integrations​

Flowise is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by guim31, not by the Gladys core team.

Subscribe to the Gladys Assistant newsletter

A few emails per month about new releases and project news. Sent by Pierre-Gilles Leymarie, founder of the project. Unsubscribe anytime 🙂