# Ask a question

## 什么是Ask a question?

Ask a question代表由商家端主动发起的提问，并且这个组件会等待用户回复信息，再对回复的内容进行后续的执行。

## Ask a question类型

* ### Text（文字形式）
  * 以文字形式呈现的问题。当用户回复了信息之后，可以把用户回复的信息储存为一个变量，用于后续对客户的回复。
  * *举例：您可以询问客户的姓名，然后把客户回复的姓名保存到客户信息中。在后续跟客户聊天时，再把这个姓名插入到聊天内容中。*

<figure><img src="/files/I7E3UvxVbm180JfEoqlK" alt=""><figcaption></figcaption></figure>

* ### Button：快速回复按钮（最多支持设置三个）
  * 您可以在询问中提示，可以给客户几个选项进行选择，客户点击选项后会自动的回复该选项，从而可以根据客户的选择进行不同的路由。
  * *举例：您可以问客户是想咨询价格还是产品，如果客户回复价格，自动给客户发一个报价文档。如果客户点击产品，给客户自动发送一个产品介绍。*

<figure><img src="/files/TFdaFJ0FMBuoWazXVxlI" alt=""><figcaption></figcaption></figure>

* ### List：菜单栏
  * 最多可以设置10个选项回复。适合企业想进行快速回复，但是快速回复按钮又受限的场景。也可以对用户的问题和需求做进一步的细分和回复。

<figure><img src="/files/6tnqlvTDVYmAiLcQE6V0" alt=""><figcaption></figcaption></figure>

## 其他相关设置

### 设置仅收集一次用户回复

操作指引：\
登录YCloud后台 > Chatbot > Flow > Ask a question (选择List/button格式）> 打开Limit user to anwser once only按钮

当开启后，Chatbot只会收集一次用户在当前问题的回复。用户无法在一个问题里选择两次不同的选项，Flow会按照用户第一次选择的选项继续进行。

<figure><img src="/files/AY9Ibwk6C35FwDuwh1dQ" alt=""><figcaption></figcaption></figure>

### 在List message上添加描述

操作指引：\
登录YCloud后台 > Chatbot > Flow > Ask a question > 选择List格式 > 点击Add description添加描述

{% hint style="info" %}
请注意：描述限制在72个字符以内
{% endhint %}

<figure><img src="/files/jkxmWaeHEnX18ANppPGC" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/PfexpF2nkaAN1K8eBku3" alt=""><figcaption><p>在List按钮下添加描述</p></figcaption></figure>

<figure><img src="/files/yHuNQi29Jxo7DBICda2N" alt=""><figcaption><p>最终展示效果</p></figcaption></figure>


---

# 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://helpdocs.ycloud.com/help-center/zh/chatbot/chatbot-components/ask-a-question.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.
