如果您需要连接器来简化在工作流中调用和与其他 API(例如 Cloud Run 函数或 Firestore)集成 Google Cloud 的操作,请执行以下操作:
Workflows 发布轻量级的无服务器连接器,这些连接器可用于连接到工作流内的其他 Google Cloud API,以及将工作流与这些 Google Cloud 产品集成。它们会为您处理请求的格式,从而为您处理请求的格式设置并提供方法和参数,这样您就无需了解 Google Cloud API 的详细信息。
例如,您可以创建一个工作流,该工作流使用 Cloud Translation API 连接器在异步批量模式下将文件翻译为其他语言,并将结果保存在 Cloud Storage 存储分区中。或者,您也可以执行一个工作流,以便依次串行运行多个 BigQuery 查询作业。
当文件上传到 Cloud Storage 存储分区时,Cloud Run 函数会触发 Workflows 来执行工作流:使用 Cloud Natural Language API 识别文本;使用 Cloud Vision API 和 Cloud Video Intelligence API 识别图片和视频;并保存和写入 Firestore 中的标记。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-03。"],[[["\u003cp\u003eApplication Integration is ideal for enterprise architects, integration developers, or business analysts needing to connect, map, transform, and integrate data between business systems, offering a visual interface and built-in transformation functions.\u003c/p\u003e\n"],["\u003cp\u003eWorkflows is designed for developers, data engineers, or cloud platform teams to orchestrate services, build applications, automate processes, or implement data and machine learning pipelines, utilizing a defined syntax in YAML or JSON.\u003c/p\u003e\n"],["\u003cp\u003eApplication Integration connectors simplify data interactions with various applications by providing a standard interface for operations like create, read, update, and delete, abstracting away the complexity of application-specific data structures.\u003c/p\u003e\n"],["\u003cp\u003eWorkflows offers lightweight, serverless connectors to facilitate integration with other Google Cloud APIs, streamlining the interaction and simplifying the need to know the complexities of the Google Cloud API being used.\u003c/p\u003e\n"],["\u003cp\u003eApplication Integration and Workflows can be used together to orchestrate applications and services, allowing for actions in third-party systems or connections with custom development, such as initiating a refund process within a business system.\u003c/p\u003e\n"]]],[],null,["# Choose Application Integration or Workflows\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nChoose Application Integration or Workflows\n===========================================\n\nAlthough Application Integration and Workflows\nshare some similar capabilities, they are targeted for different uses, and are\ndelivered differently.\n\nIf you're integrating business systems or implementing a business process,\nconsider using Application Integration. If you're orchestrating\nservices for application development, pipelines, or infrastructure automation,\nconsider using Workflows. You can also use both together; for\nexample, to orchestrate a pipeline that updates an integrated third-party\nbusiness system.\n\nThe following use case-based guidance, examples, and diagrams can help you\nchoose a solution.\n\nUse Application Integration\n---------------------------\n\n**If you are an enterprise architect, integration developer, or business\nanalyst, who needs a way to connect, map, transform, and integrate data between\nbusiness systems like Salesforce, ServiceNow, or a Cloud SQL database:**\n\n- Application Integration is ideal for integrating\n applications that have differing data structures and for exchanging data. It\n provides built-in\n [transformation functions](/application-integration/docs/data-mapping-functions-reference)\n that let you convert the source application data to fit the destination\n application schema.\n\n- Consider using Application Integration for real-time\n business transactions, or processing business transactions in small batches. Or,\n if you have existing Google Cloud applications and are facing\n connectivity challenges as the result of a large number of SaaS applications.\n\n- Application Integration offers a\n [drag-and-drop visual interface](/application-integration/docs/integrations-ui-layout)\n that lets you create an entire integration flow with little or no code.\n Connectors also allow you to call and perform operations on various entities.\n\n**If you need a connector that can be used to integrate and map\ndata between a Google Cloud service such as BigQuery and a\nthird-party service such as ServiceNow:**\n\n- An Application Integration connector hides the complexity of application-specific data structures and protocols. It provides a standard interface to perform create, read, update, and delete operations on application data.\n- For example, a Spanner connection lets you insert, read, update and delete rows in a Spanner table and use the resulting output in an integration. Or, the Oracle DB connector lets you connect to an Oracle database instance and perform the supported database operations.\n- See the list of [supported connectors](/integration-connectors/docs/connector-reference-overview).\n\n### Example: Using Application Integration to map and extract data\n\nThe following diagram shows an example of using Application Integration\nto map and extract data from an external system:\n\nA Salesforce trigger is subscribed to the Salesforce opportunity channel. Data\nchanges to the Salesforce opportunity invokes\nApplication Integration which extracts the status of the\nSalesforce opportunity. If the status is closed, the integration extracts the\nopportunity details and writes the data to a Cloud SQL instance using\na connector. If there is a data change, but the status remains open, the\nintegration sends a message to a Pub/Sub topic using a connector.\n\nUse Workflows\n-------------\n\n**If you are a developer, data engineer, or cloud platform team, who needs a\nway to orchestrate services together to build applications, process automations,\nor implement data and machine learning pipelines:**\n\n- Workflows is ideal if you want to separate the logic that\n sequences and links your services together from your core business logic. A\n workflow can perform a sequence of operations across multiple systems, waiting\n for all operations to complete, and it can be event-driven.\n\n- Consider using Workflows if you want to write less code to\n specify your application infrastructure and execute loosely-coupled services in\n an order that you define: a *workflow*. These workflows can combine the services\n of any HTTP-based API, making service dependencies explicit and observable\n end-to-end.\n\n- A workflow consists of a series of steps described using the\n Workflows [syntax](/workflows/docs/reference/syntax),\n and can be written in either YAML or JSON. Workflows\n [standard library](/workflows/docs/reference/stdlib/overview) functions\n and built-in environment variables allow you to easily construct arguments and\n process responses. Connectors can be used to interact with other\n Google Cloud products.\n\n**If you need a connector that can be used to simplify calling and integrating\nwith other Google Cloud APIs such as Cloud Run functions or\nFirestore within a workflow:**\n\n- Workflows publishes lightweight, serverless connectors that can be used to connect to other Google Cloud APIs within a workflow, and to integrate your workflows with those Google Cloud products. They simplify calling services because they handle the formatting of requests for you, and provide methods and arguments so that you don't need to know the details of a Google Cloud API.\n- For example, you can create a workflow that use the Cloud Translation API connector to translate files to other languages in asynchronous batch mode and save the results in a Cloud Storage bucket. Or, you can execute a workflow that runs multiple BigQuery query jobs serially, one after the other.\n- Supported connectors include a [connector to Application Integration](/workflows/docs/reference/googleapis/integrations/Overview) so that you can use both products together; in this document, see [Use Application Integration and Workflows together](#use-both). For example, you can create a workflow that triggers and waits for an integration, or any other operation such as updating a Salesforce instance.\n- See the list of [supported connectors](/workflows/docs/reference/googleapis).\n\n| **Note:** To deploy ETL/ELT data pipelines, we recommend using [Cloud Data Fusion](/data-fusion).\n\n### Example: Using Workflows for lightweight service orchestration\n\nThe following diagram shows an example of using Workflows to\norchestrate services:\n\nWhen a file is uploaded to a Cloud Storage bucket, a\nCloud Run function triggers Workflows to execute a\nworkflow: text is recognized using the Cloud Natural Language API; images and videos are\nrecognized using the Cloud Vision API and Cloud Video Intelligence API; and tags\nare saved and written to Firestore.\n\nUse Application Integration and Workflows together\n--------------------------------------------------\n\nYou can use Application Integration and\nWorkflows together to orchestrate applications and services.\nWorkflows supports a\n[connector to Application Integration](/workflows/docs/reference/googleapis/integrations/Overview)\nso that you can use both products together. For example, you can perform an\naction in a third-party business system from Workflows using\nApplication Integration. Or, you can connect with custom\ndevelopment from Application Integration using\nWorkflows.\n\n### Example: Using Application Integration and Workflows to perform an action in a third-party business system\n\nIn the following diagram, a refund for digital content is requested through a\nmobile app. Workflows removes the content and\ninitiates a refund process in Application Integration,\nusing heuristic methods and potentially human approval. Based on the result from\nApplication Integration, Workflows either\ngrants a refund or restores the content.\n\nWhat's next\n-----------\n\n- [Learn more about Application Integration](/application-integration/docs/overview).\n- [Learn more about Workflows](/workflows/docs/overview)."]]