The Send Mail block seems to be sending multiple emails

Hey, MindStudio team!

I have an agent whereby a Send Mail block is sending multiple instances of that output over time. I’m not sure if there is a bug, or if I’ve configured something wrong.

This is the Agent ID: 60e8966f-303d-47fc-a5c8-72b3893cd41d

Here is a video I recorded describing the issue. The video is rather long since I describe the entire process of the agent. But the problem is only in the Send Email blocks at the end of the second workflow.

Another question: Is there a way I can auto-generate a Google Meet link in the Create Calendar Event block? That would be great!

Hi @TechWriterLouis,

Thanks for the detailed post!

Are you still seeing the issue on your end?

Regarding the Google Meet link, generating a new one isn’t currently possible, but appreciate the suggestion!

Actually, I haven’t retested this again. However, for the past several times I had tested this, I was experiencing this issue where the Send Email block sent multiple emails.

You did not experience this?

I’ll need to look into the multiple emails, but the Create Calendar Event block has now been updated to add an option to create a Google Meet link!

Hey, @sean ! That “Create Meet Link” setting you added to the “Create Calendar Event” rocks! Thank you!

I’m looking forward to hearing whether you have a similar experience with the Send Mail block generating multiple emails when triggering via the email mailhook.

Hey, @sean . Just a quick follow-up on the Send Mail block issue that I’m experiencing. From my testing today, it almost seems as if the email webhook keeps triggering–it may have nothing to do with the Send Mail block.

In summary, here’s what happens in that workflow:

  1. The meeting times are set up on the Entry workflow into a JSON array in this format.

[

{

"date": "09-02-2025",

"times": \[

  "10:00",

  "10:30",

  "11:00",

  "11:30",

  "13:00",

  "13:30",

  "14:00",

  "14:30",

  "15:00",

  "15:30"

\]

},

{

"date": "09-03-2025",

"times": \[

  "10:00",

  "10:30",

  "11:00",

  "11:30",

  "13:00",

  "13:30",

  "14:00",

  "14:30",

  "15:00",

  "15:30"

\]

}

]

  1. When a participant triggers the email webook, if a meeting slot matches that in the requester’s email, it removes that item from the JSON array until no items are left. Then, an email is sent to subsequent requesters that there are no slots left.

The experience I am getting is that meetings continue to get taken up after the first, and calendar events and emails continue. Even after there are no more slots available, emails keep coming stating that.

It seems perhaps the email webhook keeps triggering?

Yes, I think I’ve figured it out. When the emails are received, they effectively trigger an API call to start a new run.

The system was waiting until the run completed before marking the email as “received”—which, from the perspective of the mail server, sometimes made it seem like the emails were not being delivered successfully because it was expecting a response back quickly (even a few seconds was enough for it to think the delivery had timed out). So it just kept retrying delivery of the message. I’ve gone ahead and updated the code that interacts with the mailserver to hopefully remedy this. Can you give it another go and see if it works as expected?

The duplication still occurs–but half as much. You must be adjusting in the correct direction. :slightly_smiling_face:

Also, it seems that the Google Meet (the “Hangout link”) is not displaying in the calendar output. Or perhaps I’m not using it correctly.

And one last thing… It seems that meetings are being scheduled four hours prior to the hour time. How would I adjust for that?

Thank you for looking into this for me!