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 / Power Automate / Draft an email respons...
Power Automate
Answered

Draft an email response and save to Drafts folder

(1) ShareShare
ReportReport
Posted on by 29
My boss wants an AI assistant to read and draft responses to emails.
 
I am attempting to create a flow for when a new email is received, the email is read by chatgpt, a response is created, and a draft email is placed in the drafts folder of the mailbox.
 
 I have setup a user account with permissions to the target account.
  • Created a trigger for new email received Oulook365 and specified the target account
  • Created an action for creating a text with ChatGPT a specified a custom prompt
  • Created an action for reply to email v3
 
Obviously this doesn't work. 
test run returned an error, of which this the first part. 
"Action 'Create_text_with_GPT_using_a_prompt' failed: user with id 5cc655b9-97a6-ef11-8a6a-000d3a36bd07 does not have ReadAccess right(s) for record with id 8af5043b-563c-4e55-b103-7534bce77578 of entity AI Model. Consider assigning a role with the required access level to the user or team. "
It gave a url to check the access record which then returned
"Record form is not available
The record you are trying to access does not have a form to display. Please contact your administrator for assistance.
Error code: 0x83215611Session Id: ba3a3cfc-224d-4368-9c87-fa9aa4f738ddActivity Id: 8acd1d5a-ee9a-440f-9e14-2c7813ae45dcTime: Tue Jan 14 2025 15:59:40 GMT-0600 (Central Standard Time)"
 
One, has anyone set something like this up and if so, would you share your recipe?
Two, how do identify the user that needs permissions? 
Three, any suggestions are welcome.
Categories:
I have the same question (0)
  • samiak Profile Picture
    Microsoft Employee on at
    Hi,
     
    Thank you for reaching out.
    Could you please check your role and permissions here: Roles and security in AI Builder - AI Builder | Microsoft Learn
    Let us know the results.
     
    Thank you,
    Samia
  • BL-10091739-0 Profile Picture
    29 on at
    @samiak Thanks for the response.
     
    I have made the account accessing the shared mailbox co-owner of the flow and the prompt.
    This has allowed the flow to pass the ChatGPT action and now fails on the create email reply.
     
    "Action 'Reply_to_email_(V3)' failed: The specified object was not found in the store., The process failed to get the correct properties. clientRequestId: 137c6b8d-1505-428c-843f-3b766a05f63b serviceRequestId: bca6a30a-9086-cffa-d2b5-b58517b30134"
     
    {
    "Cache-Control": "no-store, no-cache",
    "Pragma": "no-cache",
    "Set-Cookie": "ARRAffinity=9259cc3c6ffbdbe88a1d502f584cd37f9bcbf6a8dd724db70626a17b6ac48d88;Path=/;HttpOnly;Secure;Domain=office365-ncus.azconn-ncus-001.p.azurewebsites.net,ARRAffinitySameSite=9259cc3c6ffbdbe88a1d502f584cd37f9bcbf6a8dd724db70626a17b6ac48d88;Path=/;HttpOnly;SameSite=None;Secure;Domain=office365-ncus.azconn-ncus-001.p.azurewebsites.net",
    "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
    "x-ms-request-id": "bca6a30a-9086-cffa-d2b5-b58517b30134",
    "X-Content-Type-Options": "nosniff",
    "X-Frame-Options": "DENY",
    "x-ms-environment-id": "default-5648ecf3-41e7-44c1-b016-9a77ca3a28b7",
    "x-ms-tenant-id": "5648ecf3-41e7-44c1-b016-9a77ca3a28b7",
    "x-ms-dlp-re": "-|-",
    "x-ms-dlp-gu": "-|-",
    "Timing-Allow-Origin": "*",
    "x-ms-apihub-cached-response": "true",
    "x-ms-apihub-obo": "false",
    "Date": "Mon, 20 Jan 2025 17:52:23 GMT",
    "Content-Length": "619",
    "Content-Type": "application/json",
    "Expires": "-1"
    }
     
     
     
     
  • Verified answer
    BL-10091739-0 Profile Picture
    29 on at
    I have made progress and updated the flow using this for guidance: Use ChatGPT in MS PowerAutomate Flows - NodeMasters.
     
    My flow is executing.
  • Mark Nanneman Profile Picture
    993 Moderator on at
    You can create a draft email reply with an AI action (like AI Builder GPT Prompt or whatever API you want) and then save it in an actual draft email in the draft folder using a Graph API call with Invoke an HTTP Request with Entra ID.
     
    Here's a blog post and video on it.
     
  • PD-12042024-0 Profile Picture
    3 on at
    Hi there, 
    Thanks for this. 
     
    What I wish for it to do is each morning at 8:30am is to summarize all my unread emails from the night before (up until 8:30am that morning) and send me one Teams message with the summary (eg. sender, recipients, date, time, subject and summary of body) and have it prompt me as to which emails I wish to have it auto-generate a draft reply to.  Then I can go into my Drafts and review those drafted replies prior to sending.  I would like it to keep the original email intact. 
     
    Hoping someone can steer me in the right direction.  thanks.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 600

#2
Valantis Profile Picture

Valantis 453

#3
11manish Profile Picture

11manish 356

Last 30 days Overall leaderboard