Actions3
- Task Run Actions
Task Run → Run Task
AI-generatedOverview
This node interacts with the Webagent API to run a specified task. It allows users to select a task by name or ID, optionally override the default prompt, response format, initial URL, authentication context, and session timeout. The node can wait for the task to complete before returning results and optionally extract files downloaded during the task execution. This is useful for automating task execution workflows where dynamic input prompts or response handling are required, such as running automated web scraping or data extraction tasks with customized parameters.
Use Case Examples
- Run a predefined Webagent task with default settings to automate data extraction.
- Override the prompt and response format to customize the task execution and handle JSON responses.
- Set a custom session timeout and authentication context for tasks requiring specific credentials or longer execution times.
Properties
| Name | Meaning |
|---|---|
| Task Name or ID | Select the task to run by name or ID. |
| Override Prompt | Whether to override the default task prompt with a custom prompt. |
| Prompt | The custom prompt to run the task with, required if overriding the prompt. |
| Override Response Format | Whether to override the default response format of the task. |
| Response Format | The format of the task response, either text or JSON, required if overriding response format. |
| JSON Schema | Optional JSON schema defining the expected structure of the JSON response, required if response format is JSON and overridden. |
| Override Initial URL | Whether to override the default initial URL for the task. |
| Initial URL | The initial URL to start the task with, required if overriding the initial URL. |
| Override Auth Context | Whether to override the default authentication context for the task. |
| Auth Context Name or ID | Select the authentication context by name or ID, required if overriding auth context. |
| Override Session Timeout | Whether to override the default session timeout for the task. |
| Session Timeout | The timeout duration in seconds for the task session, required if overriding session timeout. |
| Wait for Completion | Whether to wait for the task to complete before returning results. |
| Extract Downloaded Files | Whether to extract files downloaded during the task execution. |
| Request Options | Additional HTTP request options such as batching, SSL validation, proxy, and timeout settings. |
Output
JSON
result- The result of the task run, which may include the task output or response data.
Dependencies
- Webagent API authentication credential
Troubleshooting
- Ensure the selected task ID or name exists and is accessible with the provided API credentials.
- If overriding the prompt or response format, ensure the input values are valid and conform to expected formats (e.g., valid JSON schema).
- Check network connectivity and API endpoint availability if requests fail.
- If SSL issues occur, consider enabling the option to ignore SSL certificate validation, but be aware of security risks.