Always Provide Fallbacks
Your templates should gracefully handle empty or missing values.Layer Type | Best Practice |
---|---|
Text | Set a default like “(Missing Title)“ |
Image | Use a neutral brand logo or placeholder |
Audio | Default to silent.mp3 or fallback narration |
if
expressions or fallback layers hidden by default.
Implement Retry Logic
Sometimes jobs can fail due to:- Transient render errors
- Temporary asset access issues
- Internal AE limitations
- Build retries into your webhook processor
- Query job status with
GET /jobs/:id
and retry failed states - Use a queue system that retries
status = error
Validate Assets Before Submit
Before rendering, always validate:composition
name exists (from template introspection)layerName
matches exactly- URLs for assets return a
200 OK
- Font dependencies have been preloaded
Use Webhooks to Avoid Polling
Set awebhook.url
so your system is notified when jobs complete.