pySendEmailWithAttachments returns “Tool execution did not return any result” in GenAI Agent

Hi everyone,

I’m facing an issue with pySendEmailWithAttachments in a GenAI Agent. I have configured the tool under my Case Operations Agent and the agent is able to pick the tool correctly when asked to send a case summary email with attachment.

The problem is that the tool execution always returns:
“Tool execution did not return any result” and no email is being sent to the recipient.

In AI Tracer, I can see that the input parameters (To, Subject, EmailBody) are being passed correctly. Both the sender and recipient email IDs are valid and working email accounts. The sender email is also configured in the application’s Email Accounts, so the setup looks correct from that side as well.

What’s confusing is that the agent still responds as if the email was sent successfully, even though the tool itself did not complete successfully.

I’m not seeing any useful logs or clear errors to debug further.

Has anyone faced this before? Any idea what could be missing or how to resolve this?

Thanks.

Did you receive the email to your account? If yes, then I think the tool is not getting any output from the automation rule underneath. If no, Can you turn on the tracer and see if there are any issues while the activity is running?

Edit: I tried the same config and I received the email. The AI Tracer looked the same like yours. As the automation is not returning anything to output params, I think it is being showed in that way. But, internally the functionality is still working.

This is the output param of that automation. But, in the above step, it is being mapped to a page list. May be, due to that, nothing is being set to the param and the output is basically empty. Now, as I have set this value, I can see it in the tool output.

Thanks for checking.

Did you receive the email in your inbox (or spam) as I’m not receiving any email at all.

I checked the tracer as well, and the activity is running fine without any errors.

If you did receive the email, can you share the steps/config you followed? I’ll compare it with my setup.

Yeah, I have received the email, but have to make few changes for that also. In the tool configuration, the From account itself is not passed as a parameter, so, we cannot give it in our prompt.

In the automation activity, when this parameter is not received, it is setting the value to “Default”.

So, it is considering the Default email account which is generally inactive and cannot send emails.

Two options to make it work.

  1. Save as the tool and create new one. Pass your email account name as parameter there. (For real applications)
  2. Private edit this activity and change the value to desired value in step 2. (Just for POC)

Regards,
Sai Nuthalapati.