Assembled · Arazzo Workflow

Assembled Review and Cancel a Time Off Request

Version 1.0.0

List pending time-off requests and cancel the first one, branching on whether any exist.

1 workflow 1 source API 1 provider
View Spec View on GitHub Customer-SupportWorkforce ManagementWFMAI AgentsAI CopilotContact CenterCustomer ExperienceSupport OperationsSchedulingForecastingQuality AssuranceVendor ManagementBPOArazzoWorkflows

Provider

assembled

Workflows

cancel-time-off
Find a time-off request by status and cancel it when one is present.
Lists time-off requests for an agent in a given status and cancels the first match, or ends without action when the list is empty.
2 steps inputs: agentId, apiKey, status outputs: cancelledRequestId, requestId
1
findRequests
List time-off requests for the agent in the supplied status, returning the first matching request id.
2
cancelRequest
Cancel the first matching time-off request found in the prior step.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Assembled Review and Cancel a Time Off Request
  summary: List pending time-off requests and cancel the first one, branching on whether any exist.
  description: >-
    Automates time-off triage. The workflow lists time-off requests filtered by
    status (for example pending) for an agent, then branches: when at least one
    request exists it cancels the first matching request, and when none exist it
    ends cleanly without action. Every step spells out its request inline so the
    flow can be read and executed without opening the underlying OpenAPI
    description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-300.70
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-300.70
      capability_name: HR Operations Management
      spec: assembled-time-off-api-openapi.yml
      confidence: 0.7
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: timeOffApi
  url: ../openapi/assembled-time-off-api-openapi.yml
  type: openapi
workflows:
- workflowId: cancel-time-off
  summary: Find a time-off request by status and cancel it when one is present.
  description: >-
    Lists time-off requests for an agent in a given status and cancels the first
    match, or ends without action when the list is empty.
  inputs:
    type: object
    required:
    - apiKey
    - status
    properties:
      apiKey:
        type: string
        description: Assembled API key (sk_live_...) used as the HTTP Basic Auth username.
      status:
        type: string
        description: Status to filter requests by (pending, approved, denied, cancelled).
      agentId:
        type: string
        description: Optional Assembled agent ID to scope the request list.
  steps:
  - stepId: findRequests
    description: >-
      List time-off requests for the agent in the supplied status, returning the
      first matching request id.
    operationId: listTimeOffRequests
    parameters:
    - name: status
      in: query
      value: $inputs.status
    - name: agent_id
      in: query
      value: $inputs.agentId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      requestId: $response.body#/requests/0/id
    onSuccess:
    - name: hasRequest
      type: goto
      stepId: cancelRequest
      criteria:
      - context: $response.body
        condition: $.requests.length > 0
        type: jsonpath
    - name: noRequest
      type: end
      criteria:
      - context: $response.body
        condition: $.requests.length == 0
        type: jsonpath
  - stepId: cancelRequest
    description: >-
      Cancel the first matching time-off request found in the prior step.
    operationId: cancelTimeOffRequest
    parameters:
    - name: id
      in: path
      value: $steps.findRequests.outputs.requestId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      cancelledRequestId: $steps.findRequests.outputs.requestId
  outputs:
    requestId: $steps.findRequests.outputs.requestId
    cancelledRequestId: $steps.cancelRequest.outputs.cancelledRequestId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/assembled-cancel-time-off-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.