Skip to main content
Community site session details

Community site session details

Session Id : gaWH1EWGEbMyljoPQZTcfn
Copilot Studio - Calling Actions from Copilot S...
Unanswered

Summarise document that has been uploaded

Like (0) ShareShare
ReportReport
Posted on 3 May 2024 13:57:52 by 6

Hi everyone, I’m trying to create a bot that will call an action to allow uploading of their research papers or papers that was obtained through collaboration and then subsequently summarise it after it was uploaded. 

so I created an action for uploading but I’m unable to creat an action to summarise the uploaded doc. Any gurus here that can help ? 

  • adilei Profile Picture
    on 04 May 2024 at 11:15:53
    Re: Summarise document that has been uploaded

    The YAML code goes into a topic. Click on the three dots and then "Open code editor". I agree the pattern is more advanced and not very low-code. I hope that built-in file upload capabilities will come soon.

    adilei_0-1714821262945.png

     

  • Weng Profile Picture
    6 on 04 May 2024 at 11:07:19
    Re: Summarise document that has been uploaded

    Thanks again ! Just because I’m really a noob at this. Where would I paste this code and did you code this from scratch ? Is there an Ai tool that you are using within copilot studio to help with this coding ? Thanks again 

  • adilei Profile Picture
    on 04 May 2024 at 09:34:39
    Re: Summarise document that has been uploaded

    For now, you will have to follow a custom pattern. Here's a custom canvas that will send an attachment to Power Automate: upload_pa_template_html (github.com).

    You copilot will intercept an event from the custom canvas, telling the copilot a file with a specific GUID has been uploaded to Dataverse. Then it is up to you do something with the file (e.g. send to AI builder):

     

    kind: AdaptiveDialog
    beginDialog:
     kind: OnEventActivity
     id: main
     eventName: uploadFile
     actions:
     - kind: SetVariable
     id: setVariable_ZaaEfM
     variable: Topic.fileID
     value: =Text(System.Activity.Value)
    
     - kind: SendActivity
     id: sendActivity_lis3Um
     activity: Thanks! trying to extract data now using a highly sophisticated AI model
    
     - kind: InvokeFlowAction
     id: invokeFlowAction_W4gGku
     input:
     binding:
     text: =Topic.fileID
    
     output:
     binding:
     amounttotal: Topic.amountTotal
     vendorname: Topic.vendorName
    
     flowId: cb32bb85-a0c3-ee11-9079-000d3a119782
    
     - kind: SendActivity
     id: sendActivity_I6gp0P
     activity: Here are the details I've extracted. Double check the details and click submit.
    
     - kind: AdaptiveCardPrompt
     id: amfJgd
     card: |-
     ={
     type: "AdaptiveCard",
     body: [
     {
     type: "TextBlock",
     text: "Invoice Details",
     weight: "Bolder",
     size: "Medium"
     },
     {
     type: "Input.Text",
     id: "vendorName",
     placeholder: "Vendor Name",
     value: Topic.vendorName,
     label: "Vendor Name"
     },
     {
     type: "Input.Number",
     id: "invoiceTotal",
     placeholder: "Invoice Total",
     min: 0,
     value: Topic.amountTotal,
     label: "Invoice Total"
     }
     ],
     actions: [
     {
     type: "Action.Submit",
     title: "Submit",
     data: {
     submitType: "vendorInvoiceSubmission"
     }
     }
     ],
     '$schema': "http://adaptivecards.io/schemas/adaptive-card.json",
     version: "1.4"
     }
     output:
     binding:
     actionSubmitId: Topic.actionSubmitId
     invoiceTotal: Topic.invoiceTotal
     submitType: Topic.submitType
     vendorName: Topic.vendorName
    
     outputType:
     properties:
     actionSubmitId: String
     invoiceTotal: Number
     submitType: String
     vendorName: String
    
     - kind: SendActivity
     id: sendActivity_oOlNM2
     activity: |-
     Thanks!
     
     I'll submit the invoice for approval
  • Weng Profile Picture
    6 on 04 May 2024 at 08:21:57
    Re: Summarise document that has been uploaded

    Thanks! What action did you use to upload documents ? If let’s say we are uploading pdfs?

  • adilei Profile Picture
    on 04 May 2024 at 06:23:40
    Re: Summarise document that has been uploaded

    @Umianta , Gen Answers will summarize search results, but it is not the best tool when the requirement is to analyze or summarize a specific document.

     

    @Weng , a possible flow would be: upload the doc -> extract text using AI Hub (AI Builder) -> summarize the text using a custom prompt (also AI Hub/AI Builder)

  • Umianta Profile Picture
    290 on 04 May 2024 at 01:23:15
    Re: Summarise document that has been uploaded

    Hi @Weng 

     

    Utilize Generative Answers nodes for summarizing. For further details, consult the following documentation:

    If this was helpful:
    Please mark it as a solution
    Give me a thumbs-up
    Connect on LinkedIn
    I consistently upload technical videos. If you're interested, please visit and subscribe to my YouTube Channel
    Always glad to help, Umesh Khandelwal!

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 468 Super User 2025 Season 2

#2
stampcoin Profile Picture

stampcoin 52 Super User 2025 Season 2

#3
trice602 Profile Picture

trice602 46 Super User 2025 Season 2

Featured topics

Loading started