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 → ASYNC Python Script Advanced (Complex Script)
AI-generatedOverview
This node executes an asynchronous Python script with advanced capabilities. It allows users to provide a Python code string that includes import statements and does not require a 'result' variable. The script runs asynchronously, and the output is sent to a specified webhook URL. Users can also specify dependencies (Python packages) required by the script and pass variables to the code. This node is useful for running complex Python scripts that need to operate asynchronously and send results back via webhook, such as data processing, automation tasks, or integration with other services.
Use Case Examples
- Running a Python script that scrapes data from a website asynchronously and sends the results to a webhook for further processing.
- Executing a machine learning model asynchronously with required dependencies and sending predictions to a webhook endpoint.
- Performing asynchronous data transformation or analysis in Python and forwarding the output to a webhook for real-time updates.
Properties
| Name | Meaning |
|---|---|
| Code | The Python code string to be executed asynchronously. It must include any necessary import statements and can use print statements to output data to be captured by the receiving webhook. |
| Requirements | A list of Python package dependencies required by the code, e.g., ['selenium', 'requests', 'numpy']. |
| Send To | The webhook URL where the execution result will be sent after the script finishes. |
| Code Variables | Variables to pass into the Python code. Each variable has a name or ID and a corresponding value to be used within the script. |
Output
JSON
result- The output data sent back from the asynchronous Python script execution, typically parsed from the printed JSON output at the receiving webhook.
Dependencies
- Requires an API key credential for authentication to the CodeKit service that executes the code asynchronously.
Troubleshooting
- Ensure the Python code includes all necessary import statements since the environment does not pre-import modules.
- Verify that the webhook URL provided in 'Send To' is accessible and correctly configured to receive POST requests.
- Check that all specified dependencies in 'Requirements' are valid Python packages and available in the execution environment.
- If the script does not produce output, confirm that print statements are used to send data to the webhook, as the 'result' variable is not used.