Workflows Run
curl --request POST \
--url https://api.intelligence.io.solutions/api/v1/workflows/run \
--header 'Content-Type: application/json' \
--data '
{
"objective": "<string>",
"agent_names": [
"<string>"
],
"args": {
"type": "<string>",
"name": "<string>",
"instructions": {},
"classify_by": [
"<string>"
],
"objective": "<string>",
"threshold": 123,
"target_language": "<string>",
"max_words": 123,
"context": {}
}
}
'import requests
url = "https://api.intelligence.io.solutions/api/v1/workflows/run"
payload = {
"objective": "<string>",
"agent_names": ["<string>"],
"args": {
"type": "<string>",
"name": "<string>",
"instructions": {},
"classify_by": ["<string>"],
"objective": "<string>",
"threshold": 123,
"target_language": "<string>",
"max_words": 123,
"context": {}
}
}
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({
objective: '<string>',
agent_names: ['<string>'],
args: {
type: '<string>',
name: '<string>',
instructions: {},
classify_by: ['<string>'],
objective: '<string>',
threshold: 123,
target_language: '<string>',
max_words: 123,
context: {}
}
})
};
fetch('https://api.intelligence.io.solutions/api/v1/workflows/run', 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://api.intelligence.io.solutions/api/v1/workflows/run",
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([
'objective' => '<string>',
'agent_names' => [
'<string>'
],
'args' => [
'type' => '<string>',
'name' => '<string>',
'instructions' => [
],
'classify_by' => [
'<string>'
],
'objective' => '<string>',
'threshold' => 123,
'target_language' => '<string>',
'max_words' => 123,
'context' => [
]
]
]),
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://api.intelligence.io.solutions/api/v1/workflows/run"
payload := strings.NewReader("{\n \"objective\": \"<string>\",\n \"agent_names\": [\n \"<string>\"\n ],\n \"args\": {\n \"type\": \"<string>\",\n \"name\": \"<string>\",\n \"instructions\": {},\n \"classify_by\": [\n \"<string>\"\n ],\n \"objective\": \"<string>\",\n \"threshold\": 123,\n \"target_language\": \"<string>\",\n \"max_words\": 123,\n \"context\": {}\n }\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://api.intelligence.io.solutions/api/v1/workflows/run")
.header("Content-Type", "application/json")
.body("{\n \"objective\": \"<string>\",\n \"agent_names\": [\n \"<string>\"\n ],\n \"args\": {\n \"type\": \"<string>\",\n \"name\": \"<string>\",\n \"instructions\": {},\n \"classify_by\": [\n \"<string>\"\n ],\n \"objective\": \"<string>\",\n \"threshold\": 123,\n \"target_language\": \"<string>\",\n \"max_words\": 123,\n \"context\": {}\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.intelligence.io.solutions/api/v1/workflows/run")
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 \"objective\": \"<string>\",\n \"agent_names\": [\n \"<string>\"\n ],\n \"args\": {\n \"type\": \"<string>\",\n \"name\": \"<string>\",\n \"instructions\": {},\n \"classify_by\": [\n \"<string>\"\n ],\n \"objective\": \"<string>\",\n \"threshold\": 123,\n \"target_language\": \"<string>\",\n \"max_words\": 123,\n \"context\": {}\n }\n}"
response = http.request(request)
puts response.read_body{
"result": {
"summary": "AI transforms businesses with automation, data-driven insights, and enhanced decision-making. It improves efficiency and customer experience.",
"key_points": [
"AI in customer service",
"AI-powered analytics",
"Challenges with ethical concerns and data privacy"
]
}
}string{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}Getting Started with AI Agents API
Workflows Run
POST
/
api
/
v1
/
workflows
/
run
Workflows Run
curl --request POST \
--url https://api.intelligence.io.solutions/api/v1/workflows/run \
--header 'Content-Type: application/json' \
--data '
{
"objective": "<string>",
"agent_names": [
"<string>"
],
"args": {
"type": "<string>",
"name": "<string>",
"instructions": {},
"classify_by": [
"<string>"
],
"objective": "<string>",
"threshold": 123,
"target_language": "<string>",
"max_words": 123,
"context": {}
}
}
'import requests
url = "https://api.intelligence.io.solutions/api/v1/workflows/run"
payload = {
"objective": "<string>",
"agent_names": ["<string>"],
"args": {
"type": "<string>",
"name": "<string>",
"instructions": {},
"classify_by": ["<string>"],
"objective": "<string>",
"threshold": 123,
"target_language": "<string>",
"max_words": 123,
"context": {}
}
}
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({
objective: '<string>',
agent_names: ['<string>'],
args: {
type: '<string>',
name: '<string>',
instructions: {},
classify_by: ['<string>'],
objective: '<string>',
threshold: 123,
target_language: '<string>',
max_words: 123,
context: {}
}
})
};
fetch('https://api.intelligence.io.solutions/api/v1/workflows/run', 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://api.intelligence.io.solutions/api/v1/workflows/run",
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([
'objective' => '<string>',
'agent_names' => [
'<string>'
],
'args' => [
'type' => '<string>',
'name' => '<string>',
'instructions' => [
],
'classify_by' => [
'<string>'
],
'objective' => '<string>',
'threshold' => 123,
'target_language' => '<string>',
'max_words' => 123,
'context' => [
]
]
]),
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://api.intelligence.io.solutions/api/v1/workflows/run"
payload := strings.NewReader("{\n \"objective\": \"<string>\",\n \"agent_names\": [\n \"<string>\"\n ],\n \"args\": {\n \"type\": \"<string>\",\n \"name\": \"<string>\",\n \"instructions\": {},\n \"classify_by\": [\n \"<string>\"\n ],\n \"objective\": \"<string>\",\n \"threshold\": 123,\n \"target_language\": \"<string>\",\n \"max_words\": 123,\n \"context\": {}\n }\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://api.intelligence.io.solutions/api/v1/workflows/run")
.header("Content-Type", "application/json")
.body("{\n \"objective\": \"<string>\",\n \"agent_names\": [\n \"<string>\"\n ],\n \"args\": {\n \"type\": \"<string>\",\n \"name\": \"<string>\",\n \"instructions\": {},\n \"classify_by\": [\n \"<string>\"\n ],\n \"objective\": \"<string>\",\n \"threshold\": 123,\n \"target_language\": \"<string>\",\n \"max_words\": 123,\n \"context\": {}\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.intelligence.io.solutions/api/v1/workflows/run")
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 \"objective\": \"<string>\",\n \"agent_names\": [\n \"<string>\"\n ],\n \"args\": {\n \"type\": \"<string>\",\n \"name\": \"<string>\",\n \"instructions\": {},\n \"classify_by\": [\n \"<string>\"\n ],\n \"objective\": \"<string>\",\n \"threshold\": 123,\n \"target_language\": \"<string>\",\n \"max_words\": 123,\n \"context\": {}\n }\n}"
response = http.request(request)
puts response.read_body{
"result": {
"summary": "AI transforms businesses with automation, data-driven insights, and enhanced decision-making. It improves efficiency and customer experience.",
"key_points": [
"AI in customer service",
"AI-powered analytics",
"Challenges with ethical concerns and data privacy"
]
}
}string{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}Body
application/json
The input text that will be analyzed, classified, summarized, translated, or processed by AI agents.
A list of AI agents that will process the input text. Available agents include reasoning, sentiment analysis, classification, summarization, translation, and more.
Parameters required for a specific AI workflow. The structure varies depending on the selected workflow.
Show child attributes
Show child attributes
Response
200
Show child attributes
Show child attributes