π¬ Daily morning haiku generation with OpenRouter AI, Google Docs and Gmail
β‘ 26 views Β· π¬ Content Creation & Video
Description
How it works
This workflow automatically generates a new haiku poem every morning using AI, formats it in 5-7-5 structure, saves it to Google Docs, and sends it to your email inbox.
Workflow steps:
- Schedule Trigger β Runs daily at 7:00 AM.
- AI Agent β Asks AI to output four words (kigo, noun, verb1, verb2) in JSON format.
- Code in JavaScript β Builds a 5-7-5 haiku using the AI-generated words and sets todayβs title.
- Edit Fields β Prepares document fields (title and body) for Google Docs.
- Create a document β Creates a new Google Document for the haiku.
- Prepare Append β Collects the document ID and haiku text for appending.
- Update a document β Inserts the haiku into the existing Google Doc.
- Send a message β Sends the haiku of the day to your Gmail inbox.
- OpenRouter Chat Model β Connects the OpenRouter model used by the AI Agent.
Setup steps
- Connect your OpenRouter API key as a credential (used in the AI Agent node).
- Update your Google Docs folder ID and Gmail account credentials.
- Change the email recipient address in the βSend a messageβ node.
- Adjust the Schedule Trigger time as you like.
- Run the workflow once to test and verify document creation and email delivery.
Ideal for
- Writers and poets who want daily creative inspiration.
- Individuals seeking a fun morning ritual.
- Educators demonstrating AI text generation in a practical example.
βοΈ Note:
Each node includes an English Sticky Note above it for clarity and documentation.
π Nodes Used
Gmail, Google Docs, Schedule Trigger, AI Agent, OpenRouter Chat Model
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File