Skip to main content

📋 Triggers & Actions Reference

Complete reference for all available Workflow Builder components. Every workflow is composed of three node types: triggers (entry points), conditions (branching logic), and actions (operations).


Triggers​

Triggers are the starting point of every workflow. A workflow fires when its trigger condition is met.

TriggerModel ValueDescriptionExample Use Case
Post Publishedpost_publishedFires when a post goes live on any connected platformAuto-boost new posts, send team notification
ManualmanualTriggered by a user clicking "Run" or via API callOn-demand report generation, one-off actions
Behind the Scenes

Trigger nodes have a triggerType field that maps to one of the values above. When the event occurs, the workflow engine creates a WorkflowRun with the triggerEvent JSON containing all relevant event data (post ID, platform, timestamp, etc.). The run then proceeds through the connected nodes.

tip

The post_published trigger is the most versatile — combine it with condition nodes to filter by platform, content type, or any other attribute before taking action.


Conditions​

Conditions evaluate a rule and branch the workflow into two paths: true (condition met) and false (condition not met). You can chain multiple conditions for complex logic.

Available Operators​

OperatorModel ValueDescriptionExample
EqualseqExact matchplatform eq "instagram"
Not EqualsneqDoes not matchcontentType neq "MEME"
Greater ThangtNumeric comparisonengagementRate gt 5
Greater Than or EqualgteNumeric comparisonlikes gte 100
Less ThanltNumeric comparisonhoursSincePost lt 24
Less Than or EquallteNumeric comparisoncomments lte 5
ContainscontainsSubstring matchcaption contains "#sale"
Not Containsnot_containsSubstring exclusioncaption not_contains "draft"

Common Condition Patterns​

Condition PatternWhat It Checks
Platform checkFilter by Facebook, Instagram, or TikTok
Engagement levelAbove or below a metric threshold
Content typeFilter by CAROUSEL, REEL, STATIC_IMAGE, TEXT_ONLY, VIDEO
Content categoryFilter by EDUCATIONAL, PRODUCT, PROMOTIONAL, UGC, etc.
Time windowOnly during certain hours or days
Audience segmentOnly for specific audience segments
Has CTAWhether the post contains a call-to-action
Hashtag countPosts with more/fewer than N hashtags
tip

Chain conditions to create precise targeting. For example: platform eq "instagram" → contentFormat eq "REEL" → engagementRate gt 3 → then boost the post.


Actions​

Actions are the operations your workflow performs when conditions are met. Multiple actions can be chained in sequence, and the wait action lets you add delays between steps.

ActionModel ValueDescriptionConfigurable Options
Send Notificationsend_notificationAlert team membersRecipients, channel (email/in-app/push), message template
Create Draftcreate_draftCreate a new post draftPlatform, content template, assigned reviewer
Publish Postpublish_postPublish content to a platformPlatform, account, schedule time
Send Replysend_replyAuto-reply to comments/messagesReply template, tone, personalization
WaitwaitPause workflow executionDuration (minutes, hours, days)
Boost Postboost_postCreate a paid promotionBudget, duration, targeting config (see Auto-Boost)
AI Repurpose Contentai_repurpose_contentTransform content for another platform/formatTarget platform, target format, tone adjustments

Example Workflows​

Auto-Boost High-Performing Reels​

[Trigger: post_published]
→ [Condition: platform eq "instagram"]
→ TRUE → [Condition: contentFormat eq "REEL"]
→ TRUE → [Action: wait 2 hours]
→ [Condition: engagementRate gt 5]
→ TRUE → [Action: boost_post ($20, 48h)]
→ FALSE → (end)
→ FALSE → (end)
→ FALSE → (end)

Cross-Platform Content Repurpose​

[Trigger: post_published]
→ [Condition: platform eq "instagram"]
→ TRUE → [Condition: engagementRate gt 3]
→ TRUE → [Action: ai_repurpose_content (target: TikTok)]
→ [Action: create_draft]
→ [Action: send_notification ("New repurposed draft ready for review")]
→ FALSE → (end)
→ FALSE → (end)

Negative Comment Escalation​

[Trigger: post_published]
→ [Action: wait 1 hour]
→ [Condition: comments gt 0]
→ TRUE → [Action: send_notification ("Review comments on new post")]
→ FALSE → (end)

Node Execution & Results​

When a workflow runs, each node that executes produces a result stored in the WorkflowRun's nodeResults JSON array. Each result includes:

  • Node ID — Which node ran
  • Status — Success or failure
  • Duration — How long the node took to execute
  • Output — Any data produced (e.g., the boosted ad ID, the created draft ID)
  • Error — Error details if the node failed

View run history at GET /workflows/:id/runs to debug and optimize your workflows.

warning

If an action node fails (e.g., ad account has insufficient budget for boost_post), the workflow run status is set to FAILED. Check the nodeResults to identify the failing node and fix the configuration.