Automations
Create Automation
Create a new automation workflow. events must contain exactly one trigger event with its nested actions.
POST
/
automations
Create automation
curl --request POST \
--url https://app.socialsyncs.co/api/public/v1/automations \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"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": []
}
]
}
}
]
}
]
}
'import requests
url = "https://app.socialsyncs.co/api/public/v1/automations"
payload = {
"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": None,
"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": []
}
]
}
}
]
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
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: []
}
]
}
}
]
}
]
})
};
fetch('https://app.socialsyncs.co/api/public/v1/automations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.socialsyncs.co/api/public/v1/automations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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' => [
]
]
]
]
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.socialsyncs.co/api/public/v1/automations"
payload := strings.NewReader("{\n \"name\": \"Comment Reply Flow\",\n \"integration_id\": \"your-integration-id\",\n \"is_active\": true,\n \"events\": [\n {\n \"event_type\": \"trigger\",\n \"event_category\": \"post_comment\",\n \"event_uuid\": \"t1\",\n \"previous_event_uuid\": null,\n \"is_active\": true,\n \"event_config\": {\n \"comment_config\": {\n \"all_comments\": true,\n \"keywords\": [\n \"price\",\n \"cost\"\n ],\n \"excluded_keywords\": [],\n \"fuzzy_match_allowed\": false,\n \"fuzzy_match_percentage\": 80\n },\n \"post_config\": {\n \"all_posts\": true,\n \"post_ids\": [],\n \"upcoming_posts\": false\n }\n },\n \"actions\": [\n {\n \"event_type\": \"action\",\n \"event_category\": \"reply_to_comment\",\n \"event_uuid\": \"a1\",\n \"previous_event_uuid\": \"t1\",\n \"is_active\": true,\n \"event_config\": {\n \"reply_type\": \"templates\",\n \"templates\": [\n \"Check your DMs 👋\",\n \"Just sent you a message 📩\"\n ]\n }\n },\n {\n \"event_type\": \"action\",\n \"event_category\": \"send_dm\",\n \"event_uuid\": \"a2\",\n \"previous_event_uuid\": \"a1\",\n \"is_active\": true,\n \"event_config\": {\n \"dm_type\": \"text_button\",\n \"templates\": [\n {\n \"title\": \"Hey! Here is our pricing: https://example.com/pricing\",\n \"subtitle\": \"\",\n \"buttons\": [],\n \"media_config\": []\n }\n ]\n }\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.socialsyncs.co/api/public/v1/automations")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Comment Reply Flow\",\n \"integration_id\": \"your-integration-id\",\n \"is_active\": true,\n \"events\": [\n {\n \"event_type\": \"trigger\",\n \"event_category\": \"post_comment\",\n \"event_uuid\": \"t1\",\n \"previous_event_uuid\": null,\n \"is_active\": true,\n \"event_config\": {\n \"comment_config\": {\n \"all_comments\": true,\n \"keywords\": [\n \"price\",\n \"cost\"\n ],\n \"excluded_keywords\": [],\n \"fuzzy_match_allowed\": false,\n \"fuzzy_match_percentage\": 80\n },\n \"post_config\": {\n \"all_posts\": true,\n \"post_ids\": [],\n \"upcoming_posts\": false\n }\n },\n \"actions\": [\n {\n \"event_type\": \"action\",\n \"event_category\": \"reply_to_comment\",\n \"event_uuid\": \"a1\",\n \"previous_event_uuid\": \"t1\",\n \"is_active\": true,\n \"event_config\": {\n \"reply_type\": \"templates\",\n \"templates\": [\n \"Check your DMs 👋\",\n \"Just sent you a message 📩\"\n ]\n }\n },\n {\n \"event_type\": \"action\",\n \"event_category\": \"send_dm\",\n \"event_uuid\": \"a2\",\n \"previous_event_uuid\": \"a1\",\n \"is_active\": true,\n \"event_config\": {\n \"dm_type\": \"text_button\",\n \"templates\": [\n {\n \"title\": \"Hey! Here is our pricing: https://example.com/pricing\",\n \"subtitle\": \"\",\n \"buttons\": [],\n \"media_config\": []\n }\n ]\n }\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.socialsyncs.co/api/public/v1/automations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Comment Reply Flow\",\n \"integration_id\": \"your-integration-id\",\n \"is_active\": true,\n \"events\": [\n {\n \"event_type\": \"trigger\",\n \"event_category\": \"post_comment\",\n \"event_uuid\": \"t1\",\n \"previous_event_uuid\": null,\n \"is_active\": true,\n \"event_config\": {\n \"comment_config\": {\n \"all_comments\": true,\n \"keywords\": [\n \"price\",\n \"cost\"\n ],\n \"excluded_keywords\": [],\n \"fuzzy_match_allowed\": false,\n \"fuzzy_match_percentage\": 80\n },\n \"post_config\": {\n \"all_posts\": true,\n \"post_ids\": [],\n \"upcoming_posts\": false\n }\n },\n \"actions\": [\n {\n \"event_type\": \"action\",\n \"event_category\": \"reply_to_comment\",\n \"event_uuid\": \"a1\",\n \"previous_event_uuid\": \"t1\",\n \"is_active\": true,\n \"event_config\": {\n \"reply_type\": \"templates\",\n \"templates\": [\n \"Check your DMs 👋\",\n \"Just sent you a message 📩\"\n ]\n }\n },\n {\n \"event_type\": \"action\",\n \"event_category\": \"send_dm\",\n \"event_uuid\": \"a2\",\n \"previous_event_uuid\": \"a1\",\n \"is_active\": true,\n \"event_config\": {\n \"dm_type\": \"text_button\",\n \"templates\": [\n {\n \"title\": \"Hey! Here is our pricing: https://example.com/pricing\",\n \"subtitle\": \"\",\n \"buttons\": [],\n \"media_config\": []\n }\n ]\n }\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "clx1a2b3c4",
"name": "Comment Reply Flow",
"integrationId": "your-integration-id",
"active": true,
"successCount": 12,
"failureCount": 0,
"createdAt": "2023-11-07T05:31:56Z"
}Authorizations
Your SocialSyncs API key
Body
application/json
Response
200 - application/json
Successful response
Example:
"clx1a2b3c4"
Example:
"Comment Reply Flow"
Example:
"your-integration-id"
Available options:
COMMENT, STORY_REPLY, DM_KEYWORD Available options:
SEND_DM, REPLY_TO_COMMENT Example:
true
Example:
12
Example:
0
⌘I
Create automation
curl --request POST \
--url https://app.socialsyncs.co/api/public/v1/automations \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"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": []
}
]
}
}
]
}
]
}
'import requests
url = "https://app.socialsyncs.co/api/public/v1/automations"
payload = {
"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": None,
"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": []
}
]
}
}
]
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
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: []
}
]
}
}
]
}
]
})
};
fetch('https://app.socialsyncs.co/api/public/v1/automations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.socialsyncs.co/api/public/v1/automations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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' => [
]
]
]
]
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.socialsyncs.co/api/public/v1/automations"
payload := strings.NewReader("{\n \"name\": \"Comment Reply Flow\",\n \"integration_id\": \"your-integration-id\",\n \"is_active\": true,\n \"events\": [\n {\n \"event_type\": \"trigger\",\n \"event_category\": \"post_comment\",\n \"event_uuid\": \"t1\",\n \"previous_event_uuid\": null,\n \"is_active\": true,\n \"event_config\": {\n \"comment_config\": {\n \"all_comments\": true,\n \"keywords\": [\n \"price\",\n \"cost\"\n ],\n \"excluded_keywords\": [],\n \"fuzzy_match_allowed\": false,\n \"fuzzy_match_percentage\": 80\n },\n \"post_config\": {\n \"all_posts\": true,\n \"post_ids\": [],\n \"upcoming_posts\": false\n }\n },\n \"actions\": [\n {\n \"event_type\": \"action\",\n \"event_category\": \"reply_to_comment\",\n \"event_uuid\": \"a1\",\n \"previous_event_uuid\": \"t1\",\n \"is_active\": true,\n \"event_config\": {\n \"reply_type\": \"templates\",\n \"templates\": [\n \"Check your DMs 👋\",\n \"Just sent you a message 📩\"\n ]\n }\n },\n {\n \"event_type\": \"action\",\n \"event_category\": \"send_dm\",\n \"event_uuid\": \"a2\",\n \"previous_event_uuid\": \"a1\",\n \"is_active\": true,\n \"event_config\": {\n \"dm_type\": \"text_button\",\n \"templates\": [\n {\n \"title\": \"Hey! Here is our pricing: https://example.com/pricing\",\n \"subtitle\": \"\",\n \"buttons\": [],\n \"media_config\": []\n }\n ]\n }\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.socialsyncs.co/api/public/v1/automations")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Comment Reply Flow\",\n \"integration_id\": \"your-integration-id\",\n \"is_active\": true,\n \"events\": [\n {\n \"event_type\": \"trigger\",\n \"event_category\": \"post_comment\",\n \"event_uuid\": \"t1\",\n \"previous_event_uuid\": null,\n \"is_active\": true,\n \"event_config\": {\n \"comment_config\": {\n \"all_comments\": true,\n \"keywords\": [\n \"price\",\n \"cost\"\n ],\n \"excluded_keywords\": [],\n \"fuzzy_match_allowed\": false,\n \"fuzzy_match_percentage\": 80\n },\n \"post_config\": {\n \"all_posts\": true,\n \"post_ids\": [],\n \"upcoming_posts\": false\n }\n },\n \"actions\": [\n {\n \"event_type\": \"action\",\n \"event_category\": \"reply_to_comment\",\n \"event_uuid\": \"a1\",\n \"previous_event_uuid\": \"t1\",\n \"is_active\": true,\n \"event_config\": {\n \"reply_type\": \"templates\",\n \"templates\": [\n \"Check your DMs 👋\",\n \"Just sent you a message 📩\"\n ]\n }\n },\n {\n \"event_type\": \"action\",\n \"event_category\": \"send_dm\",\n \"event_uuid\": \"a2\",\n \"previous_event_uuid\": \"a1\",\n \"is_active\": true,\n \"event_config\": {\n \"dm_type\": \"text_button\",\n \"templates\": [\n {\n \"title\": \"Hey! Here is our pricing: https://example.com/pricing\",\n \"subtitle\": \"\",\n \"buttons\": [],\n \"media_config\": []\n }\n ]\n }\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.socialsyncs.co/api/public/v1/automations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Comment Reply Flow\",\n \"integration_id\": \"your-integration-id\",\n \"is_active\": true,\n \"events\": [\n {\n \"event_type\": \"trigger\",\n \"event_category\": \"post_comment\",\n \"event_uuid\": \"t1\",\n \"previous_event_uuid\": null,\n \"is_active\": true,\n \"event_config\": {\n \"comment_config\": {\n \"all_comments\": true,\n \"keywords\": [\n \"price\",\n \"cost\"\n ],\n \"excluded_keywords\": [],\n \"fuzzy_match_allowed\": false,\n \"fuzzy_match_percentage\": 80\n },\n \"post_config\": {\n \"all_posts\": true,\n \"post_ids\": [],\n \"upcoming_posts\": false\n }\n },\n \"actions\": [\n {\n \"event_type\": \"action\",\n \"event_category\": \"reply_to_comment\",\n \"event_uuid\": \"a1\",\n \"previous_event_uuid\": \"t1\",\n \"is_active\": true,\n \"event_config\": {\n \"reply_type\": \"templates\",\n \"templates\": [\n \"Check your DMs 👋\",\n \"Just sent you a message 📩\"\n ]\n }\n },\n {\n \"event_type\": \"action\",\n \"event_category\": \"send_dm\",\n \"event_uuid\": \"a2\",\n \"previous_event_uuid\": \"a1\",\n \"is_active\": true,\n \"event_config\": {\n \"dm_type\": \"text_button\",\n \"templates\": [\n {\n \"title\": \"Hey! Here is our pricing: https://example.com/pricing\",\n \"subtitle\": \"\",\n \"buttons\": [],\n \"media_config\": []\n }\n ]\n }\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "clx1a2b3c4",
"name": "Comment Reply Flow",
"integrationId": "your-integration-id",
"active": true,
"successCount": 12,
"failureCount": 0,
"createdAt": "2023-11-07T05:31:56Z"
}