web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / AI Builder Prompt Acti...
Copilot Studio
Suggested Answer

AI Builder Prompt Action in Copilot Studio with PDF Document Input

(5) ShareShare
ReportReport
Posted on by 4

Hello, I am trying to make a custom copilot to answer user query regarding product categories. I am using the AI Builder prompt action over my pdf document (which holds the product category information) and identify the relevant entities that the user might be interested in.

I want to understand how to give the document input for the prompt in the copilot topic flow.

Here is how I use the document in the prompt.

 

Here is the copilot topic flow in the copilot studio - 

 

 

 
Categories:
I have the same question (0)
  • Suggested answer
    Romain The Low-Code Bearded Bear Profile Picture
    2,575 Super User 2026 Season 1 on at
    in the prompt you ask for 2 information :
    1. A user text input to define a question
    2. A document.
     
    1 - The user text input is often "Activity.Text" (and I should recommand you to folow basic tutorial of copilot studio, this point is a basis to understand how to make advanced copilot studio) : you cannot past "activity.text" you have to select it from the formula : System variable.
    Activity.Text is the basic way to read the user input and use it somewhere else in your application.
     
    2 - For the document : if you take it from a sharepoint libary, you coult take it from power automate. But i assume if you ask here, you want from user input in your copilot studio agent. And do this 



    Bad news , it's still in early USA preview (the loop part, wich is mandatory to achieve your goal) : you need to create a new environnement and define it as early preview env (located in USA , mandatory) (and you probably cannot, it's an administrator or developper privilege (some time))

    BUT  you have another way to achieve your goal 
     
     
    last solution 

    Go in your copilot studio settings -> generative IA -> Image Input ->  and enable image input. Then user could send an image and ask directly about the content of the image. 

    This way user could directly send image and ask question about it in the bot (bot need to be in english - US : still a public preview)

     
  • Harsh Abhishek Profile Picture
    4 on at
    Thanks for the reply @Romain The Low-Code Bearded Bear, but I had a slightly different requirement here. I am not trying to get the document from the user. My documents should serve as a knowledge source and I wanted to use the AI builder prompt to refer to that knowledge source when answering, in particular here the ask was to understand entities in the user query. The AI builder prompt action can at the moment refer to dataverse tables, but it has row limits of 1000 due to context size of the prompt. I wanted to test how to provide pdf document as a knowledge source for the ai prompt action.
     
    I am able to use a markdown version of the document as a knowledge source and use the Generative AI answers feature of the copilot to answer the question but that did not work quite well. As in it can answer questions from the document but I wanted it to understand more about what user is asking by referring the doc.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 895

#2
Vish WR Profile Picture

Vish WR 337

#3
Haque Profile Picture

Haque 276

Last 30 days Overall leaderboard