Skip to main content

AI Document Agents

The AI chat can make real files for you: PDF documents, Word documents (.docx), PowerPoint decks (.pptx), and Excel workbooks (.xlsx). It shows the pages as pictures in the chat, and it gives you a link to download the file. You can then ask for changes in the same chat, and the assistant changes the same file.

The chat can also work on files that you upload. For example, it can merge PDF pages, fill a PDF form, summarize a report with page numbers, edit an uploaded deck, or calculate totals from a spreadsheet.

Overview​

Specialized agents do this work. An agent is a helper assistant with its own set of tools. The assistant that you talk to sends your file request to the correct agent, and then shows you the result.

You wantThe agent or tool that does the workFeature that must be on
A PDFPDF AgentAI Documents (PDF)
A Word document (.docx)Word AgentAI Documents (OpenXml)
A PowerPoint deck (.pptx)Presentation AgentAI Documents (OpenXml)
Answers, totals, or an Excel or CSV file from a spreadsheet that you uploadedTabular Data AgentAny AI Documents for ... feature. Add AI Documents (OpenXml) for .xlsx files.
A quick, plain file from text that the assistant writes (Markdown, HTML, text, CSV, Excel, Word, or PDF)Generate File toolAny AI Documents for ... feature, plus AI Documents (PDF) for .pdf and AI Documents (OpenXml) for .docx and .xlsx

These agents are system agents:

  • They are always available in every AI chat: AI Profile chats, chat widgets, and Chat Interactions.
  • They are not on the Capabilities tab. You do not select them, and you cannot turn them off for one assistant.
  • They need no extra role permission. A person who can use the chat can use the agents. The per-ability permissions in AI Capabilities apply only to the abilities on the Capabilities tab.
  • They work only when the chat deployment has Tool calling checked. See AI Deployments.

Use the agents when you want a designed file that you can preview and change later. The Generate File tool makes a simple file in one step, with no preview and no follow-up edits.

Key Features​

  • PDF Agent makes designed PDFs: reports, letters, invoices, brochures, and forms. It can set the page size and margins, and add a cover page, a table of contents, headers and footers, page numbers, brand colors and fonts, tables, charts, and images.
  • PDF Agent also works on uploaded PDFs. It can merge, split, extract, reorder, rotate, delete, watermark, and stamp pages. It can fill and validate forms, redact confidential text, protect or unlock a file, and do OCR on scanned pages. It can summarize, compare, and answer questions with page numbers, and convert a PDF to Word, Excel, Markdown, HTML, or images.
  • Word Agent writes reports, letters, memos, proposals, contracts, resumes, and manuals. It can add a cover page, a table of contents, styles, headers and footers, page numbers, tables, images, charts, captions, cross-references, and an index. On uploaded .docx files it can edit, restyle, add review comments, and manage tracked changes.
  • Presentation Agent builds decks with themes, layouts, speaker notes, tables, charts, and diagrams (process, timeline, org chart, cycle, pyramid, funnel, and matrix). It can apply a logo, brand colors, and a footer, check the deck for layout and accessibility problems, and export the deck as .pptx or PDF.
  • Tabular Data Agent reads uploaded CSV and Excel files. It filters, totals, compares, and changes the data, and exports the result as a file.
  • Previews. The agents show pages and slides as pictures in the chat before you download the file.
  • Follow-up changes. The file stays in the conversation. "Make the title blue" or "add a slide about pricing after slide 3" changes the same file.
  • Your uploads stay safe. The agents never change a file that you uploaded. They change a working copy.

Turn it on (administrators)​

Step 1: Turn on the features​

Go to Configuration -> Features. The features are in the Artificial Intelligence - Knowledgebase category. Turn on the features for the files you want:

Feature nameFeature IDWhat it adds
AI Documents for Chat InteractionsCrestApps.OrchardCore.AI.Documents.ChatInteractionsTurns on the base AI Documents feature, which stores the files that the agents make and gives the download links. Adds file uploads to the Knowledge tab of a Chat Interaction. Adds the Generate File tool and the Tabular Data Agent.
AI Documents for Chat SessionsCrestApps.OrchardCore.AI.Documents.ChatSessionsThe same for AI Profile chats and chat widgets. Lets a profile allow uploads in its chat sessions.
AI Documents (PDF)CrestApps.OrchardCore.AI.Documents.PdfThe PDF Agent, .pdf output, reading uploaded PDFs, and PDF export of PowerPoint decks.
AI Documents (OpenXml)CrestApps.OrchardCore.AI.Documents.OpenXmlThe Word Agent, the Presentation Agent, .docx, .xlsx, and .pptx output, and reading uploaded Word, Excel, and PowerPoint files.
Turn on an "AI Documents for ..." feature

AI Documents (PDF) and AI Documents (OpenXml) do not turn on the base AI Documents feature. Without it, an agent can make a file but cannot give you the download link, and the chat says that downloads are not available. Turn on AI Documents for Chat Interactions, AI Documents for Chat Sessions, or both.

The standard WinnerWare setup recipe does not turn on these features. Turn them on for each tenant that needs them.

Step 2: Check the deployments​

Go to Artificial Intelligence -> Deployments:

  1. Open the chat deployment that answers the chat. Make sure that Tool calling is checked. Without it, WinnerWare removes the agents from every request, and the chat answers with text only.
  2. To let the agents read pictures (OCR of scanned pages, descriptions of images, or image uploads), set a Default vision deployment under Settings -> Artificial Intelligence.
  3. To let the Presentation Agent make new pictures for slides, set a Default image deployment.

See AI Deployments for these settings.

Step 3 (optional): Let people upload files​

You need this step only when people will work on their own files. To make new files, Steps 1 and 2 are enough.

  1. Turn on AI Documents indexing using Elasticsearch (CrestApps.OrchardCore.AI.Documents.Elasticsearch). A site that uses Azure AI Search turns on AI Documents indexing using Azure AI Search instead.
  2. Go to Search -> Indexing, select Add index, and add an AI Documents index.
  3. Go to Settings -> Artificial Intelligence, and find the Documents section.
  4. Select the new index in Index profile. After people start to use it, do not change this index, or they lose access to the documents of existing chats.
  5. Check Allow document uploads in chat interactions. Check Allow image uploads in chat interactions too if you have a vision deployment.
  6. For an AI Profile, open the profile, go to the Knowledge tab, and check Allow session document uploads (and Allow session image uploads if you want).

Usage​

Where to chat​

  • Chat Interactions: open a Chat Interaction and type in the chat. To give the chat your own files, open the Knowledge tab and drag files into Attached files, or select Browse files.
  • AI Profile chats and widgets: chat as usual. If the profile allows session uploads, attach your file in the chat.

How to ask​

Ask in plain words. Say the file type, the topic, and every detail you want. You do not need to name the agent.

  • Name the file type: "a PDF", "a Word document", "a PowerPoint deck", "an Excel file".
  • Give the size: the number of pages or slides.
  • Give the look: colors, fonts, a cover page, a table of contents, page numbers.
  • Give the content, or upload the source file and say which file to use.
  • Say "Show me a preview" if you want to see the pages. Each preview also gives a download link for the file.
  • Say "Give me the download link" when you want the file again in a later message.

Make a PDF​

Make a 2-page PDF report titled Q3 Service Review. Use Letter size and a navy and gray theme. Add a cover page, a table of contents, and page numbers in the footer. On page 2, add a table of these numbers with a bar chart below it: January 120, February 135, March 150. Show me a preview.

What happens:

  1. The PDF Agent builds the document.
  2. The chat shows the pages as pictures and a download link for the PDF.
  3. You ask for changes, for example: "Make the cover title larger" or "Add a short summary paragraph above the table." The chat shows the changed pages and a new download link.

More PDF prompts:

Merge contract.pdf and appendix.pdf into one PDF, and put the appendix after page 3.

Summarize policy.pdf in five bullets. Give the page number for each point.

Find personal data in claims.pdf. Show me the list first, and do not redact anything yet.

Convert budget.xlsx and notes.docx into one PDF.

Put the two charts from earlier in this chat into a PDF report, one chart on each page.

The PDF Agent can use the charts that the chat drew earlier in the conversation. It uses the same labels, numbers, and colors.

Make a Word document​

Write a Word document: a one-page memo to the support team about the new holiday schedule. Use a heading for each region, a table of the dates, and a footer with Page X of Y. Show me a preview, then give me the download link.

More Word prompts:

In proposal.docx, rewrite section 2 in a friendlier tone. Keep the formatting.

Add a table of contents after the cover page, and add review comments where the text is unclear.

Export only the Pricing section as a separate Word document.

Make a PowerPoint deck​

Make a 6-slide PowerPoint deck about our new onboarding process for managers. Use a corporate theme. Add an agenda, a timeline diagram of the four onboarding steps, and speaker notes on every content slide. Show me the slides.

Follow-up prompts change the same deck:

Make the title on slide 1 blue.

Add a slide about pricing after slide 3.

Shorten the bullets on slide 5.

Check the deck for layout and accessibility problems, and fix them.

Export the deck as a .pptx. Also export it as a PDF.

Export the speaker notes as a Word document.

To use your own design, upload a .pptx or .potx template and say: "Use brand-template.potx for the design." PDF export of a deck needs the AI Documents (PDF) feature.

Work with spreadsheet data​

Upload a CSV or Excel file, then ask questions or ask for a new file:

In sales.xlsx, what are the total sales by region for 2026? Sort from highest to lowest.

Remove the rows where Status is Closed, and give me the result as an Excel file.

Make a PowerPoint slide with a column chart of the totals by region from sales.xlsx.

The Tabular Data Agent reads the real rows of the file. It does not guess the numbers.

Preview the pages​

When an agent makes or changes a file, it shows the pages or slides as pictures in its answer. Two or more pictures in a row become a carousel: the current picture is in front, and the other pictures are stacked behind it. One picture on its own line shows as a stack of one, with its caption and the size buttons.

  • Use the arrows, the dots, the arrow keys, or swipe to move between pictures. You can also select a picture behind the current one.
  • Use the Preview size buttons to show Small previews, Medium previews, or Large previews.
  • One preview shows at most 4 pages of a PDF or Word document, or 8 slides of a deck. For more, ask for the next pages, for example: "Show me pages 5 to 8."

The preview is a picture of the file. Each preview also gives the file that it shows as a download link: the PDF, the .docx, the .pptx, or, for spreadsheet data, a file in the format of the upload.

Download the file​

When an agent makes, changes, or previews a file, it puts a download link in its answer. You do not have to ask for the download. Select the link to download the file. The file name is the document's name, or the name you asked for: "Export it as q3-review.pdf."

  • After each change, the answer has a new link. A download link always gives the version of the file at that time.
  • A link works only in the answer that gave it. To get the file again in a later message, ask "Give me the download link". The agent exports the file again.
  • In Chat Interactions, the files that you uploaded stay on the Knowledge tab under Attached files, where you can also download them.
Download your files before you clear the history

In a Chat Interaction, Clear History keeps your uploaded files, parameters, and tools. But it deletes the working files that the agents made (PDFs, Word documents, decks, and spreadsheet changes) and their download links. Download what you need first.

Limits​

These are the default limits for each conversation:

LimitDefault
Largest PDF or Word file that an agent works on50 MB
Working PDFs or Word documents in one conversation40
Pages in one PDF or Word preview4
Slides in one deck preview8

The agents use the chat deployment of the conversation, so they use the same model as the chat.

The tools that need a model to read pictures (OCR, image descriptions) need a vision deployment. If there is none, the agent tells you that it cannot do that step.

Troubleshooting​

ProblemLikely causeFix
The chat writes the text of the document in the answer, but makes no file.The chat deployment does not have Tool calling checked, so WinnerWare removed the agents from the request.Check Tool calling on the deployment. See AI Deployments.
The chat cannot make a PDF, Word, or PowerPoint file, or it makes only a plain file with no preview.AI Documents (PDF) or AI Documents (OpenXml) is not on, so that agent is not available.Turn on the feature. See Step 1.
The file is made, but the chat says downloads are not available.No AI Documents for ... feature is on, so the base AI Documents feature is off.Turn on AI Documents for Chat Interactions or AI Documents for Chat Sessions.
The answer has no pictures.The assistant did not ask for a preview.Ask: "Show me a preview of the pages."
The preview shows only some of the pages.One preview shows at most 4 pages or 8 slides.Ask for the next pages, for example "Show me pages 5 to 8."
"Export the deck as PDF" gives only a .pptx file.AI Documents (PDF) is not on.Turn on AI Documents (PDF).
You cannot upload a file. The upload area says that no index is configured.There is no AI Documents index, or uploads are not allowed.Do Step 3.
Image uploads are refused.There is no vision deployment.Set a Default vision deployment under Settings -> Artificial Intelligence.
The deck has no generated pictures.There is no image deployment.Set a Default image deployment, or upload the pictures that you want to use.
The working file is gone after Clear History.Clear History deletes the working files.Make the file again. Download files before you clear the history.