Webagent icon

Webagent

Interact with Webagent

Actions3

Task Run → Create And Run Task

AI-generated

Overview

This node interacts with the Webagent API to create and run a task based on a given prompt. It is useful for automating workflows where a task needs to be dynamically generated and executed, such as content generation, data processing, or automation tasks triggered by specific prompts. Users can specify how the response should be formatted (text or JSON), provide an initial URL, set authentication context, and control session timeout and task completion behavior.

Use Case Examples

  1. Generating a report by providing a prompt and waiting for the task to complete before processing the results.
  2. Running a data extraction task from a specified URL with JSON response format for structured data handling.

Properties

Name Meaning
Prompt The prompt to run the task with, which defines the task's input or instructions.
Response Format The format in which the task's response should be returned, either as plain text or JSON.
JSON Schema Optional JSON schema to validate or structure the JSON response format.
Initial URL An optional initial URL to start the task with, providing context or source for the task execution.
Auth Context Name or ID Authentication context to use for the task, selectable from a list or specified by ID.
Session Timeout Timeout duration in seconds for the task session before it is aborted.
Wait for Completion Whether the node should wait for the task to complete before returning the results.
Extract Downloaded Files Whether to extract files that are downloaded during the task execution.
Request Options Additional HTTP request options such as batching, SSL certificate validation, proxy settings, and timeout configuration.

Output

JSON

  • taskId - The unique identifier of the created and run task.
  • status - The current status of the task (e.g., running, completed).
  • result - The output or response from the task, formatted according to the selected response format.
  • downloadedFiles - Optional extracted files downloaded during the task execution, if enabled.

Dependencies

  • Webagent API authentication credential

Troubleshooting

  • Ensure the Webagent API credential is correctly configured and has necessary permissions.
  • If the task does not complete, check the 'Wait for Completion' setting and session timeout value.
  • For JSON response format, validate the JSON schema to avoid parsing errors.
  • If SSL issues occur, consider enabling 'Ignore SSL Issues' in request options or verify the SSL certificate.

Discussion