SOCIAL MEDIA

On CMS Publish, Generate Multi-Variant Clips and Archive to S3

A webhook from your CMS publish event triggers Replicate to render several aspect-ratio clip variants from the post image, archives them to S3.

CategorySocial Media
Enginesim
Difficultyadvanced
Triggerwebhook
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerCMS publish webhook receivedHTTP webhook
  • LogicValidate payload and hero image
  • ActionRender 9:16, 1:1, 16:9 clip variantsReplicateReplicate
  • ActionArchive all variants to S3AWS S3
  • LogicMap each platform to best-fit variant
  • OutputPublish matched variant per platformSocial publishing

What it does

Listens for a publish webhook from your headless CMS. For each newly published post it sends the hero image to Replicate to render multiple clip variants (9:16, 1:1, and 16:9), archives every variant to an S3 bucket for reuse, and publishes the platform-appropriate variant to each social channel in one pass.

When to use it

Use it when you publish from a custom or headless CMS and want platform-native aspect ratios instead of one-size-fits-all. Ideal for teams that need a durable asset archive and want each network to get the right crop automatically.

How it works

  1. 1An HTTP webhook receives the CMS publish event payload.
  2. 2A logic step validates the payload and confirms a hero image URL is present.
  3. 3Replicate renders three clip variants at different aspect ratios from the image.
  4. 4An action uploads all variants to an S3 archive path keyed by post slug.
  5. 5A logic step maps each platform to its best-fit variant.
  6. 6Post-to-platforms publishes the matched variant to each connected social channel.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect HTTP webhookTrigger any URL on agent actions.
  2. 2
    Connect ReplicateImage, video, and model inference.
  3. 3
    Connect AWS S3Buckets, objects, signed URLs.
  4. 4
    Connect Social publishingCross-post to X, LinkedIn, Instagram, TikTok, and 4 more in one call.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.