Skip to main content
All CollectionsBuild AutomationsSteps
Scripting in Torq Workflows: Bring Your Own Code
Scripting in Torq Workflows: Bring Your Own Code

Incorporate scripts into Torq workflows using dedicated steps for Python, JavaScript, PowerShell, and Bash, with support for AI completion.

Updated over a month ago

Use scripts in your workflows and enhance flexibility within dynamic use cases. Should you already have a script written for a task, you can easily repurpose it within Torq. All of the supported languages have dedicated steps. Simply paste your script in the input of the scripting step, and it will be ready to run. Some scripting steps also allow for AI completion.

These steps are located in the Scripting category in the Public steps.

Python

Comes with the Python Standard Library, pyopenssl, crcmod, and requests package. You can use the optional variable REQUIREMENTS to install additional packages. There are separate steps for Python data processing scripts and IOC extraction scripts.

Javascript

Executes a Javascript script using Node.

PowerShell

Uses PowerShell Core to execute scripts. It comes installed with PSWSMan and ExchangeOnlineManagement modules. You can install additional modules using the MODULES parameter.

Bash

Supports various UNIX shell utilities, such as sed, grep, jq, pup, faq, and more.

Did this answer your question?