Create a daily visual journal from Discord chats with GPT-4, DALL-E and Notion
Ready for 3.0What this workflow does
This workflow has 12 nodes and runs on a schedule (every 24 hours). Along the way it connects Discord and Notion. It also calls api.openai.com over HTTP.
How it runs
Trigger: On a schedule (every 24 hours).
- Get Discord Messages (Discord): get many (message)
- Filter Today's Messages (Code): runs custom JavaScript code
- Has Messages? (If): checks a condition and branches into true / false
- Format for GPT- (Code): runs custom JavaScript code
- No Messages Today (Code): runs custom JavaScript code
- GPT-4 Analyze Day (HTTP Request): calls api.openai.com (POST)
- Parse Analysis (Code): runs custom JavaScript code
- Generate Image (DALL-E) (Code): runs custom JavaScript code
- Upload to Cloudinary (Code): runs custom JavaScript code
- Create Notion Entry (Notion): work with database page
…plus 1 more step. See the full node list below.
Services it uses
HTTP calls to: api.openai.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (6)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Discord
n8n-nodes-base.discord - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Notion
n8n-nodes-base.notion
From the author
I wanted a journal but never had the discipline to write one. Most of my day happens in Discord anyway, so I built this to do it for me. Every night, it reads my Discord channel, asks GPT-4 to write a short reflection, generates an image that captures the…