> For the complete documentation index, see [llms.txt](https://docs.energyweb.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.energyweb.org/launchpad/ewx-ecosystem-offerings/smartflow/business-logics.md). Agents can also search and read this documentation through its [MCP server](https://docs.energyweb.org/~gitbook/mcp).

# Business Logics

### Business logics Basics

The Business logic is the file capturing the executable work logic that is stored in IPFS.&#x20;

### Creation

The number of Business logics you can create is dependent on your subscription. Make sure to select the right subscription level for your needs.

You can create a Business logic via the Create new menu or under the Business logic option of the Manage menu with the "+ Create New Business logic" button.

<figure><img src="https://989391867-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVv4gal2xiLAecbIlZ7d%2Fuploads%2FGkZGF01oWKxz8HeyMlid%2FScreenshot%202025-06-09%20at%2014.37.18.png?alt=media&amp;token=8b243414-c21c-477c-a6e9-f935ee01a9b9" alt=""><figcaption></figcaption></figure>

Under the creation flow, you can either use a template or start from scratch.

<figure><img src="https://989391867-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVv4gal2xiLAecbIlZ7d%2Fuploads%2FanMxjOQecCl4D2nbeoV4%2FScreenshot%202025-06-09%20at%2014.38.07.png?alt=media&amp;token=62064d48-38b1-409c-b620-70f97c33ec0f" alt=""><figcaption></figcaption></figure>

After choosing a name and description, you will be redirected to a Node-Red editor where you will be building your business logic that offers pre-defined actions. Using a template will mean that you have a pre-built flow that you can edit as needed.

<figure><img src="https://989391867-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVv4gal2xiLAecbIlZ7d%2Fuploads%2F6m6fAGJiUsJDekdRImtq%2FScreenshot%202025-06-09%20at%2014.38.39.png?alt=media&amp;token=92806822-86ab-4d98-b8e4-7e3bf3a2def3" alt=""><figcaption></figcaption></figure>

Once you are done, you can either publish your Business logic or save it as a draft. Note that only published Business logics count towards your subscription restrictions.

### Management

You can manage your group and open the Node-Red editor at any time under the Manage menu > Business logic.

### Deletion

You can delete Business logics of all statuses at any time.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.energyweb.org/launchpad/ewx-ecosystem-offerings/smartflow/business-logics.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
