Cross-Provider Workflow

Mindee Document Classification to Notion Page

Version 1.0.0

Classify a document with Mindee, then log the result in a Notion page.

1 workflow 2 source APIs 2 providers
View Spec View on GitHub ArazzoWorkflowsCross-Provider

Providers Orchestrated

mindee notion

Workflows

classify-and-log
Classify a document with Mindee and log it in Notion.
Enqueues a document for classification with Mindee, captures the returned job identifier, and creates a Notion page recording the classification job.
2 steps inputs: databaseId, documentUrl, modelId outputs: jobId, pageId
1
classify-document
$sourceDescriptions.mindeeApi.Enqueue_Classification_Product_Inference_v2_products_classification_enqueue_post
Enqueue the document for classification with Mindee.
2
log-in-notion
$sourceDescriptions.notionApi.createPage
Create a Notion page recording the classification job.

Source API Descriptions

Arazzo Workflow Specification

ai-mindee-classify-to-notion-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: Mindee Document Classification to Notion Page
  summary: Classify a document with Mindee, then log the result in a Notion page.
  description: >-
    A cross-provider AI enrichment chain that enqueues a document for
    classification with Mindee and records the resulting classification job in a
    Notion database page. Demonstrates routing document-intake metadata into a
    knowledge base across two providers in one Arazzo workflow.
  version: 1.0.0
sourceDescriptions:
  - name: mindeeApi
    url: https://raw.githubusercontent.com/api-evangelist/mindee/refs/heads/main/openapi/mindee-classification-api-openapi.yml
    type: openapi
  - name: notionApi
    url: https://raw.githubusercontent.com/api-evangelist/notion/refs/heads/main/openapi/notion-openapi.yml
    type: openapi
workflows:
  - workflowId: classify-and-log
    summary: Classify a document with Mindee and log it in Notion.
    description: >-
      Enqueues a document for classification with Mindee, captures the returned
      job identifier, and creates a Notion page recording the classification job.
    inputs:
      type: object
      properties:
        modelId:
          type: string
        documentUrl:
          type: string
        databaseId:
          type: string
    steps:
      - stepId: classify-document
        description: Enqueue the document for classification with Mindee.
        operationId: $sourceDescriptions.mindeeApi.Enqueue_Classification_Product_Inference_v2_products_classification_enqueue_post
        requestBody:
          contentType: application/json
          payload:
            model_id: $inputs.modelId
            url: $inputs.documentUrl
        successCriteria:
          - condition: $statusCode == 202
        outputs:
          jobId: $response.body#/job/id
          jobStatus: $response.body#/job/status
      - stepId: log-in-notion
        description: Create a Notion page recording the classification job.
        operationId: $sourceDescriptions.notionApi.createPage
        requestBody:
          contentType: application/json
          payload:
            parent:
              database_id: $inputs.databaseId
            properties:
              Name:
                title:
                  - text:
                      content: "Classification job $steps.classify-document.outputs.jobId"
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          pageId: $response.body#/id
    outputs:
      jobId: $steps.classify-document.outputs.jobId
      pageId: $steps.log-in-notion.outputs.pageId