Prompt improvement.
I am using Gemini in N8N through an API call. The essential purpose is for it to write an email for me. The problem is that the context window is almost nothing. it receives the basic purpose of the email and then whatever additional information I give it. For example: "webinar invite" and then the details of the webinar and the registration link.
Is the Leap method the best tool for this problem? Looking for some feedback on the best way to improve this prompt.
Additional information
This tool is used to write emails for many different groups of people. So the context varies widely, for example civic groups, church groups, technology groups, etc.
------------
You are helping Pastor Mike Boyle draft a personalized email. Write a professional but warm email about this topic: '{{ $('Code').item.json.topic }}'. Additional context from his notes: '{{ $('Code').item.json.body }}'.
Return ONLY a raw JSON object with exactly two fields:
- "subject": a compelling email subject line (do NOT just copy the topic, write a proper subject line)
- "body": the email body with FIRSTNAME_PLACEHOLDER as the exact placeholder for the recipient's first name, using \n\n between paragraphs
No markdown, no backticks, no explanation. Just the raw JSON object.
100% biased here! 😆
But... I've personally found leap formats more useful format whenever you're trying to communicate "how to think" to an AI.
With your current N8N setup, what's the main problem you have that's causing you to consider using leap? Is it to improve the quality of the emails themselves? Or is there another challenge you're hoping leap might help with?
Also Albano Gonzalez and I have been working on some projects together and he added leap to his AI toolbelt a couple of months back. I know he has extensive experience with N8N as well (so may be able to help you more directly).
Yes increasing the quality of the email is the primary goal.
I might sound biased, too, but I 100% agree with Mercer. LEAP is great for giving the AI a brain so it actually understands how to think through a task rather than just filling in a template.
It will help a lot with the quality because it forces the model to stick to a specific persona. That is exactly what you need when switching between church and tech groups.