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?
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.
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.