# How to add python code

Some authomation with python can come in hande

1. Locate the **Run Python code** node and add it to your workplace<br>

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

2. There is a single input in this node, make sure that the input's type is set to Python Code

3. The node will return data assigned to a variable `_result` . To get data from other nodes use syntax like this: `context[{node_id}][{input}]`<br>

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


---

# 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://scade.gitbook.io/scade-knowledge-base/build-a-flow/how-to-add-python-code.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.
