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 / Not following instruct...
Copilot Studio
Suggested Answer

Not following instructions when triggered from Power Apps flow

(0) ShareShare
ReportReport
Posted on by
I have created an agent which reads new emails from Outlook and creates Jira tickets. It works perfectly every time I trigger it manually through Evaluation, however when triggered from the Power Apps flow the agent does not follow its instructions. This is not happening intermittently, I see the same behaviour every single time.
 
The flow in Power Apps looks like this: When a new email arrives (V3) -> Execute Agent

The agent's instructions tell it to call a tool to create Jira tickets and never respond conversationally.
working.png
not working.png

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

Categories:
I have the same question (0)
  • Suggested answer
    MichaelFP Profile Picture
    2,001 Moderator on at
    Why you do not create an Agent flow, is better for this scenarios
     
     
    You will have more value to use that, and fits better on your requirement.
  • RichAI Profile Picture
    26 on at
     
    I think the input passed from Power Automate is different from the input used during Evaluation, and the agent’s instructions are not getting interpreted in the same way.
     
    Possible reasons can be:
    1. "When a new email arrives (V3)" connector sends email body as HTML instead of plain text, Inline CSS, etc.
    This can change the structure of the input the agent receives.
    2. If you include attachments in the input, they are passed as large Base64 objects. This increases the prompt size and can confuse the agent’s tool‑calling behaviour. If attachments aren’t required for the Jira ticket, exclude them from what you send to the agent.
    3. Sometimes the flow sends extra metadata. Check those details as well over what is being sent to the agent by creating a topic which displays the input it receivers from PA in the chat while testing the agent.
    4. If the input object from the flow doesn't match what you used during manual Evaluation, the agent may get confused.
     
    If you can share the instruction prompt, and the JSON input your flow sends into the agent, it would be much easier to spot the issue.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 277

#2
11manish Profile Picture

11manish 206

#3
sannavajjala87 Profile Picture

sannavajjala87 156 Super User 2026 Season 1

Last 30 days Overall leaderboard