Actions114
- AI Actions
- AI Advanced OCR
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Enitity Detection
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate Javascript Code
- Generate Python Code
- Language Detection
- Mood Detection
- PDF OCR
- Picture Object Recognition
- Picture Text Recognition
- Redact Sensitive Information From PDF
- Too Long To Read
- Transcribe
- Translation
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Date & Time Actions
- Generate Actions
- Image Actions
- Operator Actions
- PDF Actions
- Storage Actions
- Text Actions
- User Actions
Code → Python
AI-generatedOverview
This node executes Python code provided by the user within the 'Code' resource and 'Python' operation context. It allows users to run custom Python scripts as part of their workflow, enabling automation and data processing tasks that require Python scripting. For example, users can run data analysis scripts, automate calculations, or manipulate data structures using Python code.
Use Case Examples
- Running a Python script to process input data and return results.
- Automating data transformation tasks using custom Python code within a workflow.
Properties
| Name | Meaning |
|---|---|
| Code | The Python code to be executed. This is a required string input where users write their Python script. |
| Code Variables | A collection of variables that can be passed into the Python code. Each variable has a name or ID and a corresponding value, allowing dynamic input to the script. |
Output
JSON
result- The output result from executing the Python code, returned as JSON data.
Dependencies
- Requires an API key credential for the CodeKit API to execute the code remotely.
Troubleshooting
- Common issues include syntax errors in the Python code, which will cause execution to fail. Users should validate their Python code before running.
- If the node throws errors related to missing variables, ensure that all required code variables are defined and passed correctly.
- API authentication errors may occur if the API key credential is missing or invalid; verify the credential configuration.
Links
- n8n Expressions Documentation - Documentation on how to use expressions to dynamically set variable values in n8n.