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

Notifications

Announcements

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,179 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 270 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 181 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard