Building Your App

Interfaces

Build the screens your App Users see with the Interface Builder.

Interfaces are the screens your app's end-users (App Users) actually see and interact with, dashboards, forms, tables, and reports. You build them in Rayven's Interface Builder, either by describing what you want to the AI Assistant or by writing the components yourself in the Code tab.

The interface list screen

Rayven Interfaces list screen showing interface cards with status badges
The Interfaces list for an app, showing status and last-edit date per screen.

Every app has an Interfaces section where you can see and manage all of its screens. From here you can:

  • Filter by status using the pills: All, Live, Needs Publish, or Draft.
  • Search for a specific interface.
  • Switch between grid and list view.
  • Click New Interface to create a new screen.

Each interface is shown as a card with a preview, its name, status, and the date it was last edited. From the card you can click Publish/Unpublish, or open a menu with Open Editor, Rename, Duplicate, Set as Login Page, and Delete.

Interface statuses

An interface moves through three states:

  • Draft, saved, but not visible to App Users yet.
  • Needs Publish, you've made edits since the last time it was published.
  • Live, deployed and visible to your App Users.

Creating an interface

Click New Interface and choose one of two paths, the same pattern used for Workflows:

  • Build with AI, describe the screen you want (for example, "energy management dashboard") and Rayven generates it for you.
  • Blank Canvas, start from an empty screen and build it up yourself.

The Interface Builder

Once you're in the editor, you'll work with a few key panels:

AI Assistant

Interface Builder AI Assistant panel generating a dashboard from a text description
Describing a screen to the AI Assistant, and the generated result.

A chat panel on the left where you describe what you want, and Rayven generates or adjusts components for you. Quick-prompt chips are provided for common screen types to help you get started faster.

Canvas

The center canvas shows a live, rendered preview of the components you build in the Code tab. Use the Desktop/Tablet/Mobile device toggles and the zoom controls to check how your interface looks and responds across different screen sizes.

Data Sources tab

Interface Builder Data Sources tab showing the project's Tables and Push to Interface node feeds
The Data Sources tab, scoped to the whole project: every Table and every Push to Interface node feed.

Use the Data Sources tab to inspect what's available before you write any code. It's scoped to the whole project, not to whichever component you're building, it shows the raw shape of every Table's rows, and the live feed of every Push to Interface node from your Workflows, so you can see exactly which fields exist and what they're called anywhere in the project.

The Data Sources tab is a read-only inspector, not a display mechanism, it doesn't bind, filter, or render anything onto the screen by itself. To actually show that data to App Users, write the component in the Code tab and pull it yourself with getDataFromTable() or getDataFromAPINode(), which is also where you add any column lookups or filter conditions.

Code tab

Interface Builder Code tab with the JS Editor open next to a live preview
The Code tab's JS Editor, with the live preview updating alongside it.

The Code tab is where you build components by writing CSS and JavaScript, there's no drag-and-drop component palette; every component on the canvas is something you've coded. This JavaScript runs inside a widget iframe and has access to a built-in set of global functions for talking to Tables, Workflow API Nodes, and the surrounding interface.

In short: use Data Sources to see what fields the project's Tables and Workflows make available. Use the Code tab to actually build a component and pull that data into it, with whatever filtering or logic you need.

Save, Publish, and Preview

  • Save persists your current work as a draft.
  • Publish deploys your interface live, making it visible to App Users.
  • Preview shows you the live/rendered version of your interface before you publish it.

Build and publish an interface

  1. Open your App and go to the Interfaces tab, then click New Interface.
  2. Choose Build with AI and describe the screen you want, or Blank Canvas to start empty.
  3. Use the AI Assistant chat panel to generate the interface's code, or write each component yourself in the Code tab.
  4. Check the Data Sources tab to see what fields the project's Tables and Push to Interface feeds offer, then reference that data in your Code tab component.
  5. Click Preview to check the rendered version across Desktop, Tablet, and Mobile.
  6. Click Publish to make it Live and visible to App Users, Save alone only keeps it as a Draft.

Connect a Table to an Interface

  1. Open the interface you want to add data to, and open its Code tab where you'll build the component, for example, a stat card or table.
  2. Check the Data Sources tab to see the shape of the Table's rows and which fields are available (it lists every Table in the project, not just this interface's).
  3. In the Code tab, pull the data yourself with getDataFromTable(), referencing the field names you saw in Data Sources, plus any lookups or filter conditions you need, see Interface Builder JS Functions.
  4. Click Publish so App Users see the connected data, not just you in the editor.

Bring Workflow data into an Interface

A Table isn't the only source an Interface can read from, a Workflow can feed a component directly with data computed or fetched in the flow itself (a calculation, an aggregation, a third-party API response, and so on).

  1. In the Workflow, add a Push to Interface node at the point in the flow whose output you want to expose, and list the fields you want saved, see Logic Nodes Reference for how to configure it. This stores the data as a live feed your Interfaces can read.
  2. Back in the Interface Builder, open the Data Sources tab, it's scoped to the whole project, so once the node is receiving data you'll find its feed listed there, to confirm which fields it's exposing.
  3. Switch to the Code tab and call getDataFromAPINode() with that node's ID to actually pull the data and build the display, with any date-range queries or UID/label filtering you need, see Interface Builder JS Functions.

This is the same node referenced in the FAQ below, a Push to Interface node is the only conduit for getting live Workflow data onto a screen. There's no no-code display path for it: the Data Sources tab only lets you see the feed's shape, and the actual display always happens through getDataFromAPINode() in the Code tab.

Send Interface data back to a Workflow

Data can flow the other way too: a custom component in the Code tab can send data an App User enters or triggers straight into a Workflow, useful for interactions the built-in Form Builder Widget node doesn't cover, like a custom button or a non-standard input.

  1. In the Workflow, add a Push from Interface node as the entry point that should receive the data, and connect its output to whatever should process it next (an Update Tables node, a Conditional Filter, and so on). Note its Node ID, see Logic Nodes Reference.
  2. In the Interface's Code tab, call pushPayload(payload, nodeId, type, typeValue) with that node's ID to route a JSON payload to it. Use savePayload(json) instead when you only need to send data tied to the widget's own node, without explicit UID routing.
pushPayload({ command: "restart" }, 205814, "UID", "record1");

Together, these two nodes are the full round trip: Push to Interface carries Workflow data out to a screen, and Push from Interface carries data an App User enters or triggers back into a Workflow. See Interface Builder JS Functions for every function that can read or write data from the Code tab.

Setting the login page

You can choose which interface App Users land on when they open your app's URL. From the interface list, open the menu on any interface and choose Set as Login Page.

Frequently Asked Questions

What's the difference between the Data Sources tab and the Code tab?

The Data Sources tab is a read-only inspector scoped to the whole project, not to whichever component you're building: it shows every Table's rows and every Push to Interface node's feed, so you know what fields are available. It doesn't display, bind, or filter anything by itself. To actually show that data to App Users, write the component in the Code tab and pull it with getDataFromTable() or getDataFromAPINode(). See Interface Builder JS Functions for the full reference.

Why is Open App still disabled after I built an interface?

Building an interface isn't enough on its own, it needs to be published. Open the interface and click Publish; Open App and Preview stay disabled until at least one interface is Live.

What's the difference between Save, Publish, and Preview?

Save stores your work as a draft that only you can see. Publish deploys it live so App Users can see it. Preview shows you the live/rendered version before you commit to publishing.

Can App Users see a Draft or Needs Publish interface?

No. Only interfaces in the Live status are visible to App Users. Needs Publish means you have unpublished edits sitting on top of the last published version.

How do I change which screen App Users land on first?

Open the menu on any interface in the interface list and choose Set as Login Page.

How do I control which Interfaces a User Group can open?

Each User Group has its own Interface-access settings under App Users & User Groups, where you choose which Interfaces its members are allowed to see.

Can I pull live Workflow data into an Interface?

Yes, a Push to Interface node in the Workflow is the only conduit; it stores the data as a live feed. Inspect the feed's fields in the Data Sources tab, then call getDataFromAPINode() in the Code tab to actually pull and display it, there's no no-code display path for Workflow data. See Workflows, Core Concepts, and Interface Builder JS Functions for the full picture.

Can I send data from an Interface back into a Workflow?

Yes, add a Push from Interface node to the Workflow as the receiving point, then call pushPayload() or savePayload() in the Interface's Code tab to deliver JSON to it. This is the reverse direction of a Push to Interface node. See Interface Builder JS Functions and Logic Nodes Reference for the full pattern.

Can AI help me build an Interface?

Yes, describe the screen you want with Build with AI when creating one, and use the AI Assistant chat panel inside the editor to keep refining it conversationally. See Generative AI in Rayven for the full picture.

What JavaScript functions are available in the Code tab?

See Interface Builder JS Functions for the full reference, including getDataFromTable(), getDataFromAPINode(), and the functions for calling a Workflow's API Node.

Can the same Interface show different data to different User Groups?

Yes. Grant every relevant group access to the same Interface, then give each a different row-level, label-based Filter. See App Users & User Groups and Core Concepts: Labels for the full pattern.

To go deeper on building and connecting your interfaces, check out these related articles: