Cross-Provider Workflow

Asana Project Status Digest to Email

Version 1.0.0

Pull tasks for an Asana project, then email a status digest via SendGrid.

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

Providers Orchestrated

asana sendgrid

Workflows

status-digest-to-email
Fetch Asana project tasks, then email a status digest.
Retrieves the tasks for an Asana project and emails a digest of the first task to a stakeholder through SendGrid.
2 steps inputs: projectId, recipientEmail outputs: emailStatus, firstTaskName
1
fetch-tasks
$sourceDescriptions.asanaTasksApi.getTasksForProject
Fetch the tasks for the Asana project.
2
email-digest
$sourceDescriptions.sendgridApi.SendMail
Email a project status digest via SendGrid.

Source API Descriptions

Arazzo Workflow Specification

prod-status-digest-to-email-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: Asana Project Status Digest to Email
  summary: Pull tasks for an Asana project, then email a status digest via SendGrid.
  description: >-
    A productivity and internal-ops workflow that retrieves the current tasks
    for an Asana project and emails a status digest to a stakeholder through
    SendGrid. Demonstrates chaining a task-management provider and a
    communications provider in a single Arazzo workflow.
  version: 1.0.0
sourceDescriptions:
  - name: asanaTasksApi
    url: https://raw.githubusercontent.com/api-evangelist/asana/refs/heads/main/openapi/asana-tasks-api-openapi.yml
    type: openapi
  - name: sendgridApi
    url: https://raw.githubusercontent.com/api-evangelist/sendgrid/refs/heads/main/openapi/tsg_mail_v3.yaml
    type: openapi
workflows:
  - workflowId: status-digest-to-email
    summary: Fetch Asana project tasks, then email a status digest.
    description: >-
      Retrieves the tasks for an Asana project and emails a digest of the first
      task to a stakeholder through SendGrid.
    inputs:
      type: object
      properties:
        projectId:
          type: string
        recipientEmail:
          type: string
    steps:
      - stepId: fetch-tasks
        description: Fetch the tasks for the Asana project.
        operationId: $sourceDescriptions.asanaTasksApi.getTasksForProject
        parameters:
          - name: project_gid
            in: path
            value: $inputs.projectId
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          firstTaskName: $response.body#/data/0/name
      - stepId: email-digest
        description: Email a project status digest via SendGrid.
        operationId: $sourceDescriptions.sendgridApi.SendMail
        requestBody:
          contentType: application/json
          payload:
            personalizations:
              - to:
                  - email: $inputs.recipientEmail
                subject: Project status digest
            from:
              email: [email protected]
            content:
              - type: text/plain
                value: $steps.fetch-tasks.outputs.firstTaskName
        successCriteria:
          - condition: $statusCode == 202
        outputs:
          emailStatus: $statusCode
    outputs:
      firstTaskName: $steps.fetch-tasks.outputs.firstTaskName
      emailStatus: $steps.email-digest.outputs.emailStatus