Kütüphane / Görüntü, Video ve Ses
Görüntü, Video ve Ses
OpenAI ve HeyGen ile Slack'ten haber sunucusu avatar videoları üretin
Her Slack mesajında çalışır: bir AI ajanı 30 saniyelik bir yayın metni taslağı hazırlar ve onay için thread'e gönderir, ardından HeyGen konuşan avatar videosunu oluşturur ve bot bağlantıyı paylaşır.
Ne yapar
## 🎬 Slack Chat-to-Avatar-Video Bot ### How it works Message a news headline to your Slack bot → an AI Agent drafts a 30-second English broadcast script → you approve or ask for edits right in the Slack thread → once you confirm, HeyGen generates a talking-avatar video → the bot replies with the video link. Each conversation's state (draft script, status, HeyGen job ID) lives in an n8n Data Table, since two Slack messages are two independent events with no shared memory otherwise. ### Setup checklist (do these before testing) 1. Create your Slack app (api.slack.com/apps → Create New App → From scratch): - OAuth & Permissions → Bot Token Scopes: chat:write, channels:history, im:history, users:read - Event Subscriptions → turn on, set the Request URL to this workflow's "When Slack Message Received" node production webhook URL (shown once you activate the workflow), subscribe to bot events message.channels and message.im - Install the app to your workspace, then invite the bot into the channel (or DM it) - Copy the Bot User OAuth Token + Signing Secret into a new Slack credential in n8n, and connect it to every Slack node here (the trigger and all "Post/Notify ... to Slack" nodes) 2. Create a Data Table (e.g. slack_video_sessions) with columns: channelId, newsContent, script, status, heygenVideoId — all string type. Point every Data Table node at it. 3. HeyGen: create a Header Auth credential (Header Name: X-Api-Key, value = your HeyGen API key) and connect it to "Create HeyGen Video" and "Verify HeyGen Video Status". Replace avatar_id/voice_id in "Create HeyGen Video" with your own (HeyGen → Avatars / Voices — these are two separate IDs even for the same avatar). 4. OpenAI: connect your own OpenAI credential to both model nodes ("Generate Script with OpenAI", "Revise Script with OpenAI"). ### Customization Adjust the AI prompts for script tone/length, the Slack confirmation keywords in "Check User Confirmation", the HeyGen avatar/voice/resolution settings, and the 15s/20-try polling limit to fit your needs.
Adımlar
- When Slack Message Received
- Parse Slack Message
- Check User Message Validity
- Ignore Non-User Input
- Query Pending Session Data
- Check Pending Session Existence
- News Script Generator
- Generate Script with OpenAI
- Store Draft Script
- Post Draft Script to Slack
- Notify Script Generation Failure
- Check User Confirmation
- Confirm Session Status
- Revise Script via Feedback
Toplam 33 adım.
Benzer otomasyonlar
Görüntü, Video ve SesHeyGen ile Yapay Zeka Haber Avatar Videoları Hazırla14 adımGörüntü, Video ve SesHeyGen konuşan avatar videoları oluşturma ve Slack'te paylaşma6 adımGörüntü, Video ve SesHeyGen Avatarlarıyla RSS Beslemelerinden Haber Videoları Oluştur3 adımGörüntü, Video ve SesGPT-4o ile Haberleri HeyGen Avatar Videolarına Dönüştürme15 adım