Noise background for pixel effect
Apr 18, 2024
Flow

Alpha version

Closed alpha version of Nouro Flow, which brings new features as assigned flows, new flow type "edge", custom nodes, and modules

Introducing the Alpha Version

In this latest alpha version, we're excited to unveil a range of new features designed to enhance your workflow. Let's delve into each of these features:


New Flow Type: "Edge"

The introduction of the "edge" flow type revolutionizes how flows are executed, particularly in distributed environments. Now, you can seamlessly execute flows on the edge in any region, boasting reduced latency and eliminating cold starts. However, it's important to note some constraints:

  • Limited to 128MB for code execution.
  • Excludes NodeJS runtime.
  • Offers a smaller storage.
  • Do not have fs

While these limitations may seem restrictive, the "edge" flow type caters specifically to applications that prioritize speed and simplicity over extensive NodeJS functionality and computing power. Ideal use cases include:

  • AI Chat
  • Chat Bots
  • HTTP Requests
  • And various other scenarios

It's worth mentioning that this flow type is built upon Cloudflare Workers, ensuring reliability and scalability.


Custom Nodes

Empower your workflow by effortlessly creating custom nodes using JavaScript with any npm package of your choice. The possibilities are limitless, as you're not confined to predefined nodes. Custom nodes can mirror the functionality of built-in nodes, with every input and handler customizable, along with the ability to add conditions for enhanced functionality.


Modules: Combining Flows and Custom Nodes

Imagine combining the flexibility of flows with the customization of custom nodes – you'd get modules. Modules are essentially flows that resemble custom nodes, allowing for easy importation into any flow. They contain a collection of nodes/modules within them, simplifying reuse across multiple flows and reducing reliance on external APIs.


Assigned Flows

Assigned flows introduce a groundbreaking way to create custom flows via API with certain limitations. Users can then modify and execute these flows easily via a provided link. This feature is particularly useful for chatbot applications or as an integration into any app seeking a low-code editor solution. Please note that while this feature is still in its early stages and may lack some expected functionality, future updates promise further enhancements.

Video example

Executing Flows via JS SDK

To streamline flow execution, the alpha version includes a new JS SDK. This SDK facilitates easy execution of flows while ensuring compatibility with future API changes. Below is a code snippet of how it works:

import { FlowEdge } from "@nouro/flow";

const flowEdge = new FlowEdge("api_key");

const res = await flowEdge.execute({
	session: {
		id: uuid
	},
	uuid: "flow_uuid",
	variables: {
	        message: "Hello, how are you?"
	},
});
const txt = new TextDecoder();
for await (const chunk of res.toStream()) {
      console.log(txt.decode(chunk));
}
// Output:
// Hello
// how
// can
// I
// assist you
// ?

With these exciting additions, we're confident that the alpha version will elevate your workflow to new heights. Stay tuned for more updates and enhancements!

Please follow us on twitter