My first workflow

Stay organized with collections Save and categorize content based on your preferences.

A basic workflow

Code sample

YAML

- getCurrentTime:
    call: http.get
    args:
      url: https://us-central1-workflowsample.cloudfunctions.net/datetime
    result: currentTime
- readWikipedia:
    call: http.get
    args:
      url: https://en.wikipedia.org/w/api.php
      query:
        action: opensearch
        search: ${currentTime.body.dayOfTheWeek}
    result: wikiResult
- returnResult:
    return: ${wikiResult.body[1]}

What's next

To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.