> For the complete documentation index, see [llms.txt](https://docs.phocassoftware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.phocassoftware.com/workspaces/ask-questions.md).

# Ask questions

Ask questions about your data using text or voice, explore your favorites, and refine your analysis with follow-up questions.

### Type a question

Enter a question in the chat box or select one of the suggested prompts, then press **Enter** or click **Send**.

<div align="left"><figure><img src="https://2113001789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOLQsTln9gHNAPToYldL%2Fuploads%2FTEKDGY6IHzTtj444rAyY%2Fimage.png?alt=media&amp;token=92bad753-e5ef-4319-999d-39232d337afc" alt="" width="563"><figcaption></figcaption></figure></div>

### Use voice input

Ask questions using your voice instead of typing. Workspaces converts your speech into text so you can review and edit it before submitting your question.

1. In the chat box, click the **microphone** icon.<br>

   <div align="left"><figure><img src="https://2113001789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOLQsTln9gHNAPToYldL%2Fuploads%2FUOCLJsoUrnyH0S330uGG%2Fimage.png?alt=media&amp;token=95aaf4ed-036c-467d-b729-e43e50ca8ade" alt="" width="563"><figcaption></figcaption></figure></div>
2. If your browser asks for permission to use your microphone, allow access.
3. Speak your question. Your words appear as text while you speak.
4. Click the red **Stop recording** button when you've finished.
5. Review the text and make any corrections, then press **Enter** or click **Send** to submit your question.

For more accurate results, speak clearly and check the transcription before submitting.

### Ask questions about a favorite

Reference a favorite from **Analytics** or **Analytics (Classic)** to explore its data in Workspaces. Phocas runs the favorite and uses its results as context for your question and further analysis.

1. In the chat box, type **@** to display a list of your favorites.<br>

   <div align="left"><figure><img src="https://2113001789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOLQsTln9gHNAPToYldL%2Fuploads%2FZpVlH6HAJgPOjVVzm3Qh%2Fimage.png?alt=media&amp;token=61083a80-ab87-472b-b03c-98585272bb5a" alt="" width="258"><figcaption></figcaption></figure></div>
2. Select a favorite from the list. It's added to your question.
3. Type your question, then press **Enter** or click **Send**.

You can also reference a favorite at any point in an existing conversation to bring its data into your analysis and continue asking questions.

<div align="left"><figure><img src="https://2113001789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOLQsTln9gHNAPToYldL%2Fuploads%2FTDipfnjnDohwnK0Fz3DE%2Fimage.png?alt=media&amp;token=23285fa2-2ced-4643-8eef-c467e3655529" alt="" width="563"><figcaption></figcaption></figure></div>

### Review the response

As Phocas generates a response, you'll see the steps it takes to answer your question, including how it gathers and analyzes information.

<div align="left"><figure><img src="https://2113001789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOLQsTln9gHNAPToYldL%2Fuploads%2FCB0BW2yB0AFby1rfworH%2Fimage.png?alt=media&amp;token=4b850858-4070-4a9d-bf63-37cf81150a2e" alt="" width="563"><figcaption></figcaption></figure></div>

When Phocas retrieves data, the response includes a written summary of the findings and one or more grids containing the underlying data.

<div align="left"><figure><img src="https://2113001789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOLQsTln9gHNAPToYldL%2Fuploads%2FMGUDrS036osr4aFpk1jA%2Fimage.png?alt=media&amp;token=5d46a81b-5ce5-4086-8026-5f1718d2a1c4" alt="" width="563"><figcaption></figcaption></figure></div>

It also includes a confidence status and information about where the data comes from.

<figure><img src="https://2113001789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOLQsTln9gHNAPToYldL%2Fuploads%2FZtvBN5szKcyQsCod9s2A%2Fimage.png?alt=media&amp;token=cb74dc43-839d-4628-a97c-d159d020a1cb" alt=""><figcaption></figcaption></figure>

See [Work with results](https://docs.phocassoftware.com/workspaces/work-with-results?utm_source=chatgpt.com) to learn how to explore and use the information in a response.

### Continue the conversation

Type or speak follow-up questions to refine your analysis. Switch between the two methods at any time.

Continue in the open chat or open a previous chat from the **My chats** panel. You don't need to repeat all the details in each question. Phocas uses the previous conversation as context, so you can progressively refine your analysis.

### Examples

{% tabs %}
{% tab title="Example: Analyze sales performance" %}

#### Use a prompt

Click the prompt under the chat box: *Summarize my top performing products this quarter*.

Workspaces analyzes the relevant sales data, provides a summary, and displays a supporting grid.

<figure><img src="https://900295827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7pj8v25BOyqZTdG5mdD1%2Fuploads%2FOpxj4NjYabMaKaEyvkK5%2Fimage.png?alt=media&#x26;token=b2e71630-7077-4bea-8665-223fb3432cd8" alt=""><figcaption></figcaption></figure>

#### Ask follow-up questions

After reviewing the product summary, continue with the chat to drill into the product data.

Ask:

* *Which products are growing fastest?*

<div align="left"><figure><img src="https://900295827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7pj8v25BOyqZTdG5mdD1%2Fuploads%2FOxQZcAqwNOejNacYcM57%2Fimage.png?alt=media&#x26;token=66c5e428-8ea9-482b-a216-681239f9fbb2" alt=""><figcaption></figcaption></figure></div>

* *Compare those products against last quarter.*

<div align="left"><figure><img src="https://900295827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7pj8v25BOyqZTdG5mdD1%2Fuploads%2Fm5Xc38dAJ7aYFmQ7RSeg%2Fimage.png?alt=media&#x26;token=2d74c36c-836b-45b6-9815-859be065eb2a" alt=""><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Example: Investigate a sales rep" %}

#### Ask your own question

Ask: *Tell me about \[insert sales rep name]*.

Although the question is broad, Workspaces attempts to identify the person and gather relevant information, such as:

* Performance metrics
* Top products
* Related sales activity
* Comparative insights

The response might include multiple grids and a summary of findings.

<figure><img src="https://900295827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7pj8v25BOyqZTdG5mdD1%2Fuploads%2Fu3mH0Z4InojPyCNR0SNL%2Fimage.png?alt=media&#x26;token=650974f0-818a-4c42-9839-8f34b6ae749f" alt=""><figcaption></figcaption></figure>

#### Ask a follow-up question

After reviewing the sales rep's performance, continue with the chat to better understand the context of their performance.

Ask: *Compare him against his colleagues*.

<figure><img src="https://900295827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7pj8v25BOyqZTdG5mdD1%2Fuploads%2FRsL6wD2K3Bkz9V4QpBkk%2Fimage.png?alt=media&#x26;token=a622e4b7-80cc-4006-beb5-7874058e50a8" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.phocassoftware.com/workspaces/ask-questions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
