Automate TikTok Slides with AI Agents: Restore Photos, Generate Frames, and Create Short Videos on Restory
Step-by-step workflow for AI agents that generate TikTok slideshow frames, restore archive photos, create optional videos, and return publish-ready URLs.
Mark Tate
AI Video & Image Specialist
Share
Automate TikTok Slides with AI Agents: Restore Photos, Generate Frames, and Create Short Videos on Restory
Direct answer: an AI agent can automate TikTok slide production by turning a short brief into a storyboard, generating or restoring vertical frames on Restory, polling completed jobs, collecting CDN result URLs, and handing the final assets to a publishing workflow.
This is not just "make me images." A reliable TikTok slideshow agent needs a repeatable loop: choose the angle, create frames at the right aspect ratio, keep visual consistency, generate optional motion variants, check credits, and return an asset manifest that another tool can schedule or publish.
What a TikTok Slide Agent Actually Does
A manual slideshow account has four jobs: find the story, prepare the images, write the captions, and publish consistently. Restory handles the media production layer so the agent can focus on the sequence.
| Step | Agent action | Restory surface |
|---|---|---|
| Storyboard | Turn one topic into 5-8 slide prompts | Agent reasoning |
| Image production | Generate 9:16 or 4:5 frames | restory image:generate |
| Archive content | Restore, colorize, repair, or upscale old photos | restory restore |
| Motion variant | Animate a strong frame into a short video | restory video:generate |
| Handoff | Return final URLs and captions | resultUrl and gallery endpoints |
The Setup, Step by Step
1. Give the Agent a Clear Content Format
Do not ask for "some TikToks." Give the agent a fixed output shape. A good format is:
- One hook slide.
- Three to five proof or story slides.
- One payoff slide.
- One optional CTA slide.
- One caption and hashtag set.
Example brief:
Create a 7-slide TikTok carousel about restoring a damaged family photo. Use a warm archival visual style, vertical framing, short text overlays, and one final CTA frame pointing to Restory.
2. Install the Restory CLI
For local references, the CLI keeps the workflow simple and returns JSON.
npm install -g @restory/cli
export RESTORY_API_KEY="rst_..."
restory capabilities
restory credits
If the agent is running in a no-install environment, use the API directly with /api/agent/openapi.
3. Generate the Slide Frames
For a TikTok slideshow, ask for vertical or near-vertical assets. The agent should discover supported ratios first, then choose a model and ratio that match the platform plan.
restory image:generate \
--prompt "vertical TikTok slide, restored family photo on wooden table, warm archival light, text-safe top area, emotional hook frame" \
--model nano-banana-2 \
--resolution 2K \
--aspect-ratio 9:16
For each slide, store a row like this:
{
"slide": 1,
"purpose": "hook",
"prompt": "vertical TikTok slide...",
"recordId": "imageRecordId",
"status": "pending",
"resultUrl": null
}
4. Restore or Colorize Source Photos When the Story Uses Real Archives
Many viral slide formats are built around old photos, family records, before/after reveals, or nostalgia. For those, restore the original photo first and then use the completed image URL as a source for the slides.
restory restore --method repair --file ./damaged-family-photo.jpg
restory jobs:get <imageRecordId> --type image
Other useful restoration methods include fast, colorize, premium-2k, premium-4k, upscale, and likeness with a reference image.
5. Poll Every Job and Build the Asset Manifest
Poll until each frame is completed or failed. Completed jobs return a stable resultUrl.
restory jobs:get <imageRecordId> --type image
restory gallery:list --type image --status completed --limit 20
The agent's final manifest should include ordered slide URLs, text overlay suggestions, caption copy, alt text, and notes about any failed frames that need regeneration.
6. Add a Motion Variant for Reels, Shorts, or TikTok Video
Some accounts publish slides. Others turn the strongest image into a short motion video. Restory can generate a vertical video from the best completed slide URL.
restory video:generate \
--prompt "slow emotional push toward the restored family portrait, subtle film grain, warm light, text-safe framing" \
--model seedance-2-0 \
--variant fast-image \
--image ./restored-cover.png \
--duration 6 \
--resolution 720p
When the video completes, the returned URL can sit beside the slide URLs in the same campaign manifest.
7. Hand the URLs to a Publishing Agent
Restory is the media backend. A publishing agent can take the completed URLs and schedule them in a social tool such as Postiz, pass them to a CMS, or store them in an ad review board.
A good handoff object looks like this:
{
"platform": "TikTok",
"format": "slideshow",
"slides": [
{ "order": 1, "url": "https://restory.b-cdn.net/images/...", "overlay": "This photo was almost lost" },
{ "order": 2, "url": "https://restory.b-cdn.net/images/...", "overlay": "The damage covered the faces" }
],
"caption": "Restoring family memories with AI.",
"hashtags": ["#photorestoration", "#familyhistory", "#ai"],
"publishNotes": "Use manual TikTok upload or hand URLs to scheduler."
}
Agent Prompt for TikTok Slide Automation
Create a TikTok slideshow campaign using Restory. Read the capabilities endpoint first. Check credits. Build a 7-slide storyboard. Generate vertical image assets with text-safe composition. Poll every job until completion. Return ordered result URLs, overlay copy, caption, hashtags, and one optional Seedance video prompt for the strongest slide. Do not expose API keys.
Prompt Templates for TikTok Slides
Before/After Restoration Story
vertical TikTok slide, old damaged family photograph on desk, warm archival light, emotional documentary tone, text-safe top third, realistic paper texture, before restoration frame
Product Education Carousel
vertical TikTok carousel slide, clean product demo visual for a skincare serum, white bathroom tile, soft morning light, minimal composition, text-safe left margin, premium UGC ad style
Quote or Lesson Slide
vertical cinematic background for motivational quote, founder working late at desk, shallow depth of field, warm lamp light, empty dark space for large text overlay
Final CTA Slide
vertical final CTA slide, restored photo held in hands, bright warm window light, clean brand-safe composition, centered empty area for call-to-action text
Operational Rules That Keep the Agent Reliable
- Run
restory creditsbefore creating batches. - Generate one test slide before a full set.
- Keep slide prompts in a structured manifest.
- Use one visual style per carousel.
- Poll jobs; never assume synchronous completion.
- Return only completed URLs to the publishing layer.
- Save failed prompts for regeneration instead of silently dropping slides.
FAQ: Automating TikTok Slides with Restory
Can an AI agent fully automate TikTok slide assets?
Yes. The agent can automate the media production layer: storyboard, generate frames, restore source photos, poll jobs, and return ordered URLs. Publishing still depends on the target tool and platform permissions.
What aspect ratio should TikTok slide agents use?
Use vertical composition when available, commonly 9:16, and call capabilities discovery before choosing the exact supported setting.
Can Restory generate both slides and videos?
Yes. Restory supports image generation and video generation. A common workflow is to generate slide frames, then animate the strongest one into a short vertical video.
How does the agent get final files?
It polls job status and uses the completed resultUrl. Restory media is delivered through Bunny CDN URLs that can be reused downstream.
Can this workflow hand off to Postiz?
Yes. Restory can produce the media URLs, and a publishing agent can pass those URLs into Postiz or another scheduler that handles social posting.
Conclusion
TikTok slideshow automation becomes practical when media generation is structured. Restory gives the agent a stable production backend: discover settings, check credits, generate or restore images, poll completions, create optional videos, and return ordered CDN URLs.
Start here: Restory agent workflows
Agent stack: Inside the Restory AI Agent Stack
Generate images: Restory image generation
Generate videos: Restory video generation
API keys: /agent