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 / How to complusary call...
Copilot Studio
Suggested Answer

How to complusary call Send Email after Agent Reply?

(1) ShareShare
ReportReport
Posted on by 4
Hi, 

I am trying to build an email agent to route emails based on different content. I am using a trigger "When a Email Received" , analyzes the content, and then sends a response email.

I have added a tool (“Send an Email V2”) and even created a Flow. I call them within the prompt, and while the process works. But it is not complusary to send a email.

Is there any suggestion to make the process run more consistently? 
Thanks,
KWLO

 

Categories:
I have the same question (0)
  • Suggested answer
    Valantis Profile Picture
    6,290 on at
     
    The issue is that generative orchestration decides whether to call a tool based on its reasoning,  it won't always call Send Email unless instructed to do so explicitly.

    Two ways to make it mandatory:
    1. Strengthen the agent instructions: add a clear rule like "Always send an email using the Send Email tool after analyzing the content. Never skip this step." Be explicit and repetitive in the instructions. Generative agents respond well to direct imperative language.
    2. Use a dedicated topic instead of relying on the tool being called autonomously. Create a topic triggered by the email content analysis, and at the end of the topic explicitly call the Send Email action as a required step. Set the topic to "Only run from topic" so the flow can't be skipped by the orchestrator.

    Option 2 is more reliable for production scenarios where the email send is mandatory. The topic-based approach gives you deterministic execution rather than hoping the AI decides to call the tool.

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

    💼 LinkedIn

    ▶️ YouTube

     
     
  • Suggested answer
    chiaraalina Profile Picture
    2,318 Super User 2026 Season 1 on at
     
    The previous answer is good/correct and I love Copilot Studio, but as you are trying to achieve a more deterministic workflow (if I understood correctly) than an agent scenario. 
     
    For a simpel email routing process, I would recommend using Power Automate. Use AI for the decision, and Power Automate for the guaranteed action.
     
     
    Classify the email using Run a prompt and then forward it using Forward an email (V2). This approach ensures that the email is always forwarded as part of the flow logic, rather than relying on an agent tool call.
     
     
    This approach guarantees that the email action is executed because it is part of the flow logic.
     
    Hope it helps!
  • KL-26090147-0 Profile Picture
    4 on at
    Hi, 
     
    Thanks for your help, these are the process, 
     
    1. Get a email, 
    2. Analysis the content, write a summary and suggested reply,
    3. Send to Right People with original email as an attachment
     
    Which approch is more suitable?
     
    Regards,
    KWLO
     
     
     
      
  • André Arnaud de Calavon Profile Picture
    657 on at
    Hi,
     
    Creating an autonomous agent or using an a cloud flow/agent flow are both possible. In this scenario, I would go for the a deterministic flow. But it also depends on available licenses/credits for Copilot Studio or Power Automate.
     
  • Suggested answer
    Valantis Profile Picture
    6,290 on at
     
    For your specific flow (get email, analyze, write summary + suggested reply, forward to right people with original attachment), Power Automate is the better choice here. chiaraalina and André are right that a deterministic flow is more reliable for this.
     
    Here's the exact pattern:
     
    1. Trigger: When a new email arrives (V3)
    2. Run a prompt (AI Builder) or Send a prompt to GPT (Copilot Studio connection): pass the email subject and body, ask it to classify the recipient, write a summary, and suggest a reply
    3. Parse the AI output to extract: recipient, summary, suggested reply
    4. Forward an email (V2) or Send an email (V2): send to the correct person with the summary and suggested reply in the body, attach the original email content
     
    For the attachment: use the attachments array from the trigger. If you want to attach the original email as .eml, that requires a workaround since Power Automate doesn't natively export emails as files. You can include the original email body in the forwarded message instead, or use Forward an email (V2) which preserves the original as a proper forward.
     
    This approach is fully deterministic the send always happens as part of the flow logic.
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

    💼 LinkedIn

    ▶️ YouTube

  • Suggested answer
    chiaraalina Profile Picture
    2,318 Super User 2026 Season 1 on at
     
    I think it depends a bit on how you want to generate the reply suggestion. Does your solution need to look up data to answer the question coming in by email?
     
    If the reply can be based on a single FAQ or policy document, use a Power Automate flow with AI Builder. The flow can retrieve the document’s content and include it in the AI prompt, so the draft reply stays grounded in that document.
     
    You get the file content from an FAQ document that answers common questions and pass it to the AI prompt.
     
     
    Example of the prompt and example output:
     
    If it is a simpel solution I would use Power Automate with AI Builder.


    You will need a Power Automate Premium license and/or Copilot credits. I
     
     
    If the solution needs to dynamically fetch relevant content from multiple sources or decide what data to retrieve on the fly, then Copilot Studio is more suitable. It can intelligently pick the right content or connectors as needed at runtime.
     
    Hope it helps!
     

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 249

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 180 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 153

Last 30 days Overall leaderboard