hello, i’m currently working on a workflow. the objective of this workflow is that from a tally form filled in imput with certain information, the AI agent via chatgpt proposes recommendations to be sent by email as output.
the mail mail sent does not contain the recommendations established by chatgpt image attached. could you help me understand what to do? I am a beginner on N8N
Hi!
To get the result of the AI Agent node, you should add the Send Message node after the AI Agent node, not as a tool. Tools are usually used to provide resources for the agent to analyse data and bring context, actions and what to do after querying OpenAI should be as a next step of your workflow.
Have a look at this template. It’s a different use case but may help you understand:
Dear @Mr_Kossi, how are you !.
Following is the most probably solution for the workflow you are looking forward to.
Stracture Output Parser:
{
“Subject”: “Subject line of the email”,
“body”: “body text of the email to send”
}
So, that your AI agent will output both the
Subject line
Body of the email.
Remember to properly add the prompt inside the AI agent.
Hope this will help and happy to help.
(If this solve out your problem, then please mark it as solution as this will help others in community.)