πŸ“‹ Template Overview

This Zapier.com template automatically publishes Sum Atman animation videos to YouTube and sends notifications based on story type and language. It intelligently routes content to different YouTube channels and provides Telegram notifications upon successful publishing.

πŸ”„ Workflow Structure


Step 1: Webhook Trigger

  • Catches webhook data from Sumatman's completion webhook push notification
  • Triggers when: A task completes with status "task_completed"

Step 2: Story Type Routing

The workflow branches based on the story_type field:

Left Branch (Fairytale Stories):

βœ… fairytale_story
βœ… adventure_story
βœ… educational_story
βœ… fantasy_story

Right Branch (Other Story Types):

βœ… historical_story
βœ… sci_fi_story
βœ… cinematic_story
βœ… All other story types

Step 3: Language-Based Channel Selection

For Fairytale Stories:

πŸ‡ΊπŸ‡Έ English (voice_language: "english") β†’ English Fairytale Channel
πŸ‡¨πŸ‡³ Chinese (voice_language: "chinese") β†’ Chinese Fairytale Channel

For Other Stories:

πŸ“š Historical + Chinese β†’ Special Historical Chinese Channel
🌐 Other combinations β†’ Default channels

Step 4: YouTube Publishing

  • Automatically uploads video using final_video_url
  • Sets title from youtube_video_title
  • Adds description from youtube_video_description
  • Applies tags from youtube_video_hashtags

Step 5: Telegram Notifications

  • Sends success notification with video play url
  • Includes YouTube link and task information

πŸ”— How to Get Your Zapier Webhook URL

Only the premium user of zapier can get a webhook endpoint

Method 1: From Zapier Dashboard

  1. Open your Zap in edit mode
  2. Click on the Webhook trigger (Step 1)
  3. Copy the webhook URL from the trigger settings
  4. Format: https://hooks.zapier.com/hooks/catch/[YOUR-ID]/[HOOK-ID]/

Method 2: From Zap History

  1. Go to Zap History in your Zapier account
  2. Find a successful webhook trigger
  3. View the endpoint URL used

Method 3: Test the Trigger

  1. In Zap editor, click "Test trigger"
  2. Zapier will show you the webhook URL to use
  3. Copy this URL for configuration

βš™οΈ Configuration Steps

Create a Zap follow this template and publish the new Zap. Then, you can go back to app.sumatman.ai to finish the setup.

  1. Set Up Webhook in Sumatman
  2. Go to Developer Tools β†’ Outgoing Webhooks
  3. Paste your Zapier webhook URL
  4. Click πŸš€ Send Test Data to verify
  5. Customize Channel Routing
  • English Fairytale Channel: Your main English animation channel
  • Chinese Fairytale Channel: Your Chinese animation channel
  • Historical Chinese Channel: Specialized channel for historical content
  • Default Channels: Fallback channels for other content

Configure Telegram Notifications (Optional)

  • Connect your Telegram Bot
  • Set up chat/channel IDs for notifications
  • Customize notification messages

πŸ“Š Webhook Data Structure

Your Zapier will receive this JSON structure:

{
"event": "task_completed",
"timestamp": "2025-01-23T14:43:52Z",
"user_id": "your-user-id",
"task": {
"task_id": "web_1753257831692_n33r2s467",
"code_name": "Sun Tzu's Fairytale Tactics",
"story_type": "fairytale_story",
"voice_language": "english",
"final_video_url": "https://api.sumatman.ai/video/...",
"youtube_video_title": "Your Video Title",
"youtube_video_description": "Your description...",
"youtube_video_hashtags": "#tags #here"
}
}

🎯 Key Benefits

  • βœ… Automatic Publishing - No manual upload needed
  • βœ… Smart Routing - Content goes to appropriate channels
  • βœ… Multi-language Support - English/Chinese channel separation
  • βœ… Instant Notifications - Know when videos are published
  • βœ… Scalable - Works with unlimited animations

🚨 Important Notes

  1. Test First: Always use the test webhook feature before going live
  2. Channel Permissions: Ensure Zapier has upload permissions to your YouTube channels
  3. Rate Limits: YouTube has daily upload limits - monitor your usage
  4. Backup Strategy: Consider backup channels for high-volume publishing

πŸ”§ Troubleshooting

  • Webhook not triggering? Check the URL is correctly configured in Sumatman
  • Wrong channel? Verify your story type and language conditions
  • Upload failed? Check YouTube channel permissions and quotas
  • No Telegram notification? Verify bot token and chat ID

Ready to automate your animation publishing?