---
description: 学习如何使用事件触发对话流意图。
title: 对话流: 事件
image: https://assets1-proxy.respond.io/api/v1/image/assets%2F11f7a662b80a4675973850b067c01fa5%2F3f43c48b21b24f4e8b02b100c0c8fab0
---

[新的🔥 抢先尝试 WhatsApp Business Calling API（开放测试版）！![arrow-icon](https://assets1-proxy.respond.io/api/v1/image/assets%2F11f7a662b80a4675973850b067c01fa5%2Fe43213a7a9314673bd8d2060c25f9b87)](/zh/whatsapp-business-calling-api)

帮助我... ⌘ 

1. [All Collections >](/zh/help)
2. [ 集成 >](/zh/help/integrations)
3. [ 对话流 >](/zh/help/dialogflow)
4. 对话流: 事件

# 对话流: 事件

![Avatar](https://assets2-proxy.respond.io/ph8r57dk1q9w/4IHLTWbmWN0uXBc5x4jthC/59252fcdb357304ce07be76043047b7a/Susan_Swier_Avatar.svg)

Susan Swier

· 04 Apr 2025

小于一分钟

使用事件触发 Dialogflow 意图。

除了用户输入之外，事件也用于触发意图。 当事件发生时，任何具有“事件”部分下列出的事件名称的意图都将被触发。

![](https://assets2-proxy.respond.io/ph8r57dk1q9w/1qpqHKvp9ecJjt3mn6pdJ5/bd470af98140b371c3cda358d7256b6e/dialogflow-events-1.png?fm=avif&w=1000) 

一个很好的例子是默认的 `WELCOME` 事件，它已经内置在 Dialogflow 中。 每当新用户开始与机器人聊天时，就会触发此事件。

## 参数 URL 

当用户从参数 URL 到达时，任何包含 `REF_[PARAM]` 或 `REF_START_[PARAM]` 事件的意图都会被触发。

**例如：** m.me/respondio?ref=\[PARAM\]。

如果您希望自定义参数触发 Dialogflow 意图，请确保该参数在意图'的事件配置上具有 `REF_` 的前缀。 例如： `REF_PARAM`

![](https://assets2-proxy.respond.io/ph8r57dk1q9w/pItfG0apbxdYCp6tcR849/b33977b572799396f41ff0f66a3d1b07/dialogflow-events-2.png?fm=avif&w=1000) 

参考上面的例子，如果你想从 m.me/respondio?ref=medium 触发一个意图，请将 `REF_MEDIUM` 添加到意图'的事件配置中。

> 请记住， `REF` 前缀对于 `WELCOME` 事件不是必需的，因为该事件是 Dialogflow 内置的默认事件。

分享这篇文章

[![Telegram](https://assets1-proxy.respond.io/api/v1/image/assets%2F11f7a662b80a4675973850b067c01fa5%2F44daca77a4844f0c8fd29040ddeba057?width=22)](https://api.whatsapp.com/send?text=https://respond.io/help/dialogflow/dialogflow-events)[![Facebook](https://assets1-proxy.respond.io/api/v1/image/assets/11f7a662b80a4675973850b067c01fa5/fff57eeb01160bc604392f519b4f3461ca16f0fa1b6a587b20b142cdf1ad0ba7?placeholderIfAbsent=true&width=22)](https://www.facebook.com/sharer/sharer.php?u=https://respond.io/help/dialogflow/dialogflow-events)[![Linkedin](https://assets1-proxy.respond.io/api/v1/image/assets/11f7a662b80a4675973850b067c01fa5/7aaf8d87b5410844d83e06a4ed663e4f551b8c5ef51dbb20a8ff064a1eed9a0f?placeholderIfAbsent=true&width=22)](https://www.linkedin.com/sharing/share-offsite/?url=https://respond.io/help/dialogflow/dialogflow-events)[![Twitter](https://assets1-proxy.respond.io/api/v1/image/assets%2F11f7a662b80a4675973850b067c01fa5%2F4e03e02422a94e8eab9b8b41457c2371?width=22)](http://twitter.com/share?url=https://respond.io/help/dialogflow/dialogflow-events)

## 

相关文章 :woman\_technologist：

* [Dialogflow：履行 Webhook 请求学习如何使用发货Webhook请求将数据从respond.io传递到Dialogflow。 ](/zh/help/dialogflow/dialogflow-fulfillment-webhook-requests)
* [Dialogflow：自定义载荷了解 respond.io 上支持的自定义载荷。 ](/zh/help/dialogflow/dialogflow-custom-payloads)
* [对话流程：响应模板学习如何使用响应模板向联系人发送回复。 ](/zh/help/dialogflow/dialogflow-response-templates)
* [对话流: 参数学习如何在多种用例中使用自定义 Dialogflow 参数。 ](/zh/help/dialogflow/dialogflow-parameters)
* [对话流：管理意图通过配置意图来个性化聊天机器人反应。 ](/zh/help/dialogflow/dialogflow-managing-intents)

找不到您正在寻找的东西？ 🔎

[联系客服支持](/zh/contact-us)

2025-12-05T04:06:10.987Z

help

```json
[{"@context":"https://schema.org","@type":"TechArticle","articleBody":"学习如何使用事件触发对话流意图。","author":{"@type":"Person","image":"https://assets2-proxy.respond.io/ph8r57dk1q9w/4IHLTWbmWN0uXBc5x4jthC/59252fcdb357304ce07be76043047b7a/Susan_Swier_Avatar.svg","name":"Susan Swier","url":"https://respond.io/zh/author/susan-swier"},"dateCreated":"2023-02-28T04:17:12.000Z","dateModified":"2025-04-04T09:55:38.329Z","datePublished":"2023-02-28T04:17:12.000Z","headline":"对话流: 事件","image":"https://assets2-proxy.respond.io/ph8r57dk1q9w/1qpqHKvp9ecJjt3mn6pdJ5/bd470af98140b371c3cda358d7256b6e/dialogflow-events-1.png","mainEntityOfPage":"https://respond.io/zh/help/dialogflow","publisher":{"@type":"Organization","logo":"https://respond.io/favicon/favicon.svg","name":"respondio"},"thumbnailUrl":"https://assets2-proxy.respond.io/ph8r57dk1q9w/1qpqHKvp9ecJjt3mn6pdJ5/bd470af98140b371c3cda358d7256b6e/dialogflow-events-1.png","url":"https://respond.io/zh/help/dialogflow/dialogflow-events"},{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Help","item":"https://respond.io/zh/help","position":1},{"@type":"ListItem","name":"集成","item":"https://respond.io/zh/help/integrations","position":2},{"@type":"ListItem","name":"对话流","item":"https://respond.io/zh/help/dialogflow","position":3},{"@type":"ListItem","name":"对话流: 事件","item":"https://respond.io/zh/help/dialogflow/dialogflow-events","position":4}]}]
```
