Library / Image, Video & Audio
Image, Video & Audio
Generate news anchor avatar videos from Slack with OpenAI and HeyGen
Runs on each Slack message: an AI agent drafts a 30-second broadcast script for approval in the thread, then HeyGen renders the talking-avatar video and the bot posts the link.
What it does
## 🎬 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.
The steps
- 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
33 steps in total.
Similar automations
Image, Video & AudioMake AI News Avatar Videos with HeyGen14 stepsImage, Video & AudioGenerate News Videos from RSS Feeds with HeyGen Avatars3 stepsImage, Video & AudioGenerate HeyGen Talking Avatar Videos and Share on Slack6 stepsImage, Video & AudioTurn News into HeyGen Avatar Videos with GPT-4o15 steps