Create Workflow
curl --request POST \
--url https://agent.crowdlisten.com/agent/v1/research/workflows \
--header 'Content-Type: application/json' \
--data '
{
"request_id": "<string>",
"entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"goal": "<string>",
"source_selection": {
"x_accounts": [
"<string>"
],
"x_account_targets": [
{
"target": "<string>",
"role": "unknown",
"organization_affiliation": {
"organization_id": "<string>",
"organization_username": "<string>",
"account_id": "<string>",
"observed_at": "2023-11-07T05:31:56Z"
}
}
],
"date_range_days": 30,
"saved_content_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"import_text": ""
},
"executor": {},
"max_charge_cents": 5000,
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://agent.crowdlisten.com/agent/v1/research/workflows"
payload = {
"request_id": "<string>",
"entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"goal": "<string>",
"source_selection": {
"x_accounts": ["<string>"],
"x_account_targets": [
{
"target": "<string>",
"role": "unknown",
"organization_affiliation": {
"organization_id": "<string>",
"organization_username": "<string>",
"account_id": "<string>",
"observed_at": "2023-11-07T05:31:56Z"
}
}
],
"date_range_days": 30,
"saved_content_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"import_text": ""
},
"executor": {},
"max_charge_cents": 5000,
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
request_id: '<string>',
entity_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
goal: '<string>',
source_selection: {
x_accounts: ['<string>'],
x_account_targets: [
{
target: '<string>',
role: 'unknown',
organization_affiliation: {
organization_id: '<string>',
organization_username: '<string>',
account_id: '<string>',
observed_at: '2023-11-07T05:31:56Z'
}
}
],
date_range_days: 30,
saved_content_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
import_text: ''
},
executor: {},
max_charge_cents: 5000,
workspace_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://agent.crowdlisten.com/agent/v1/research/workflows', 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://agent.crowdlisten.com/agent/v1/research/workflows",
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([
'request_id' => '<string>',
'entity_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'goal' => '<string>',
'source_selection' => [
'x_accounts' => [
'<string>'
],
'x_account_targets' => [
[
'target' => '<string>',
'role' => 'unknown',
'organization_affiliation' => [
'organization_id' => '<string>',
'organization_username' => '<string>',
'account_id' => '<string>',
'observed_at' => '2023-11-07T05:31:56Z'
]
]
],
'date_range_days' => 30,
'saved_content_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'import_text' => ''
],
'executor' => [
],
'max_charge_cents' => 5000,
'workspace_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"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://agent.crowdlisten.com/agent/v1/research/workflows"
payload := strings.NewReader("{\n \"request_id\": \"<string>\",\n \"entity_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"goal\": \"<string>\",\n \"source_selection\": {\n \"x_accounts\": [\n \"<string>\"\n ],\n \"x_account_targets\": [\n {\n \"target\": \"<string>\",\n \"role\": \"unknown\",\n \"organization_affiliation\": {\n \"organization_id\": \"<string>\",\n \"organization_username\": \"<string>\",\n \"account_id\": \"<string>\",\n \"observed_at\": \"2023-11-07T05:31:56Z\"\n }\n }\n ],\n \"date_range_days\": 30,\n \"saved_content_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"import_text\": \"\"\n },\n \"executor\": {},\n \"max_charge_cents\": 5000,\n \"workspace_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://agent.crowdlisten.com/agent/v1/research/workflows")
.header("Content-Type", "application/json")
.body("{\n \"request_id\": \"<string>\",\n \"entity_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"goal\": \"<string>\",\n \"source_selection\": {\n \"x_accounts\": [\n \"<string>\"\n ],\n \"x_account_targets\": [\n {\n \"target\": \"<string>\",\n \"role\": \"unknown\",\n \"organization_affiliation\": {\n \"organization_id\": \"<string>\",\n \"organization_username\": \"<string>\",\n \"account_id\": \"<string>\",\n \"observed_at\": \"2023-11-07T05:31:56Z\"\n }\n }\n ],\n \"date_range_days\": 30,\n \"saved_content_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"import_text\": \"\"\n },\n \"executor\": {},\n \"max_charge_cents\": 5000,\n \"workspace_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agent.crowdlisten.com/agent/v1/research/workflows")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"request_id\": \"<string>\",\n \"entity_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"goal\": \"<string>\",\n \"source_selection\": {\n \"x_accounts\": [\n \"<string>\"\n ],\n \"x_account_targets\": [\n {\n \"target\": \"<string>\",\n \"role\": \"unknown\",\n \"organization_affiliation\": {\n \"organization_id\": \"<string>\",\n \"organization_username\": \"<string>\",\n \"account_id\": \"<string>\",\n \"observed_at\": \"2023-11-07T05:31:56Z\"\n }\n }\n ],\n \"date_range_days\": 30,\n \"saved_content_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"import_text\": \"\"\n },\n \"executor\": {},\n \"max_charge_cents\": 5000,\n \"workspace_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}research
Create Workflow
POST
/
agent
/
v1
/
research
/
workflows
Create Workflow
curl --request POST \
--url https://agent.crowdlisten.com/agent/v1/research/workflows \
--header 'Content-Type: application/json' \
--data '
{
"request_id": "<string>",
"entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"goal": "<string>",
"source_selection": {
"x_accounts": [
"<string>"
],
"x_account_targets": [
{
"target": "<string>",
"role": "unknown",
"organization_affiliation": {
"organization_id": "<string>",
"organization_username": "<string>",
"account_id": "<string>",
"observed_at": "2023-11-07T05:31:56Z"
}
}
],
"date_range_days": 30,
"saved_content_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"import_text": ""
},
"executor": {},
"max_charge_cents": 5000,
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://agent.crowdlisten.com/agent/v1/research/workflows"
payload = {
"request_id": "<string>",
"entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"goal": "<string>",
"source_selection": {
"x_accounts": ["<string>"],
"x_account_targets": [
{
"target": "<string>",
"role": "unknown",
"organization_affiliation": {
"organization_id": "<string>",
"organization_username": "<string>",
"account_id": "<string>",
"observed_at": "2023-11-07T05:31:56Z"
}
}
],
"date_range_days": 30,
"saved_content_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"import_text": ""
},
"executor": {},
"max_charge_cents": 5000,
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
request_id: '<string>',
entity_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
goal: '<string>',
source_selection: {
x_accounts: ['<string>'],
x_account_targets: [
{
target: '<string>',
role: 'unknown',
organization_affiliation: {
organization_id: '<string>',
organization_username: '<string>',
account_id: '<string>',
observed_at: '2023-11-07T05:31:56Z'
}
}
],
date_range_days: 30,
saved_content_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
import_text: ''
},
executor: {},
max_charge_cents: 5000,
workspace_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://agent.crowdlisten.com/agent/v1/research/workflows', 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://agent.crowdlisten.com/agent/v1/research/workflows",
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([
'request_id' => '<string>',
'entity_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'goal' => '<string>',
'source_selection' => [
'x_accounts' => [
'<string>'
],
'x_account_targets' => [
[
'target' => '<string>',
'role' => 'unknown',
'organization_affiliation' => [
'organization_id' => '<string>',
'organization_username' => '<string>',
'account_id' => '<string>',
'observed_at' => '2023-11-07T05:31:56Z'
]
]
],
'date_range_days' => 30,
'saved_content_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'import_text' => ''
],
'executor' => [
],
'max_charge_cents' => 5000,
'workspace_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"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://agent.crowdlisten.com/agent/v1/research/workflows"
payload := strings.NewReader("{\n \"request_id\": \"<string>\",\n \"entity_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"goal\": \"<string>\",\n \"source_selection\": {\n \"x_accounts\": [\n \"<string>\"\n ],\n \"x_account_targets\": [\n {\n \"target\": \"<string>\",\n \"role\": \"unknown\",\n \"organization_affiliation\": {\n \"organization_id\": \"<string>\",\n \"organization_username\": \"<string>\",\n \"account_id\": \"<string>\",\n \"observed_at\": \"2023-11-07T05:31:56Z\"\n }\n }\n ],\n \"date_range_days\": 30,\n \"saved_content_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"import_text\": \"\"\n },\n \"executor\": {},\n \"max_charge_cents\": 5000,\n \"workspace_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://agent.crowdlisten.com/agent/v1/research/workflows")
.header("Content-Type", "application/json")
.body("{\n \"request_id\": \"<string>\",\n \"entity_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"goal\": \"<string>\",\n \"source_selection\": {\n \"x_accounts\": [\n \"<string>\"\n ],\n \"x_account_targets\": [\n {\n \"target\": \"<string>\",\n \"role\": \"unknown\",\n \"organization_affiliation\": {\n \"organization_id\": \"<string>\",\n \"organization_username\": \"<string>\",\n \"account_id\": \"<string>\",\n \"observed_at\": \"2023-11-07T05:31:56Z\"\n }\n }\n ],\n \"date_range_days\": 30,\n \"saved_content_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"import_text\": \"\"\n },\n \"executor\": {},\n \"max_charge_cents\": 5000,\n \"workspace_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agent.crowdlisten.com/agent/v1/research/workflows")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"request_id\": \"<string>\",\n \"entity_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"goal\": \"<string>\",\n \"source_selection\": {\n \"x_accounts\": [\n \"<string>\"\n ],\n \"x_account_targets\": [\n {\n \"target\": \"<string>\",\n \"role\": \"unknown\",\n \"organization_affiliation\": {\n \"organization_id\": \"<string>\",\n \"organization_username\": \"<string>\",\n \"account_id\": \"<string>\",\n \"observed_at\": \"2023-11-07T05:31:56Z\"\n }\n }\n ],\n \"date_range_days\": 30,\n \"saved_content_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"import_text\": \"\"\n },\n \"executor\": {},\n \"max_charge_cents\": 5000,\n \"workspace_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Body
application/json
Required string length:
8 - 128Required string length:
1 - 1000Show child attributes
Show child attributes
Available options:
competitive-positioning, marketing-strategy, affiliate-tracking, own-account-performance, feedback-synthesis, developer-experience Show child attributes
Show child attributes
Required range:
1 <= x <= 10000Response
Successful Response