# SmartFlow Quick Start Guide

## SmartFlow Basics

SmartFlow provides you with several main capabilities:

1. Creation of business logic (SmartFlow) using the no-code [NodeRed](https://nodered.org/) editor, either from scratch or with pre-defined templates
2. Registering new Worker Network Solutions on the EnergyWebX parachain (EWX)
3. Control of lifecycle created SmartFlows as well as registered Solutions

To understand the basic process of what happens when creating and registering a SmartFlow, check out the [Worker Network Solution deployment flow](/launchpad-by-ew/launchpad-by-energy-web/ewx-ecosystem/smartflow/worker-network-solution-deployment-flow.md).

## Subscription

Before you can start using SmartFlow, you will need a subscription.

To subscribe:

1. Go to <https://launchpad.energyweb.org/> and login using your existing credentials if you are an [**Energy Web Member**](broken://pages/Vg5FkW7TWZCnJoHKEizx#energy-web-members), or the social login options (Google and Github).
2. Ensure you are in the **SaaS** environment of Launchpad by checking the toggle button on the top right.  You will easily recognize the SaaS environment by its white theme.\
   ![](/files/gICItlnABwC0alG5bins)
3. On the left hand side menu, click on **SmartFlow** and then "**Subscription**"\
   ![](/files/nEpipwvPKRUyA3FXlvnJ)
4. Select the subscription relevant to you and proceed to the payment. The "EW Member" plan is only available for enterprises that are [Energy Web members](broken://pages/Vg5FkW7TWZCnJoHKEizx#energy-web-members). Once your payment is completed, you subscription is active.

## Creation & Deployment of new solution

### Creation of New SmartFlow

1. Assuming that you have an active subscription, you are ready to create a new SmartFlow. Click on **SmartFlow** in the left hand side menu, and click "**Create new**". Select "**SmartFlow**" in the pop un that appears and click "**Continue**".<br>

   <figure><img src="/files/NwTLCNcP2YrnaBXASls6" alt=""><figcaption><p><em>The pop-up will appear when clicking "Create new" under "SmartFlow"</em><br></p></figcaption></figure>
2. On the templates choice screen, choose the template that is relevant to you or select "Create your own" and click "**Select Template**". *In the following examples, we are using the EV Green Reward - EXAMPLE.*<br>

   <figure><img src="/files/qQme3gMHmmNdE4rDNKFv" alt=""><figcaption></figcaption></figure>
3. The next screen will give you more information on the template you selected. If it fits your needs, click "**✔️ Use this template**"
4. Give your SmartFlow a name and description and click "**Save**"<br>

   <figure><img src="/files/ALKC0u26Gfge0Fg2zIDa" alt=""><figcaption></figcaption></figure>

Your new SmartFlow will appear under the menu **SmartFlow >** "**Manage**" as a **draft**. You can edit it using the NodeRed editor by clicking on the edit button on the top right of the flow\ <img src="/files/nr1190hpk1YkaRMT2YmO" alt="" data-size="original"> Edit button\
\
A new tab will open with NodeRed editor, where you can make adjustments to your SmartFlow file:

<figure><img src="/files/yykpMMcqg6GBS13Xs92X" alt=""><figcaption></figcaption></figure>

If you make any changes, remember to save them using the "**Save**" button on top right of the editor\ <img src="/files/YFNaYC6eYfn7XGU1MCUk" alt="" data-size="original">

5. Go back to the SmartFlow Manage page, click on the three dots and choose "**Publish to IPFS**". You can now use your flow within the New Worker Network Solution Registration.\
   ![](/files/yx03EVdUPXaXfToDackW)\
   \
   The flow status will change to "**Published**"\
   ![](/files/Lfs1GzSi7Eqmjipo2bWx)

### Registration of new Worker Network Solution

1. Create a New Worker Network Solution by clicking "**Create New**" under **SmartFlow** and then choosing "**Worker Network**" and "**Continue**" in the pop-up.\
   \
   &#x20;![](/files/a5BQhN0BIbjNh0SUpuLt)\ <br>
2. Populate the Solution Information details. \
   You will be asked to select if your Worker Network solution is subject to production deployment or not. Choosing "**No**" will mean that your solution will only be deployed on the [**Playground SmartFlow Worker Node Network**](broken://pages/Vg5FkW7TWZCnJoHKEizx#playground) only. Choosing "**Yes**" will trigger a review process allowing your solution to be added to a **public SmartFlow** [**pool**](broken://pages/Vg5FkW7TWZCnJoHKEizx#pool). For the full process, please see [the following page](/launchpad-by-ew/launchpad-by-energy-web/ewx-ecosystem/smartflow/worker-network-solution-deployment-flow.md).\
   &#x20;

   <figure><img src="/files/cVwgUe4aHQ1lv8Ss8wTj" alt=""><figcaption></figcaption></figure>

   Once you have filled in all the fields, press "**Continue**".<br>
3. In the solution workload tab, in a Work Logic choose the SmartFlow you have created earlier or the one that is relevant to your current solution. Press "**Continue**".<br>

   <figure><img src="/files/mi3UvVkthbS22991SY3S" alt=""><figcaption></figcaption></figure>
4. Determine your solution expiration block and click "**Register**".<br>

   <figure><img src="/files/RmZZAP4jQBjDSNaXp006" alt=""><figcaption></figcaption></figure>
5. The Solution registration consists of two steps:

   1. Solution registration on-chain
   2. Adding to a solution group.<br>

   After your solution is registered you will be automatically redirected to the SmartFlow Manage page and you will see your solution with the "**In-Progress**" status.\
   \
   ![](/files/xuZEzZUem47eOvarvAgB)\
   \
   Within a few minutes you should see two notifications on the top right informing you that your solution was added to a group successfully and created successfully. \
   \
   ![](/files/Kiufc9QRx6FWrSFkID4c)\
   \
   The solution will then appear with the "**Paused**" status.<br>
6. Activate your solution by clicking on the three dots on the Worker Network Solution card, and then selecting "**Activate**". <br>
7. After a few minutes, your solution will be active:\
   \
   ![](/files/JyTezhRApbXrgmEeT0yx)

### Validate your work

If you want to verify that your actions were correctly recorded on the blockchain:\
\
Go to [polkadot.js interface](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpublic-rpc.mainnet.energywebx.com%2F#/chainstate) choose **workerNodePallet** & the **solutions** method as shown below. On the top right, disable "**include option**" and click on the "**+**" symbol. You can then search for your solution using the namespace that you have chosen at registration.

<figure><img src="/files/LsNUGHTWiE0CifXPsnUj" alt=""><figcaption></figcaption></figure>

You should be able to query and find the solution you registered. The "**Work Logic**" field indicates the [IPFS CID](https://docs.ipfs.io/concepts/content-addressing/) where your SmartFlow logic is stored, while the "**Status**" reflects the current state of the solution.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.energyweb.org/launchpad-by-ew/launchpad-by-energy-web/ewx-ecosystem/smartflow/smartflow-quick-start-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
