Content generation: Pass shownotes context to social media#115
Merged
Conversation
…tion Phase 5 - Speaker Portal Notifications: - Add speaker-portal-notifications hook for automated emails - Email templates for: invitation, reminder (3-day), urgent reminder (1-day), submission confirmation, and admin notification - Scheduled task runs daily at 9:00 AM for deadline reminders - Sends confirmation to speaker and notification to admin on submission Phase 7 - Heise.de Integration: - Add heise-integration hook for document generation and email sending - Create Heise document specification (directus-cms/docs/heise_document_spec.md) - Generate HTML document when heise_eligible=true AND shownotes approved - Send email to Heise when heise_document_status changes to 'approved' - Update status to 'sent' and record timestamp after sending Environment Variables Required: - EMAIL_SMTP_HOST, EMAIL_SMTP_PORT, EMAIL_SMTP_USER, EMAIL_SMTP_PASSWORD - EMAIL_FROM, WEBSITE_URL, ADMIN_NOTIFICATION_EMAIL - HEISE_CONTACT_EMAIL (for Heise integration) https://claude.ai/code/session_014GXrQQEggG5ktdM73mWx2F
…ates - Replace nodemailer with Directus built-in MailService - Add shared email-service.ts utility for all hooks - Create email_templates collection for editable templates in CMS - Create automation_settings collection for CMS-based configuration - Move Heise contact email, admin email, website URL to CMS settings - Add setup script: utils/setup-email-templates.mjs - Remove nodemailer dependency from package.json Templates now editable in Directus UI: - speaker_invitation, speaker_reminder, speaker_urgent_reminder - speaker_submission_confirmation, speaker_admin_notification - heise_document Configuration now in Automation Settings collection: - heise_contact_email, admin_notification_email - website_url, speaker_portal_token_validity_days https://claude.ai/code/session_014GXrQQEggG5ktdM73mWx2F
- Create ai_prompts collection for managing shownotes and social media prompts - Add setup script to seed default prompts from existing hardcoded values - Update generateContent.ts to fetch prompts at runtime from CMS - Implement template renderer for Handlebars-like variable substitution - Update schema.json with new collection, fields, and relations - Add documentation in tasks.md about prompt management Prompts can now be edited in Directus without rebuilding the extension. Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
Modified social media content generation to receive full shownotes as context, enabling posts to serve as proper summaries. Social media posts are now generated with access to the episode description, topics, and resources from shownotes.
Changes:
- Updated generateContent.ts to pass shownotes object to social prompt builder
- Modified all social media prompts (LinkedIn, Instagram, Bluesky, Mastodon) to include {{shownotes}} variable
- Added @directus/sdk and dotenv as dependencies for setup scripts
- Updated schema.json with email_templates and automation_settings collections
- Rebuilt extensions with updated content generation logic
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Lock file for @directus/sdk and dotenv dependencies used by setup scripts. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enhanced content generation to pass complete shownotes (description, topics, resources) as context when generating social media posts. This enables social posts to properly serve as summaries of episodes rather than just generic promotional content.
Changes
generateContent.tsto pass full shownotes object to social media prompt builder@directus/sdkanddotenvdependencies for setup scriptsTest plan
🤖 Generated with Claude Code