hello, i would like to creat a email draft. to do this i want to make brief with my own pdf brief. after that i can modifiy it , after that agent ai creat mail with lot of old mail model and for the end i can modify this email with an agent. my workflow doesnt work correctly. can you help me please?
I think you should simplify the workflow. You could do the following:
Phase 1 – Entering and extracting the brief
Node: When chat message received
Node: Extract from File (PDF)
Save the brief in memory (with vectorStoreInMemory in “insert” mode)
Phase 2 – Email generation (based on the brief)
AI Agent or LLM Chain
Clear prompt like the one you already use:
Use only the brief
Do not copy from $json.data
Fixed structure
Phase 3 – Email style (if you want to apply style)
Analyze old emails
Extract style manually (do not pass it as data)
Apply style as a prompt guide, not as content
Phase 4 – User modification
Save the generated email in tool: mail
If the user wants to modify it:
Use an agent with a prompt like: “modify the email in the tool mail based on what the user says”
Do not create a new one, just edit
Phase 4 – User modification
Save the generated email in tool: mail
witch tool do you mean to save the mail
and do i still use the text classifer for all the workflow?
and what do i use for the phase 3?
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.