Spanish Total.js
Français
Documentation Pour les agents IA
Sommaire

Ajouter des composants

Write a component, install one from an address, drop a file or create an HTTP API component.

.md Site web

Cette page n’est pas encore traduite. Tu lis l’original.

Sur cette page

FlowOS starts with Trigger, Counter and Print. It has no component catalog, so you add the components you need in one of these ways. A component you add appears in the list on the left at once.

Write a component

  1. Select Add (plus), then Create new component.
  2. The Source code window opens with a template.
  3. Write your component. The template explains each part.
  4. Select APPLY.

The Source code window with the template of a new component

Components use the same format as in Total.js Flow. See Your first component and The component file. For a full example, see Write a component with a setting.

Install a component from an address

  1. Select Add (plus), then Link component.
  2. Enter the address of the component's .html file in URL address.
  3. Select SUBMIT.

The Link component window with the URL address field

Your browser downloads the file, so the address must be reachable from your browser. The file must set at least a name, a version and an icon, or FlowOS shows Invalid response.

You can use the components of Total.js Flow this way. The Flow components catalogue describes them.

Drop a component file

Drag a component .html file from your computer onto the designer. FlowOS installs it and shows Installed: with the component's ID.

A .json file is refused: FlowOS keeps one design and does not replace it with a dropped file. To load a saved design, see Back up and restore.

Call an HTTP API

Add (plus), then Link endpoint, creates a component that sends each message to an HTTP address. You choose its Name, Group name, Icon, HTTP method, Data serialization, URL address, Custom headers and Read me, then select CREATE. The form is the same as in Flow: see Call an HTTP API.

Components from other apps

Total.js apps that publish events over TMS add their own components. See Connect apps with TMS.

Fabriqué en Europe