web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Draft an email respons...
Power Automate
Unanswered

Draft an email response and save to Drafts folder

(0) ShareShare
ReportReport
Posted on by 25
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
    Moderator 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
    25 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
    25 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
    991 Super User 2025 Season 2 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.
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard