FlowTruxFlowTrux/Docs

Creating Apps

Start an app from a description, a template or an empty editor, choose its kind or let FlowTrux pick it, and find your way around the app editor.

Every app starts from a description, a ready-made template or an empty editor. The assistant and you take it from there.

The create dialog

Click Create app - on the workspace's Apps page, or + next to Apps in the sidebar tree. The dialog asks "What do you want to make?" ("Describe it in plain words. The assistant builds it, and you can change anything later.") and opens with App selected. The same dialog creates workflows (Workflow) and can suggest which of the two you need (Decide for me - see below).

With App selected, Start from offers three ways:

Start fromWhat happens
A descriptionUnder Describe the app, write what the app should do (up to 4,000 characters). The Kind of app is optional here: "Leave it unchosen and FlowTrux picks the kind from your description." "The assistant starts building from this description when the editor opens."
A templateBrowse templates opens the template gallery with app templates - ready-made descriptions (see Templates). "Picking one puts its text into the description; nothing is sent until you create."
ScratchGive the app a Name, optionally a Description ("For your team, shown in lists"), and choose the Kind of app - here it is required. The app starts from that kind's starter: "Starts as <kind>. The assistant does nothing until you ask it."

Then click Create app. The app is created as a draft and opens in the app editor.

Kinds of app

KindWhat you get
FormVisitors send answers and files; each submission starts your workflows. A form with three fields (name, email, message) and its page.
DashboardThe visitor enters something, a workflow answers right on the page. A result page with an input that runs a workflow and shows its answer.
Result pageShows a workflow's latest result and refreshes on its own. A result page that reads the latest completed run of a source workflow.
AppA custom app with its own logic: sign-in, calculations, maps, several tasks on one page.

None is selected when the dialog opens; click a selected card again to unselect it. The kind is only where the app starts - the assistant builds the rest, and a custom app can take submissions just as a result page can run a workflow (see Apps Overview).

When FlowTrux picks the kind

With A description and no kind chosen, Create app first asks FlowTrux which kind fits. When the answer is an app, it is created at once with the suggested kind and name, and the assistant starts building from your description.

When FlowTrux decides the description is really a workflow, nothing is created. The dialog shows "Suggested: a workflow" with the reason, Create workflow, and Make it an app anyway (which asks you to choose the kind yourself).

If the kind cannot be picked for you - the month's AI credits are used up, too many suggestions were asked in the last hour, or the request failed - the dialog says so and asks you to choose one of the cards.

Not sure if it is an app?

Decide for me (the first position at the top, and where Create automation on a workspace's Overview opens) takes a description of what you need and suggests a workflow, an app of a kind, or an app with a workflow behind it. See Quickstart.

When the dialog says no

The dialog checks up front what is possible and explains any problem in one notice above its buttons - what is wrong, then what to do:

  • A plan limit is reached - the workflows limit, or the apps limit (forms, result pages and custom apps count together). The notice shows how many you have and the limit; the create button for that type is disabled, the other type stays usable.
  • The month's AI credits are used up - nothing can be suggested, so choose the type and kind yourself. With A description the app or workflow is still created, but the assistant will not build from the text; you can build it yourself in the editor.
  • Too many suggestions in the last hour - choose yourself, or try again later.
  • No edit rights in this workspace - nothing can be created there; an Owner or Admin can give you the rights.
  • Your email is not verified yet - workflows cannot be created until you open the link in the verification email.

For Owners and Admins, the limit and credit notices carry an Open billing button. During the beta a plan change is made on request. How limits and credits work: Plans and Usage.

The app editor

The editor has a header with the app's name and status (Draft or Published v<n>), four tabs, and the Assistant panel on the right (open by default; drag its edge to resize).

TabWhat it is for
PreviewThe draft as a visitor will see it - "Draft preview - only you see it; visitors see the published version." Workflows bound to the app really run from the preview. Reload and Open in new tab are in the bar above it.
FilesThe app's files: create, edit, upload and delete.
SettingsName, description, address, access, external hosts, limits, and the sections of the app's kind (fields, source workflow and so on).
PublishPublish the draft, copy the address, see versions and switch the served one.
SubmissionsAppears when the app takes submissions (or still holds some). See Forms & Submissions.

The draft preview needs edit rights in the workspace.

The first time you open the app editor (on a desktop screen), a short guided tour points out the assistant, the preview, files, settings and publishing; replay it any time with Help > Show tour in the user menu.

Files

An app is a small website: an index.html plus any styles, scripts, data files, images and fonts it needs.

  • New file creates a text file (for example app.js or css/main.css); Upload file adds images, fonts and other binary files.
  • Click a file to edit it. The editor highlights HTML, CSS, JavaScript, JSON and more; Save (or Cmd/Ctrl+S) writes it to the draft.
  • If the assistant changes a file you have open, the editor tells you instead of overwriting your edits: load its version, or save yours over it.
  • Deleting a file removes it from the draft only - "The published version keeps it until you publish again."

Allowed file types include html, css, js, mjs, json, csv, tsv, xml, yaml, md, txt, svg, png, jpg, gif, webp, avif, ico, woff/woff2/ttf, mp3, mp4 and pdf. Each file can be up to 2 MB, and one version of an app up to 20 MB in total. Uploaded files count toward your organization's storage.

A few rules every app follows - the assistant knows them, and they matter if you edit by hand:

  • Code lives in files. Inline <script> blocks and onclick="…"-style handlers do not run; load your code with <script src="app.js"></script>.
  • Use relative paths (app.js, img/logo.png), not paths starting with /.
  • Calls to outside services work only for hosts the app declares under Settings > External hosts - see JavaScript API.
  • Nothing in an app is secret. Everything in its files is visible to visitors; keys and credentials belong in a workflow. Publishing refuses a draft that contains them.

Settings

Every app has Name, Description, Address, Access, External hosts, Libraries in the app, the run limits, and Workflows this app can run. Apps of kind Form (or any app that takes submissions) also get Fields, After submit, Result workflow and Limits (form); result pages (or any app that reads a source) get Source workflow, What the page may read, Refresh and Cache. A custom app that declares neither shows two cards instead - Accept submissions and Show a workflow's result - each opening its sections.

Changes are collected and sent with one Save in the bar at the bottom of the tab (Discard drops them). The details of each section are on Forms & Submissions, Connecting Apps to Workflows and Publishing & Access.

Next steps