> For the complete documentation index, see [llms.txt](https://docs.b2winsuite.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.b2winsuite.com/5.6/scripting/tutorial.md).

# Tutorial

### Create a new Workflow

Create a new workflow in your B2Data environment.

<figure><img src="/files/CEHjN6h9ofb37Rcnd7JR" alt=""><figcaption><p>Create New Workflow</p></figcaption></figure>

### Add Nodes to your workflow

In the left section you can find a list of nodes that you can use to build your workflow. Six of these nodes allow scripting usage which include: Source Script Nodes, Custom Script and Condition.

<figure><img src="/files/fZa6eBxbNqOUnPuXyf0Z" alt=""><figcaption><p>Add File Uploader with some file, convert to Excel, then connect node to custom script node</p></figcaption></figure>

### Edit your Custom-Script Node

Double click on Custom Script node to write a script.

\*Feature to write scripts is available in [6 nodes](/5.6/scripting/scripting-in-b2data/custom-script-nodes.md).

For example, you can write a script to return a filtered table from the table received from previous nodes:

```javascript
// Get a copy of the table reference from the previous node (premeir league table)
var table = NodeInputReader.inputAsDataFrame();

// Get the 2nd column as a String (football team column)
var stringColumn = table.stringColumn(1);

// Return a new table with only liverpool info filtered
return table.where(stringColumn.endsWith("Liverpool"));
```

<figure><img src="/files/0E31pGL54q4xex2NOx48" alt=""><figcaption></figcaption></figure>

Use the functions and classes you learn in [B2Win Suite Scripting](/5.6/scripting/b2win-suite-scripting-overview.md) to write your own script.


---

# 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 dynamically by asking a question.

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

```
GET https://docs.b2winsuite.com/5.6/scripting/tutorial.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
