We have built a copilot autonomous agent that handles new emails and reply.
its working really well and grounded to our knowledge base.
it uses a trigger 'when email arrives v3'. we have modified the trigger so it ignores keywords in the subject line and from particular email addresses (like noreply). and we use a send an email v2 to send a reponse
the only issue we are having if emails come in near the same time, it replies with multiple copies e.g.
If sender A and Sender B sends an email and arrives at or near the same time (i am not sure what the polling times are with that trigger), then the following happens
Sender A and Sender B gets a response twice!
when we look at the runned flows, we can see that there are two emails in the when a new mail arrives. each time there is a response to the copilot for the object. which is two emails. so the foreach will send a object back with two emails, and the second iteration will send another email object with two emails.
the foreach gets added automaticaly when we put a condition in