On-demand triggers in Torq allow users to manually start workflows anytime from the Canvas. These triggers can be customized with parameters to tailor the start event.
Workflows with on-demand triggers can also be:
Exposed in Torq Cases
Used as nested workflows or made into nested-only workflows
Used as Socrates or AI Agent tools
Any workflow descriptions and trigger parameters you provide should be clear and meaningful, as they directly influence AI behavior. For example, parameter types, names, and descriptions are used by Socrates to determine which actions to take and how to execute them.
How to use
Create a workflow: Choose the on-demand trigger when creating a workflow on the Build > Workflows page.
Configure trigger parameters: Customize the trigger by adding parameters.
Type: The type of data. The default is Short text.
Name: The name of the parameter
(Optional) Description: The description of the parameter
(Optional) Default Value: The default value assigned to the parameter
Required: Whether the parameters are required or optional
(Optional) Replace a trigger: Replace an existing trigger with a different trigger type if your automation requirements change.
(Optional) Add trigger conditions: Add trigger conditions to determine which events will start workflow executions.
(Optional) View event history: View past trigger events to monitor activity, troubleshoot issues, or verify that events were received and processed correctly.
(Optional) Resend events: Resend any past event, either to test the current workflow functionality or to rerun a production event.
Upload files to be accessed during workflow execution. The file link generated is secure and private, accessible within Torq using {{file $.event.<parameter_name>}}.
Run and test workflows
The Exit operator returns the data to the parent workflow in the case of nested workflows, and to the AI Agent or Socrates when the workflow is used as a tool.
Execute a test run: After adding steps, click Test Run to manually initiate the workflow.
Use trigger data: Incorporate event data in workflow steps with
$.event.<parameter name>.
Publish and share workflows
Publishing and sharing help you manage workflow lifecycle and collaboration in Torq:
Publishing makes a workflow active and available for execution within your workspace.
Sharing allows you to distribute a workflow across multiple workspaces for reuse and collaboration.

