Cross-Provider Workflow

Provision Tracker and Update Positions with Slack Notice

Version 1.0.0

Create an Amazon Location tracker, push positions, then announce it in Slack.

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

Providers Orchestrated

amazon-location-service slack

Workflows

create-tracker-update-slack
Create a tracker, push positions, and announce in Slack.
Creates an Amazon Location tracker, uploads an initial device position, and posts an announcement to Slack via chat.postMessage.
3 steps inputs: channel, deviceId, latitude, longitude, trackerName outputs: createStatus, messageTs
1
create-tracker
$sourceDescriptions.amazonLocationApi.CreateTracker
Create a new Amazon Location tracker resource.
2
update-position
$sourceDescriptions.amazonLocationApi.BatchUpdateDevicePosition
Upload an initial device position to the new tracker.
3
announce-slack
$sourceDescriptions.slackChatApi.postChatPostmessage
Announce the new tracker in the Slack channel.

Source API Descriptions

Arazzo Workflow Specification

geo-amazon-location-create-tracker-slack.yml Raw ↑
arazzo: 1.0.1
info:
  title: Provision Tracker and Update Positions with Slack Notice
  summary: Create an Amazon Location tracker, push positions, then announce it in Slack.
  description: >-
    A logistics provisioning workflow that creates a new Amazon Location Service
    tracker resource, uploads initial device positions to it, and announces the new
    tracker in a Slack channel. Demonstrates orchestrating two Amazon Location
    operations followed by a team messaging provider notification.
  version: 1.0.0
sourceDescriptions:
  - name: amazonLocationApi
    url: https://raw.githubusercontent.com/api-evangelist/amazon-location-service/refs/heads/main/openapi/amazon-location-service-openapi.yml
    type: openapi
  - name: slackChatApi
    url: https://raw.githubusercontent.com/api-evangelist/slack/refs/heads/main/openapi/slack-chat-openapi.yml
    type: openapi
workflows:
  - workflowId: create-tracker-update-slack
    summary: Create a tracker, push positions, and announce in Slack.
    description: >-
      Creates an Amazon Location tracker, uploads an initial device position, and posts
      an announcement to Slack via chat.postMessage.
    inputs:
      type: object
      properties:
        trackerName:
          type: string
        deviceId:
          type: string
        latitude:
          type: number
        longitude:
          type: number
        channel:
          type: string
    steps:
      - stepId: create-tracker
        description: Create a new Amazon Location tracker resource.
        operationId: $sourceDescriptions.amazonLocationApi.CreateTracker
        requestBody:
          contentType: application/json
          payload:
            TrackerName: $inputs.trackerName
            Description: Created by Arazzo logistics workflow.
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          createStatus: $statusCode
      - stepId: update-position
        description: Upload an initial device position to the new tracker.
        operationId: $sourceDescriptions.amazonLocationApi.BatchUpdateDevicePosition
        parameters:
          - name: TrackerName
            in: path
            value: $inputs.trackerName
        requestBody:
          contentType: application/json
          payload:
            Updates:
              - DeviceId: $inputs.deviceId
                Position:
                  - $inputs.longitude
                  - $inputs.latitude
                SampleTime: 2026-06-04T12:00:00Z
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          updateStatus: $statusCode
      - stepId: announce-slack
        description: Announce the new tracker in the Slack channel.
        operationId: $sourceDescriptions.slackChatApi.postChatPostmessage
        requestBody:
          contentType: application/x-www-form-urlencoded
          payload:
            channel: $inputs.channel
            text: A new device tracker was provisioned and seeded with a position.
        successCriteria:
          - condition: $statusCode == 200
          - condition: $response.body#/ok == true
        outputs:
          messageTs: $response.body#/ts
    outputs:
      createStatus: $steps.create-tracker.outputs.createStatus
      messageTs: $steps.announce-slack.outputs.messageTs