> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/customize-and-configure-cortex-xsoar/playbooks/playbook-task-fields/communication-tasks/create-an-ask-task.md).

# Create an Ask Task

The conditional ask task is a single question survey, the answer to which determines how a playbook proceeds. If you send the survey to multiple users, the first answer received is used, and subsequent responses are disregarded.

When creating an ask task, there are several tabs where you can enter values. Some configurations are required, and some are optional. Click each tab for detailed information.

If the playbook was installed from a content pack, duplicate or detach the playbook, before creating an ask task.

If you want to view the link generated by the task in the Incident's Context Data, you must first make the links visible., By default, these links are hidden. To make the links visible, add the **`comm.ask.linktocontext.enabled`** [server configuration](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/reference/server-configurations/modify-server-configurations.md) set to **`true`** and the **`comm.datacollection.linktocontext.enabled`** [server configuration](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/reference/server-configurations/modify-server-configurations.md) set to **`true`** . The links appear under **Ask.Links** in the Context Data.

1. In a playbook, click **+** (Create task).
2. Select the **Conditional** option.
3. Enter a meaningful name for the task, which corresponds to the data that you are collecting. For example, **`Was the Incident escalated?`**
4. Select the **Ask** option.

   ![ask-task.png](/files/6adJ9U2582K4s6Rz3S8f)
5. (Optional) To customize the look and feel of your email message, click **Preview**.

   You can change the color scheme and how text in the message header and body appear.

   ![playbook-comm-task-display-customizatin.png](/files/sytSGAPa4ehMuEk89JpS)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/customize-and-configure-cortex-xsoar/playbooks/playbook-task-fields/communication-tasks/create-an-ask-task.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
