# 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="https://2793209830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNCrOWKpBlXYnNB9SFIzb%2Fuploads%2F5VU3myR7OskXyTjEYTBO%2FScreenshot%202024-06-17%20at%2011.13.26.png?alt=media&#x26;token=2ced9460-237c-4e2c-b969-7fbb25ed5997" 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="https://2793209830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNCrOWKpBlXYnNB9SFIzb%2Fuploads%2FTpepy4DO8YcJSplx6GF8%2FScreenshot%202024-06-17%20at%2011.16.19.png?alt=media&#x26;token=48b45989-4304-472e-901b-2406d46d7c40" alt=""><figcaption></figcaption></figure>
