# 对话型应用

对话型应用采用一问一答模式与用户持续对话。对话型应用支持以下能力（请确认应用编排时有开启以下功能）：

* 对话前填写的变量。
* 对话的创建、置顶、删除。
* 对话开场白。
* 下一步问题建议。
* 语音转文字。
* 引用和归属

### 对话前填写的变量

如你在应用编排时有设置变量的填写要求，则在对话前需要按提示填写信息才可进入对话窗口：

<figure><img src="https://1288284732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCdDIVDY6AtAz028MFT4d%2Fuploads%2Fgit-blob-640e5aa1134fd7dafff8aa1dcf330cd413bc9ef8%2Fimage%20(63).png?alt=media" alt="" width="375"><figcaption></figcaption></figure>

填写必要内容，点击 “开始对话” 按钮，开始聊天。

<figure><img src="https://1288284732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCdDIVDY6AtAz028MFT4d%2Fuploads%2Fgit-blob-c78be695c3499dcb3f8862e211d2dd38c0302c55%2Fimage%20(94).png?alt=media" alt=""><figcaption></figcaption></figure>

移动到 AI 的回答上，可以复制会话内容，给回答 “赞” 和 “踩”。

<figure><img src="https://1288284732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCdDIVDY6AtAz028MFT4d%2Fuploads%2Fgit-blob-b06128fd70471643324133fcfaa9b06de006dc25%2Fimage%20(26).png?alt=media" alt=""><figcaption></figcaption></figure>

### 对话的创建、置顶和删除

点击 “新对话” 按钮开始一个新的对话。移动到一个会话上，可以对会话进行 “置顶” 和 “删除” 操作。

<figure><img src="https://1288284732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCdDIVDY6AtAz028MFT4d%2Fuploads%2Fgit-blob-c0c72136c844ba7a9efb78c9a452f4489ef2cce4%2Fimage%20(47).png?alt=media" alt="" width="242"><figcaption></figcaption></figure>

### 对话开场白

若在应用编排时开启了「对话开场白」功能，则在创建一个新对话时 AI 应用会自动发起第一句对话：

<figure><img src="https://1288284732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCdDIVDY6AtAz028MFT4d%2Fuploads%2Fgit-blob-c16201b59b02bdf6883661b1133db739ec55bef1%2Fimage%20(51).png?alt=media" alt=""><figcaption></figcaption></figure>

### 下一步问题建议

若在应用编排时开启了「下一步问题建议」功能，则在对话后系统自动生成 3 个相关问题建议：

<figure><img src="https://1288284732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCdDIVDY6AtAz028MFT4d%2Fuploads%2Fgit-blob-0ca666dba828d0e8aa11693c81746a386c2cd59a%2Fimage%20(77).png?alt=media" alt=""><figcaption></figcaption></figure>

### 语音转文字

若在应用编排时开启了「语音转文字」功能，则在 Web 应用端的输入框看到语音输入的图标，点击图标即可语音输入转成文字：

*请注意确保你使用的设备环境已经授权使用麦克风。*

<figure><img src="https://1288284732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCdDIVDY6AtAz028MFT4d%2Fuploads%2Fgit-blob-a06e6bc8fcea6f91d5f0066dffa4b9316e9b999a%2Fimage%20(79).png?alt=media" alt="" width="375"><figcaption></figcaption></figure>

### 引用与归属

开启该功能后，当 LLM 回复问题来自知识库的内容时，可以在回复内容下面查看到具体的引用段落信息，包括原始分段文本、分段序号、匹配度等。

详细说明请参考[《引用与归属》](https://docs.dify.ai/v/zh-hans/guides/knowledge-base/retrieval-test-and-citation#id-2-yin-yong-yu-gui-shu)。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://legacy-docs.dify.ai/zh-hans/guides/application-publishing/launch-your-webapp-quickly/conversation-application.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
