π 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 thepremium
user of zapier can get awebhook endpoint
Method 1: From Zapier Dashboard
- Open your Zap in edit mode
- Click on the Webhook trigger (Step 1)
- Copy the webhook URL from the trigger settings
- Format: https://hooks.zapier.com/hooks/catch/[YOUR-ID]/[HOOK-ID]/
Method 2: From Zap History
- Go to Zap History in your Zapier account
- Find a successful webhook trigger
- View the endpoint URL used
Method 3: Test the Trigger
- In Zap editor, click "Test trigger"
- Zapier will show you the webhook URL to use
- 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.
- Set Up Webhook in Sumatman
- Go to Developer Tools β Outgoing Webhooks
- Paste your Zapier webhook URL
- Click π
Send Test Data
to verify - 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
- Test First: Always use the test webhook feature before going live
- Channel Permissions: Ensure Zapier has upload permissions to your YouTube channels
- Rate Limits: YouTube has daily upload limits - monitor your usage
- 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?