Cross-Provider Workflow

Reverse Geocode to Weather Slack Post

Version 1.0.0

Reverse-geocode coordinates, get current weather, then post it to Slack.

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

Providers Orchestrated

positionstack weatherapi slack

Workflows

reverse-geocode-weather-slack
Reverse-geocode coordinates, fetch weather, and post to Slack.
Reverse-geocodes coordinates with positionstack, retrieves current conditions from WeatherAPI, and posts a summary to Slack via chat.postMessage.
3 steps inputs: channel, coordinates outputs: conditions, label, messageTs
1
reverse-geocode
$sourceDescriptions.positionstackApi.reverseGeocode
Convert the coordinates into a human-readable address.
2
get-current-weather
$sourceDescriptions.weatherapiApi.getCurrentWeather
Fetch current conditions for the reverse-geocoded point.
3
post-to-slack
$sourceDescriptions.slackChatApi.postChatPostmessage
Post the address and conditions to the Slack channel.

Source API Descriptions

Arazzo Workflow Specification

geo-positionstack-reverse-weatherapi-slack.yml Raw ↑
arazzo: 1.0.1
info:
  title: Reverse Geocode to Weather Slack Post
  summary: Reverse-geocode coordinates, get current weather, then post it to Slack.
  description: >-
    A geo and weather workflow that converts raw coordinates into a human-readable
    address with positionstack reverse geocoding, fetches the current conditions for
    that point from WeatherAPI, and posts a summary to a Slack channel. Demonstrates
    chaining a reverse-geocoding provider, a weather provider, and a team messaging
    provider.
  version: 1.0.0
sourceDescriptions:
  - name: positionstackApi
    url: https://raw.githubusercontent.com/api-evangelist/positionstack/refs/heads/main/openapi/positionstack-openapi.yml
    type: openapi
  - name: weatherapiApi
    url: https://raw.githubusercontent.com/api-evangelist/weatherapi/refs/heads/main/openapi/weatherapi-openapi-original.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: reverse-geocode-weather-slack
    summary: Reverse-geocode coordinates, fetch weather, and post to Slack.
    description: >-
      Reverse-geocodes coordinates with positionstack, retrieves current conditions
      from WeatherAPI, and posts a summary to Slack via chat.postMessage.
    inputs:
      type: object
      properties:
        coordinates:
          type: string
        channel:
          type: string
    steps:
      - stepId: reverse-geocode
        description: Convert the coordinates into a human-readable address.
        operationId: $sourceDescriptions.positionstackApi.reverseGeocode
        parameters:
          - name: query
            in: query
            value: $inputs.coordinates
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          label: $response.body#/data/0/label
          latitude: $response.body#/data/0/latitude
          longitude: $response.body#/data/0/longitude
      - stepId: get-current-weather
        description: Fetch current conditions for the reverse-geocoded point.
        operationId: $sourceDescriptions.weatherapiApi.getCurrentWeather
        parameters:
          - name: q
            in: query
            value: $inputs.coordinates
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          conditionText: $response.body#/current/condition/text
          tempC: $response.body#/current/temp_c
      - stepId: post-to-slack
        description: Post the address and conditions to the Slack channel.
        operationId: $sourceDescriptions.slackChatApi.postChatPostmessage
        requestBody:
          contentType: application/x-www-form-urlencoded
          payload:
            channel: $inputs.channel
            text: $steps.get-current-weather.outputs.conditionText
        successCriteria:
          - condition: $statusCode == 200
          - condition: $response.body#/ok == true
        outputs:
          messageTs: $response.body#/ts
    outputs:
      label: $steps.reverse-geocode.outputs.label
      conditions: $steps.get-current-weather.outputs.conditionText
      messageTs: $steps.post-to-slack.outputs.messageTs