Generate Personalized Weather Reports with OpenWeatherMap, Python and GPT-4.1-mini
Go to WorkflowDescription
How it works
User enters name of a city for which most current weather information will be gathered
Custom Python code processes the weather data and generates a custom email about the weather
AI agent further customizes the email and add a related joke about the weather
Recipient gets the custom email for the city
Set up instructions
Enter city to get the weather data
Add OpenWeather API and replace <your_API_key> with your actual API key
Add your OpenAI API in OpenAI Chat Model Node
Add your Gmail credentials and specify a recipient for the custom email
Nodes Used (5)
AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Gmail
n8n-nodes-base.gmail
HTTP Request
n8n-nodes-base.httpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi