{"id":41490,"date":"2025-06-13T11:24:05","date_gmt":"2025-06-13T05:54:05","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=41490"},"modified":"2025-06-13T11:24:05","modified_gmt":"2025-06-13T05:54:05","slug":"automating-local-document-retrieval-and-email-drafting-with-attachment-by-using-copilot-studio-part-2","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2025\/06\/automating-local-document-retrieval-and-email-drafting-with-attachment-by-using-copilot-studio-part-2\/","title":{"rendered":"Automating Local Document Retrieval and Email Drafting with Attachment by Using Copilot Studio Part 2"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41480\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Automating-Local-Document-Retrieval-and-Email-Drafting-with-Attachment-by-Using-Copilot-Studio.png\" alt=\"Automating Local Document Retrieval and Email Drafting with Attachment by Using Copilot Studio\" width=\"1925\" height=\"1100\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Automating-Local-Document-Retrieval-and-Email-Drafting-with-Attachment-by-Using-Copilot-Studio.png 1925w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Automating-Local-Document-Retrieval-and-Email-Drafting-with-Attachment-by-Using-Copilot-Studio-300x171.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Automating-Local-Document-Retrieval-and-Email-Drafting-with-Attachment-by-Using-Copilot-Studio-1024x585.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Automating-Local-Document-Retrieval-and-Email-Drafting-with-Attachment-by-Using-Copilot-Studio-768x439.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Automating-Local-Document-Retrieval-and-Email-Drafting-with-Attachment-by-Using-Copilot-Studio-1536x878.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Automating-Local-Document-Retrieval-and-Email-Drafting-with-Attachment-by-Using-Copilot-Studio-660x377.png 660w\" sizes=\"(max-width: 1925px) 100vw, 1925px\" \/><\/p>\n<p>In our last blog, <strong>&#8220;<a href=\"https:\/\/www.inogic.com\/blog\/2025\/06\/automating-local-document-retrieval-and-email-drafting-with-attachment-by-using-copilot-studio\/\" target=\"_blank\" rel=\"noopener\">Automating Local Document Retrieval and Email Drafting with attachment by using Copilot Studio Part 1<\/a>&#8220;<\/strong> we discussed how a tailor-made solution developed with Microsoft Copilot Studio enables you to find and exact project information instantly from massive local document stores. We illustrated how the Copilot intelligently uses Power Automate and the on-premises data Gateway to eliminate repetitive search tasks, delivering swift and accurate data extraction.<\/p>\n<p>This blog will demonstrate how to effortlessly transform the key information your Copilot extracts from local documents into official, shareable reports. We&#8217;ll walk you through automatically linking these reports to draft emails. This method spares you the usually time-consuming and error-prone action of doing this manually. Finally, it makes sure your precious ideas are not only on screen but also within easy reach for offline usage, formal storing, and effortless sharing with all your stakeholders.<\/p>\n<p>Imagine our system quickly searched and showed you the information you wanted from your local files.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41491\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/1Automating-Local-Document-Retrieval.png\" alt=\"Automating Local Document Retrieval\" width=\"1135\" height=\"697\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/1Automating-Local-Document-Retrieval.png 1135w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/1Automating-Local-Document-Retrieval-300x184.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/1Automating-Local-Document-Retrieval-1024x629.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/1Automating-Local-Document-Retrieval-768x472.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/1Automating-Local-Document-Retrieval-660x405.png 660w\" sizes=\"(max-width: 1135px) 100vw, 1135px\" \/><\/p>\n<p>Once you have this information at your fingertips, you just ask your Copilot: &#8220;Create a PDF for the above information&#8221; (or &#8220;Create a Word document for this data&#8221;).<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41492\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/2Automating-Local-Document-Retrieval.png\" alt=\"Automating Local Document Retrieval\" width=\"1140\" height=\"582\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/2Automating-Local-Document-Retrieval.png 1140w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/2Automating-Local-Document-Retrieval-300x153.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/2Automating-Local-Document-Retrieval-1024x523.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/2Automating-Local-Document-Retrieval-768x392.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/2Automating-Local-Document-Retrieval-660x337.png 660w\" sizes=\"(max-width: 1140px) 100vw, 1140px\" \/><\/p>\n<p>You click on the link, and the PDF (or Word document) downloads immediately to your computer. When you open it, you&#8217;ll find all the information presented by the Copilot earlier in beautifully formatted form within your preferred template.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41493\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/3Automating-Local-Document-Retrieval.png\" alt=\"Automating Local Document Retrieval\" width=\"609\" height=\"711\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/3Automating-Local-Document-Retrieval.png 609w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/3Automating-Local-Document-Retrieval-257x300.png 257w\" sizes=\"(max-width: 609px) 100vw, 609px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>This feature enables the dynamic generation of documents containing the searched information, offering a convenient way to consolidate and share findings:<\/p>\n<p>Let\u2019s now explore how this functionality is set up. It is usually managed using Power Automate (Flows) initiated from Copilot Studio, where we\u2019ve configured a dedicated topic to handle the process.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41494\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/4Automating-Local-Document-Retrieval.png\" alt=\"Automating Local Document Retrieval\" width=\"1305\" height=\"724\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/4Automating-Local-Document-Retrieval.png 1305w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/4Automating-Local-Document-Retrieval-300x166.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/4Automating-Local-Document-Retrieval-1024x568.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/4Automating-Local-Document-Retrieval-768x426.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/4Automating-Local-Document-Retrieval-660x366.png 660w\" sizes=\"(max-width: 1305px) 100vw, 1305px\" \/><\/p>\n<p>The Copilot receives a command and triggers a dedicated Power Automate flow. This flow takes the summarized or detailed information requested to be documented. It then populates a pre-defined Word template that is stored in SharePoint.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41495\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/5Automating-Local-Document-Retrieval.png\" alt=\"Automating Local Document Retrieval\" width=\"1316\" height=\"460\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/5Automating-Local-Document-Retrieval.png 1316w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/5Automating-Local-Document-Retrieval-300x105.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/5Automating-Local-Document-Retrieval-1024x358.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/5Automating-Local-Document-Retrieval-768x268.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/5Automating-Local-Document-Retrieval-660x231.png 660w\" sizes=\"(max-width: 1316px) 100vw, 1316px\" \/><\/p>\n<p>This template ensures consistent branding and structure, seamlessly integrating the dynamic content into designated placeholders.<\/p>\n<p>Next, Power Automate automatically converts the newly generated Word document into a PDF format if requested; otherwise, it retains the DOCX format.<\/p>\n<p>Upon successful document creation, the system provides a downloadable link to the newly generated Word and\/or PDF file, allowing users to easily access and save the information. This link typically points to a cloud storage location, which is SharePoint, where the documents are stored.<\/p>\n<p>While a summarized email body is great for quick updates, often, stakeholders require a full, detailed report or document. Manually attaching files, ensuring the right version, and then drafting a contextual email can be a multi-step process prone to human error and delays. The goal is to send comprehensive information efficiently and professionally.<\/p>\n<p>With the crucial project information already retrieved and, if needed, transformed into a portable document as we just discussed, our custom Copilot now streamlines the final step: sharing those detailed reports by integrating document generation directly into email drafting.<\/p>\n<p>Imagine this: You have the detailed project information at hand, perhaps even as a newly generated PDF. You instruct your Copilot: &#8220;Draft an email and attach the above PDF.&#8221;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41496\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/6Automating-Local-Document-Retrieval.png\" alt=\"Automating Local Document Retrieval\" width=\"1139\" height=\"588\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/6Automating-Local-Document-Retrieval.png 1139w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/6Automating-Local-Document-Retrieval-300x155.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/6Automating-Local-Document-Retrieval-1024x529.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/6Automating-Local-Document-Retrieval-768x396.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/6Automating-Local-Document-Retrieval-660x341.png 660w\" sizes=\"(max-width: 1139px) 100vw, 1139px\" \/><\/p>\n<p>The Copilot presents you with a direct link. Once you click, your Outlook instantly opens with the draft email pre-filled and the generated PDF attached, ready for sending.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41497\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/7Automating-Local-Document-Retrieval.png\" alt=\"Automating Local Document Retrieval\" width=\"1152\" height=\"814\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/7Automating-Local-Document-Retrieval.png 1152w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/7Automating-Local-Document-Retrieval-300x212.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/7Automating-Local-Document-Retrieval-1024x724.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/7Automating-Local-Document-Retrieval-768x543.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/7Automating-Local-Document-Retrieval-660x466.png 660w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/7Automating-Local-Document-Retrieval-200x140.png 200w\" sizes=\"(max-width: 1152px) 100vw, 1152px\" \/><\/p>\n<p>Similar to document creation, this process is automated using Microsoft Power Automate (Flows), initiated directly from the Copilot Studio topic.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41498\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/8Automating-Local-Document-Retrieval.png\" alt=\"Automating Local Document Retrieval\" width=\"1302\" height=\"672\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/8Automating-Local-Document-Retrieval.png 1302w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/8Automating-Local-Document-Retrieval-300x155.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/8Automating-Local-Document-Retrieval-1024x529.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/8Automating-Local-Document-Retrieval-768x396.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/8Automating-Local-Document-Retrieval-660x341.png 660w\" sizes=\"(max-width: 1302px) 100vw, 1302px\" \/><\/p>\n<p>The Copilot interprets your request and initiates a dedicated Power Automate flow. This flow immediately begins two crucial actions in parallel: it prepares the draft email, which uses the <strong>\u201cSend an HTTP Request\u201d <\/strong>Action, and it attaches the generated PDF simultaneously.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41499\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/9Automating-Local-Document-Retrieval.png\" alt=\"Automating Local Document Retrieval\" width=\"1366\" height=\"720\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/9Automating-Local-Document-Retrieval.png 1366w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/9Automating-Local-Document-Retrieval-300x158.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/9Automating-Local-Document-Retrieval-1024x540.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/9Automating-Local-Document-Retrieval-768x405.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/9Automating-Local-Document-Retrieval-660x348.png 660w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/9Automating-Local-Document-Retrieval-380x200.png 380w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p>A unique link is provided to the user, which, when clicked, opens Outlook with the draft email pre-filled and the document attached, ready for sending.<\/p>\n<p><strong>Conclusion:<\/strong><\/p>\n<p>Building on effortless information retrieval, this solution streamlines the creation of formal documents and comprehensive email communication. Leveraging <strong>Microsoft Copilot Studio<\/strong> and <strong>Power Automate<\/strong>, it automates document generation and seamlessly attaches them to draft emails. This transforms how organizations manage and distribute detailed information, ensuring efficiency and clarity.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our last blog, &#8220;Automating Local Document Retrieval and Email Drafting with attachment by using Copilot Studio Part 1&#8220; we discussed how a tailor-made solution developed with Microsoft Copilot Studio enables you to find and exact project information instantly from massive local document stores. We illustrated how the Copilot intelligently uses Power Automate and the\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2025\/06\/automating-local-document-retrieval-and-email-drafting-with-attachment-by-using-copilot-studio-part-2\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2746],"tags":[2832],"class_list":["post-41490","post","type-post","status-publish","format-standard","hentry","category-copilot","tag-copilot-studio"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/41490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=41490"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/41490\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=41490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=41490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=41490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}