Generate dynamic, analyzed weather reports, calculate comfort levels, and use an AI agent (GPT-4.1-mini) to draft personalized, engaging emails. Deploy this advanced n8n workflow template today.
Download this n8n workflow template and start using it instantly.
-
Developers looking for advanced n8n workflow examples combining custom Python code, API integrations, and AI.
Businesses needing to generate highly personalized daily email reports.
Users seeking robust n8n templates for data analysis and rich HTML email generation.
Anyone interested in integrating GPT models into data processing pipelines using an n8n node.
This comprehensive n8n workflow demonstrates how to transform raw API data into high-value, actionable insights. Instead of simply forwarding basic OpenWeatherMap data, this n8n template utilizes a sophisticated Python Code n8n node to calculate unique metrics, such as comfort levels, specific clothing suggestions, and a proprietary “Weather Quality Score.” The resulting analytical data is then fed into an AI Agent n8n node, powered by GPT-4.1-mini, which refines the message for human readability and adds a personalized touch, like a weather-related joke. The entire process culminates in the delivery of a professional, HTML-formatted report via the Gmail n8n node. This solution showcases the power of building advanced, multi-step n8n automations.
This efficient n8n workflow begins with the user inputting a city name.
On form submission n8n trigger, which captures the city name requested by the user.Fetch Weather Data n8n node (an HTTP Request) queries the OpenWeatherMap API using the city name provided by the n8n trigger. (Note: The user must replace APIkey> in the URL parameter).Process Weather Data Python n8n node performs extensive calculations. It converts temperatures, calculates wind speeds in various units, determines a 'Comfort Level,' and generates practical advice like 'Clothing Suggestions' and 'Activity Recommendations.'Generate Email Content Python n8n node takes the processed data and constructs both a fully styled HTML email body and a plain text version, including a dynamic subject line.AI Agent n8n node, which uses the connected OpenAI Chat Model (running gpt-4.1-mini). The AI Agent is instructed to draft a polished email, incorporating the weather facts and adding a relevant joke.Send a message Gmail n8n node uses the AI-generated output as the message body and the dynamic subject to dispatch the custom personalized weather report to the intended recipient.To deploy this n8n workflow, follow these steps:
Fetch Weather Data n8n node and replace API key> in the appid query parameter with your actual OpenWeatherMap API key.OpenAI Chat Model n8n node.Send a message n8n node.Send a message Gmail n8n node, update the sendTo parameter with the email address where you want to receive the report.On form submission) to start testing the automation.This n8n workflow relies on several specialized n8n node types:
On form submission (n8n trigger): Starts the automation when a city name is entered via a simple n8n form. Key Configuration: Collects the City input.
Fetch Weather Data (HTTP Request n8n node): Retrieves raw weather data from OpenWeatherMap. Function: Sends a GET request parametrized by the city name. Key Configuration: Uses an expression to dynamically inject the city: ={{ $json.City }}.
Process Weather Data (Code n8n node - Python): Performs complex analytical logic. Function: Calculates comfort levels, visibility, wind speed conversions, and generates clothing/activity recommendations. This core n8n node generates the analytical report structure.
Generate Email Content (Code n8n node - Python): Structures the highly analyzed data into presentable HTML and plain text formats for the final email. Function: Creates a rich HTML email template using Python f-strings.
OpenAI Chat Model (n8n node): The language model provider. Function: Specifies the use of the gpt-4.1-mini model for text generation.
AI Agent (n8n node): The primary tool for content refinement. Function: Takes the plain text report and follows instructions to enhance readability, use proper formatting, and, crucially, add a weather-related joke before passing the output to Gmail.
={{ $('Generate Email Content').item.json.subject }}.Generate dynamic, personalized travel itineraries using a local Llama AI model (Ollama). This n8n workflow features dual n8n triggers for email and WhatsApp input, ensuring cross-channel automation.

Use this powerful n8n workflow to automate Strava posts. Generate personalized, engaging titles and descriptions for new bike rides instantly via DeepSeek AI. Explore more n8n templates and nodes for fitness automation.

Generate high-potential tech startup ideas, critiqued by an AI VC agent, and receive a full analysis report via Gmail. Automate innovation using this powerful n8n workflow.

Use this powerful n8n workflow to automatically generate personalized HTML reports for survey respondents (Jotform) and weekly aggregate statistical summaries using Google Gemini AI.

Use this robust n8n workflow to generate high-quality, photorealistic images using the black-forest-labs/flux-krea-dev model on Replicate. Features automated polling and error handling.









































