Built an AI-powered email automation using n8n that reads incoming emails, processes the code inside them and sends back a fully documented response automatically.
Here’s what happens under the hood:
→ Gmail Trigger detects a new email containing code
→ Two LLM chains (Groq Model) run in parallel one adds inline comments to the code, the other generates a plain English summary
→ The outputs are merged and aggregated into a single structured response
→ Edit Fields formats everything cleanly
→ A final LLM pass polishes the content
→ Gmail sends the documented code + summary back as a reply
No manual review. No copy-pasting. Just structured, AI-generated documentation delivered straight to your inbox.
Built with: n8n · Groq · LLMs · Gmail API