It is very easy to run Python code in n8n. Here’s a short tutorial on how to do it in simple steps:
- Inside your n8n workflow, tap the 'Add' button to create a new step.
- Choose 'Core' to proceed.
- After that, select 'Code' from the list of options.
- Click 'Code in Python' afterwards.
- Now, it's time to configure the selected node. To get started, specify your preferred 'Mode'. Just click the menu and select one from the given options.
- As for the Language, make sure that Python is selected.
- Following that, prepare the Python code you wish to run and enter it into the provided input field.
- Once done, click 'Execute Step' to proceed.
- Finally, n8n will run the provided Python code based on your configuration.



