Taskt SL icon

Taskt SL

Perform Taskt Operations

Taskt SL

AI-generated

Overview

This node integrates with the Taskt automation platform to execute Taskt scripts dynamically. It allows users to run custom Taskt scripts by injecting variables either one-by-one or as a JSON block, making it useful for automating repetitive tasks or workflows that require script execution with variable inputs.

Common scenarios include:

  • Automating desktop or web tasks where Taskt scripts control UI interactions.
  • Running parameterized scripts where input variables change per item.
  • Integrating Taskt script execution into larger n8n workflows for enhanced automation.

For example, a user can provide a Taskt script that performs file operations and pass different filenames as variables for each workflow item, enabling batch processing.

Properties

Name Meaning
Input Method Choose how variables are provided: "Json Block" (all variables in one JSON string) or "One By One" (variables specified individually).
Script The Taskt script code to be executed, which can include placeholders for variables.
Variables When using "One By One" input method, specify multiple variables as key-value pairs to inject into the script. Default variable name is v_Message.
Variables (JSON) When using "Json Block" input method, provide all variables as a single JSON string to inject into the script.

Output

The node outputs an array of items, each containing a json field with a response property. This response holds the result returned from the Taskt API after executing the script. The exact structure depends on the Taskt API response but generally includes execution status or output data.

No binary data output is produced by this node.

Dependencies

  • Requires an active connection to the Taskt API service.
  • Needs an API authentication token (referred generically as an API key credential).
  • The node sends HTTP POST requests to the Taskt API endpoint specified in the credentials.
  • Uses helper functions to encode the script in base64 before sending.

Troubleshooting

  • Common issues:

    • Invalid or missing API authentication token will cause request failures.
    • Malformed JSON in the "Variables (JSON)" property will cause parsing errors.
    • Errors in the Taskt script syntax may lead to API errors or unexpected results.
  • Error messages:

    • If the API request fails, the node throws an error with the message from the Taskt API.
    • If continueOnFail is enabled, errors are captured in the output under json.error.
    • JSON parsing errors when using "Json Block" input method will throw exceptions; ensure valid JSON format.
  • Resolutions:

    • Verify API credentials and endpoint URL.
    • Validate JSON syntax before inputting in the "Variables (JSON)" field.
    • Test Taskt scripts independently to ensure correctness before running via the node.

Links and References

Discussion