curl -X POST "https://api.socialsyncs.co/public/v1/automations" \
-H "Authorization: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "Comment Reply Flow",
"integration_id": "your-integration-id",
"is_active": true,
"events": [
{
"event_type": "trigger",
"event_category": "post_comment",
"event_uuid": "t1",
"previous_event_uuid": null,
"is_active": true,
"event_config": {
"comment_config": {
"all_comments": true,
"keywords": ["price", "cost"],
"excluded_keywords": [],
"fuzzy_match_allowed": false,
"fuzzy_match_percentage": 80
},
"post_config": {
"all_posts": true,
"post_ids": [],
"upcoming_posts": false
}
},
"actions": [
{
"event_type": "action",
"event_category": "reply_to_comment",
"event_uuid": "a1",
"previous_event_uuid": "t1",
"is_active": true,
"event_config": {
"reply_type": "templates",
"templates": ["Check your DMs 👋", "Just sent you a message 📩"]
}
},
{
"event_type": "action",
"event_category": "send_dm",
"event_uuid": "a2",
"previous_event_uuid": "a1",
"is_active": true,
"event_config": {
"dm_type": "text_button",
"templates": [
{
"title": "Hey! Here is our pricing: https://example.com/pricing",
"subtitle": "",
"buttons": [],
"media_config": []
}
]
}
}
]
}
]
}'