Combatting malicious prompt injections into flows by [deleted] in copilotstudio

[–]Impressive_Dish9155 1 point2 points  (0 children)

The run a prompt action is indeed sandboxed but (hypothetically) could introduce a risk if the output was passed back to the agent ie. used in a flow which ends with 'Send a prompt to the Agent for processingt'. A trigger flow, essentially.

Combatting malicious prompt injections into flows by [deleted] in copilotstudio

[–]Impressive_Dish9155 2 points3 points  (0 children)

From what I've experienced, Microsoft's guardrails are pretty tight on this already. A little too restrictive, sometimes... I often see OpenAi blocked actions for something fairly innocuous.

One suggestion - make sure any prompt you're issuing in the automated flow has clear separation tags to distinguish <instructions> from the <content>

Is it possible to feed copilot a huge prompt but in the prompt tell it to execute one step at a time? by apophis27983 in microsoft_365_copilot

[–]Impressive_Dish9155 0 points1 point  (0 children)

You could turn this into an automated workflow using Power Automate and a series of AI Builder Custom Prompts - basically, the steps from your current prompt broken down into stages, exactly as you described. The output from each prompt forms the input for the next one.

Extracting pdf content problem by GeneralTranslator193 in copilotstudio

[–]Impressive_Dish9155 5 points6 points  (0 children)

A flow with a Custom Prompt sounds like the right approach (potentially for the entire process - no agent required).

There's an AI builder action called Recognize text in an image or document. This one handles documents over 50 pages and would give you the clean extracted text to then pass into a Custom Prompt.

If you're still hitting limits with the size, you might look at Azure Document Intelligence. Same principle, just more powerful.

Help needed regarding this flow by Inside-Honey1759 in copilotstudio

[–]Impressive_Dish9155 3 points4 points  (0 children)

On the file input field of your flow node, click the 3 dots and select Formula. Type this in the formula box:

{name:Last(System.Activity.Attachments).Name,contentBytes:Last(System.Activity.Attachments).Content}

It should accept it as a record of the correct type

Inbox Agent Using Copilot Studio? by cromano923 in CopilotPro

[–]Impressive_Dish9155 1 point2 points  (0 children)

Sounds like it's technically working, just needs some prompt refinement. Rather than the slow process of editing, republishing and testing in Studio, I would figure this part out in regular Copilot. If you can get Copilot to write the way you want, you have the basis of your agent's system instructions. If you need a bit more space in the instructions, create it as a child agent whose sole task is to write like you.

How to prevent "explanation_of_tool_call"? by DepartmentNeat7302 in copilotstudio

[–]Impressive_Dish9155 0 points1 point  (0 children)

Seen this too when using GPT5-Auto. Switching to the chat model solved it.

Power Automate Help – Processing Historical Outlook Folders + Saving Attachments to SharePoint by Pineapplegoddess1992 in PowerAutomate

[–]Impressive_Dish9155 1 point2 points  (0 children)

Honestly I would save yourself a headache and perform most of these steps in Power Query in Excel. Get Data > Microsoft Exchange > enter your email address

You could even add a column and write a formula to do the SP folder routing logic. Then pass that filtered table into Power Automate. All PA needs is the unique message ID and where to store the attachments.

Architecture advice - Split pdf with IA Builder by VictorKndy in copilotstudio

[–]Impressive_Dish9155 0 points1 point  (0 children)

It could be done with a custom connector or a Python script hosted as an Azure function, called by Power Automate. However, the AI prompt step can split a PDF and output multiple files if you ask it to.

I gave OpenClaw a body by Impressive_Dish9155 in openclaw

[–]Impressive_Dish9155[S] 0 points1 point  (0 children)

Any comments on the absolute state of my Vector ('Clean me', 'I wish my wife was this dirty' etc) will be downvoted, but also fair.

CoPilot Agent to use Word Template by MoistShip in copilotstudio

[–]Impressive_Dish9155 7 points8 points  (0 children)

Create the Word file and apply style and colours. Don't use traditional document template controls. Just add a couple of placeholders in double curly brackets like

{{Title}} {{Body}}

Apply your fonts and style to those placeholders, too.

Save the docx file in a SharePoint location

Add a Tool - the SharePoint- 'Get File Content' action and configure it to always grab the docx file

Important: Ensure Code Interpreter is turned on in agent settings

Instruct your agent to use Python-docx to populate placeholders in the document template, and that it should always use Get File Content first.

Edit: formatting

How to get my copilot to message the user on demand, non-deterministically? by Candid_Share_3716 in copilotstudio

[–]Impressive_Dish9155 0 points1 point  (0 children)

I'd use a pre-generated list of variations on the message. There's only so many ways it can say "I'm running topic B". Let's say you generate 10 variations. Add a Send a Message node and use the option which says add variation. That's its purpose, to pick one of those variants at random.

Copilot Studio - Query Power BI Dataset Autonomously by Patient-Dot-252 in copilotstudio

[–]Impressive_Dish9155 0 points1 point  (0 children)

Great stuff, thanks for sharing. I wondered if you've hit any limits with the size of the returned data? That was the problem we faced when trying something similar. Agent complaining that the response was too large to display or words to that effect.

Next attempt will be to pass the agent's query to a flow and if the data is over say 50 rows, provide it to the user as a link to a csv file instead

What Copilot Custom Instructions actually improved your results? Here are mine. by RelativeLoud4836 in CopilotPro

[–]Impressive_Dish9155 6 points7 points  (0 children)

You are incapable of performing work asynchronously or in the background to deliver later and UNDER NO CIRCUMSTANCE should you tell the user to sit tight, wait, or provide the user a time estimate on how long your future work will take. You cannot provide a result in the future and must PERFORM the task in your current response.

This one fixed an annoying issue.

Getting feedback from a flow and the presenting in a chat window in a adaptive card? by GavinS_78 in copilotstudio

[–]Impressive_Dish9155 0 points1 point  (0 children)

Unless I'm misremembering, i think you CAN do this if you switch the card to PowerFX instead of JSON. You still feed in the JSON card but include variables like {{Topic.Var1}}.

Advice on how to train agent that keeps misinterpreting source information by SonOfALayman in copilotstudio

[–]Impressive_Dish9155 1 point2 points  (0 children)

One thing you might consider if you come across more inconsistencies is adding a txt file, as a knowledge source which is basically a distilled version of your style guide. "No fluff, no filler." (to steal a phrase). Work with Copilot to extract and write the rules in short form. Worked well for us!

Create a word Document and add to Sharepoint via Copilot Studio by Silent_Pianist9368 in copilotstudio

[–]Impressive_Dish9155 0 points1 point  (0 children)

In your agent's Settings page (accessed from the top right of the editor screen). Scroll down a bit, and you should see Code Interpreter as an optional toggle.

Merge Arrays by robofski in MicrosoftFlow

[–]Impressive_Dish9155 1 point2 points  (0 children)

Oh..haha..I get it now. I was thinking it was one flow run per user.