Outlook draft reply

Hi,

I am a bit stuck on how to automatically draft an email reply with having my “conversation id” or previous conversation messages on it on outlook.

Does anyone know how to make it.

PS: i understood how to make it with the gmail node but it seems on outlook it might be a different way to do it.

Thanks a lot.

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

I don’t see a way to do that within n8n’s Outlook integration (but I could be wrong). You can likely use the custom HTTP request for that. Based on Microsoft’s docs: message: createReply - Microsoft Graph v1.0 | Microsoft Learn, the endpoint is:

https://graph.microsoft.com/v1.0/me/messages/{id}/createReply

The node could look like:

In the auth type, you can select Generic Auth → Header auth → The name of the header would be authorization and the value would be Bearer <token>. The token needs to be populated by using OAuth.

If you don’t need to parse previous messages from the conversation then what hrishikesh said should work for createing a draft reply.

If you do need the data from the previous messages you will probably have to create a separate workflow to intercept and store messages in a Airtable or a DB as related records to a communication and make this one get triggered on insert there. This way you can have a lookup in this workflow.

Thank you, i will try to figure it out. However, with that way of doing it, it wont help me to create a draft reply or a reply, right?
It does only help me to recover the previous conversation?

Thanks for your help.

To clarify:

  • n8n’s built-in Outlook integration allows you to directly send a reply, but you just want to draft it
  • you need to use the custom HTTP Endpoint node as I mentioned above to draft a reply
  • if and only if you also want the access the previous conversation, you’d have to fetch the conversation before and store it somewhere else

So to your question:

My reply from above would help you draft a reply

@Ventsislav_Minev’s reply would help you retrieve the previous conversation

1 Like

Got it, thanks!

If it helped, please mark it as a solution :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.