How to format mail in AiAgent?

I am using AI Agent to create an agent that supports querying information from a fixed document. When I use the Tools and add “Send Mail,” I cannot get the desired format in the body of the email.
Example:
Dear Mr…
ab
bc
I tried adding \n before these lines, but the text still appears all on one line instead of breaking into separate lines. Please help me resolve this issue.

Hi @Thang_lee

Send Email in AI Agent doesn’t render \n.
Use HTML formatting instead (for example <br> or <p> tags) to create line breaks in the email body.

Hi @Thang_lee,

Instead of \n, send the email as HTML.

Regards,
Bharat

@Thang_lee

You should be instructing your agent through System and User prompt to send the email in HTML format for example like this.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.