# Ask AI - Files

### Overview

The **Ask AI** feature brings the power of conversational AI directly into the MangoApps file viewer. It helps users quickly understand, analyze, and interact with the contents of their documents, spreadsheets, and videos—all without leaving the file.

<figure><img src="/files/EZiLXTXsZdQeRXOR8heA" alt="" width="563"><figcaption></figcaption></figure>

If enabled, an **Ask AI icon** appears in the top-right corner of the file viewer next to **Likes** and **Pin**.

Clicking it opens a **conversation panel** on the right side.

Within this conversation, users can:

* Ask custom questions
* Use built-in starter prompts
* Share or copy AI answers
* Generate and view charts (for data files)
* Continue conversations across multiple openings within the same session

{% hint style="success" %}
**Session memory**: Ask AI remembers the conversation as long as the file viewer remains open (resets on page refresh).
{% endhint %}

***

### Starter Prompts

To help users get started, Ask AI provides ready-to-use starter prompts that differ depending on the file type. These prompts are designed to cover the most common use cases for each type of file.

* **PDFs, Word, Google Docs, PowerPoint, Google Slides, Videos with transcript**:
  * Summarize in 1 paragraph
  * Outline the main points
* **Excel, Google Sheets, CSV, JSON**:
  * Analyze for insights
  * Generate a chart

For data files, users can request specific chart types like bar, pie, line, scatter, or histogram.

{% hint style="danger" %}
Starter prompts are **static** with customization coming in a later update.
{% endhint %}

***

### Example Use Cases

Ask AI can be applied to many everyday scenarios, helping users save time and make decisions faster. Whether it’s simplifying a large document or creating a quick data visualization, Ask AI provides real-time assistance.

Examples include:

* **Long PDFs or contracts** → Summarize or pull key clauses.
* **Excel/CSV datasets** → Generate charts and identify trends.
* **Videos with transcripts** → Ask direct questions and receive text-based answers.
* **Legal/HR documents** → Extract important details for quick decision-making.

***

### Supported File Types

Ask AI works with a wide range of commonly used file types, making it versatile for different business needs. Whether reviewing a document, analyzing data, or searching through video transcripts, Ask AI can provide helpful insights.

Supported formats (up to **100 MB**):

* **Documents & Presentations**: PDF, Microsoft Word (.doc/.docx), PowerPoint (.ppt/.pptx), Google Docs/Slides
* **Spreadsheets & Data**: Microsoft Excel (.xlsx), Google Sheets, CSV, JSON
* **Videos with transcripts**

{% hint style="danger" %}
If a file exceeds 100 MB, the Ask AI option will not appear.
{% endhint %}


---

# 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://guides.mangoapps.com/user-guide/files/file-viewer/ask-ai-files.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.
