DEV Community

Adewale Megbabi
Adewale Megbabi

Posted on

Implementing Conditional Auto-Replies Based on Email Content (pt.3)

Image showing the project stage so far
Hi guys,

This is the third part of my project build, which by the way is a tool built around solving a real world challenge. In this project, I will be defining conditions for my auto-replies, updating my Power Automate flow, "Email Automate", then testing and validating the new build.

✅ 1. Define Conditions for Auto-Replies

Decide on specific criteria that will trigger different auto-replies. For example:

  • Urgent Requests: If the subject contains "urgent" or "ASAP".
  • Support Inquiries: If the body contains "support" or "help".
  • General Inquiries: All other emails.

✅ 2. Update Your Power Automate Flow

Modify your existing flow to include conditional branches:

  • Add a Condition: After the trigger, insert a condition to check if the subject contains "urgent".
  • Yes Branch: Send an auto-reply indicating that urgent requests are being prioritized.
  • No Branch: Add another condition to check if the body contains "support" or "help".
  1. Yes Branch: Send a support-specific auto-reply.
  2. No Branch: Send a general auto-reply.

This structure ensures that each email receives a context-appropriate response.
Image showing the full flow diagram

✅ 3. Test and Validate

Send test emails that match each condition:

  • An email with "urgent" in the subject.
  • An email with "support" in the body.
  • A general inquiry.

Verify that each email receives the correct auto-reply and that the event is logged appropriately in SharePoint.

Image showing the SharePoint site logs

Top comments (0)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.