Skip to main content
Version: Latest

workflows

Enterprise
description

Unified query to retrieve all AI workflows (both system templates and user custom). Supports comprehensive filtering, sorting, and pagination.

This query combines both SYSTEM templates (AiWorkflowTemplate) and USER_CUSTOM workflows (UserCustomAiWorkflow) into a single unified response.

Examples:

  • Get all workflows: aiWorkflows { workflows }
  • Get only user custom: aiWorkflows { workflows(filter: { workflowTypes: [USER_CUSTOM] }) }
  • With pagination: aiWorkflows { workflows(limit: 10, offset: 0) }
  • With sort: aiWorkflows { workflows(sort: { sortBy: CREATED_AT, sortDirection: DESC }) }
  • Search by name: aiWorkflows { workflows(filter: { searchText: "market analysis" }) }
workflows(
limit: Int
offset: Int
sort: AiWorkflowsSortInput
filter: AiWorkflowsFilterInput
): AiWorkflowsResponse!

Arguments​

workflows.limit ● Int scalar graph-ql-types​

workflows.offset ● Int scalar graph-ql-types​

workflows.sort ● AiWorkflowsSortInput input graph-ql-types​

workflows.filter ● AiWorkflowsFilterInput input graph-ql-types​

Type​

AiWorkflowsResponse object graph-ql-types​

Response type for paginated unified AI workflows query with metadata