Cloud Natural Language 用のコネクタ

ワークフロー内の Cloud Natural Language へのアクセスに使用される組み込み関数を定義する Workflows コネクタ。

もっと見る

このコードサンプルを含む詳細なドキュメントについては、以下をご覧ください。

コードサンプル

YAML

# This workflow demonstrates how to use the Cloud Language connector.
# The workflow analyzes some texts and returns "SUCCESS".
# Expected successful output: "SUCCESS"
- init:
    assign:
      - docType: "PLAIN_TEXT"
- analyze_entities:
    call: googleapis.language.v1.documents.analyzeEntities
    args:
      body:
        document:
          type: ${docType}
          language: "en"
          content: "Eiffel Tower"
        encodingType: "UTF8"
- classify_text:
    call: googleapis.language.v1.documents.analyzeSentiment
    args:
      body:
        document:
          type: ${docType}
          language: "en"
          content: "I love workflows!"
        encodingType: "UTF8"
- the_end:
    return: "SUCCESS"

次のステップ

他の Google Cloud プロダクトに関連するコードサンプルの検索およびフィルタ検索を行うには、Google Cloud のサンプルをご覧ください。