Cross-Provider Workflow

Civitai Image Generation to Notion Catalog

Version 1.0.0

Generate an image with Civitai, then catalog the job in a Notion page.

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

Providers Orchestrated

civitai notion

Workflows

generate-and-catalog
Submit a Civitai image workflow and catalog it in Notion.
Submits an image-generation step to Civitai, captures the workflow id and status, then creates a Notion page cataloging the generation job.
2 steps inputs: databaseId, engine, prompt outputs: pageId, workflowId
1
generate-image
$sourceDescriptions.civitaiApi.submitWorkflow
Submit an image-generation workflow to Civitai orchestration.
2
catalog-in-notion
$sourceDescriptions.notionApi.createPage
Create a Notion page cataloging the generation job.

Source API Descriptions

Arazzo Workflow Specification

ai-civitai-image-to-notion-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: Civitai Image Generation to Notion Catalog
  summary: Generate an image with Civitai, then catalog the job in a Notion page.
  description: >-
    A cross-provider AI enrichment chain that submits an image-generation
    workflow to Civitai and records the resulting workflow in a Notion database
    so generated assets can be tracked. Demonstrates cataloging generative-media
    jobs in a knowledge base across two providers in one Arazzo workflow.
  version: 1.0.0
sourceDescriptions:
  - name: civitaiApi
    url: https://raw.githubusercontent.com/api-evangelist/civitai/refs/heads/main/openapi/civitai-orchestration-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: generate-and-catalog
    summary: Submit a Civitai image workflow and catalog it in Notion.
    description: >-
      Submits an image-generation step to Civitai, captures the workflow id and
      status, then creates a Notion page cataloging the generation job.
    inputs:
      type: object
      properties:
        prompt:
          type: string
        engine:
          type: string
        databaseId:
          type: string
    steps:
      - stepId: generate-image
        description: Submit an image-generation workflow to Civitai orchestration.
        operationId: $sourceDescriptions.civitaiApi.submitWorkflow
        requestBody:
          contentType: application/json
          payload:
            steps:
              - $type: imageGen
                input:
                  engine: $inputs.engine
                  prompt: $inputs.prompt
                  width: 1024
                  height: 1024
        successCriteria:
          - condition: $statusCode == 202
        outputs:
          workflowId: $response.body#/id
          workflowStatus: $response.body#/status
      - stepId: catalog-in-notion
        description: Create a Notion page cataloging the generation job.
        operationId: $sourceDescriptions.notionApi.createPage
        requestBody:
          contentType: application/json
          payload:
            parent:
              database_id: $inputs.databaseId
            properties:
              Name:
                title:
                  - text:
                      content: "Image job $steps.generate-image.outputs.workflowId — $inputs.prompt"
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          pageId: $response.body#/id
    outputs:
      workflowId: $steps.generate-image.outputs.workflowId
      pageId: $steps.catalog-in-notion.outputs.pageId