Try   HackMD

URL - RUN -> Login -> Choose "fBuilder" then click "go" to start

Flow Builder (fBuilder) is a low-code programming environment developed by YPCloud, and modelled off IBM’s Node-RED

When you launch a flow, the message travels down the chain of nodes until it reaches the end, with the output of one node being the input of the following node.


Introduction

FlowBot Guide (Sample)

Samples


User Interface


Left Column - List of Nodes

  • You won't be able to install nodes from palette, you may explore Node-RED if you're interested in trying nodes out of the list.

Middle - Workspace

Flow Tabs -

- Add Tabs

- List of Tabs


Top Right Corner

- Click Deploy to save your flow after your edits

Log Out -

- List


Right Column - Flow Management Window

- Information: Include "enable/disable flows"

- Help

Examples:



- Debug

Example:

  • Funtion Node Content

    ​​msg.payload=
    ​​{
    ​​  "content": "Hello World~",
    ​​}
    ​​return msg;
    

- Configuration

- Overall


Basic Nodes

Tips

  1. "Double click" each node to edit contents, press each node's

    when finish

  2. You may use "ctrl+c" & "ctrl+v" to copy/paste nodes

  3. You may "frame up" multi nodes using your mouse to move or copy/paste

  4. Click

    before debug/leaving page, or else the changes you've made won't be saved, the button turns blue after deploying

  5. Example -


Nodes Table


| inject

  • It's also known as a "timestamp" node as it can trigger on specific time

  • Usually the first node of a chain

  • After Deploying click the blue button on the left of the node to trigger

  • The check box of "inject once after 0.1/customize seconds" means that after Deploying it will auto inject once

  • Repeat can customize the time to execute the chain repeatedly


| set

  • To set the name of device (e.g. your container), set the “EiName” field to a name you want

  • Then connect an inject node to the set node, deploy, and click the button

  • Device is now set to that name


| payload

  • To configure a payload that other Motechat devices can receive

  • It's in JSON format


| function

  • One of the most versatile of the basic nodes

  • Allows to run JavaScript code against the messages passed through

  • By default, messages are passed in as an object called msg, and the function would return the input with the line “return msg;”

  • Returning “null” ends the flow

  • Can work many way as long as it returns an msg object, returning anything else results error.


| send

  • To send payloads to other devices or channels.

  • The Send node has two output ports: the top one is for successful sends and the bottom one is for errors

  • Send DDN by >>xxx & topic by xxx://xxx (ex:>>comm,tg://-12345678)


| call

  • Can be used to request services from a number of Motechat-configured devices

  • This will be used to acquire information stored in YPCloud’s Object Store


| switch

  • Can add as many output ports as you need.

  • Can be use like for loop


| debug

Options


| comment

  • Used to add text comments to flows

| on/ret event

&

It is used on a contanier to receive Motechat messages from other containers

  • These nodes are connected like this


QRun

After finishing the flow, click

(top right corner) and select "QRun"

Select one of the following to deploy

If a "Deploy success" or "Timeout" message shows up on your page, your QRun has been successful

If its showing something else, your QRun has failed

(ask for help)

Check whether your flow works (through Telegram Group, ioc, etc.) after you've logged out of fBuilder / shutdown your pc

Remember to logout of fBuilder after use!


Flow Import and Export

Import flow

Import flow.json or xxx.flow

Paste your flow or choose flow file


Export flow

You may export specific nodes or the whole flow

You may download json file or copy json to clip board (& "ctrl + v" to paste it directly anywhere


Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
Clouder Book

tags: Clouder,guide

Hi Clouders
Eugene