跳转至

Webhooks(Webhooks(网络钩子))

You can use Data Connection to configure webhooks to connect Foundry to systems and workflows outside of Foundry.

:::callout{theme="neutral"} This section contains information on outbound webhooks (Foundry making requests to another system). If you need to receive inbound webhooks (another system sending requests to Foundry), consider using listeners instead. :::

Each webhook provides a way to make a request to an external system outside of Foundry. For example, you could create a webhook that performs an HTTP request to an external server when a user selects a button in a Foundry application, connecting that application to existing workflows and source systems.

Each webhook is associated with a single source in Data Connection. The source stores the credentials necessary for connecting to the external system. Depending on the type of source the webhook is associated with, certain task types are available for use. For example, when using REST, you can flexibly configure an HTTP call that should be made to an external service.

Webhooks can be configured flexibly to accept specific inputs and capture outputs from external system requests. Additionally, you can set time, concurrency, and rate limits on webhook executions. For detailed configuration options, see the webhooks reference.

Review the following documentation to learn more about webhooks:


中文翻译

Webhooks(网络钩子)

您可以使用 Data Connection(数据连接)来配置 webhooks(网络钩子),从而将 Foundry 与外部系统和流程连接起来。

:::callout{theme="neutral"} 本节包含关于出站 webhooks(Foundry 向其他系统发起请求)的信息。如果您需要接收入站 webhooks(其他系统向 Foundry 发送请求),请考虑使用 listeners(监听器)。 :::

每个 webhook 都提供了一种向 Foundry 外部系统发起请求的方式。例如,您可以创建一个 webhook,当用户在 Foundry 应用程序中点击按钮时,该 webhook 会向外部服务器执行 HTTP 请求,从而将该应用程序与现有工作流和源系统连接起来。

每个 webhook 都与 Data Connection 中的一个 source(源) 相关联。该 source 存储了连接外部系统所需的凭证。根据 webhook 关联的 source 类型,可以使用特定的任务类型。例如,使用 REST(表述性状态转移) 时,您可以灵活配置应向外部服务发起的 HTTP 调用。

Webhooks 可以灵活配置,以接受特定输入并捕获来自外部系统请求的输出。此外,您还可以对 webhook 执行设置时间、并发和速率限制。有关详细的配置选项,请参阅 webhooks reference(webhooks 参考)

请查阅以下文档以了解更多关于 webhooks 的信息: