Run Builtin Workflow
curl --request POST \
--url https://api.intelligence.io.solutions/api/v1/workflows/run \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_names": [
"<string>"
],
"text": "<string>",
"objective": "<string>",
"persona": {
"name": "<string>",
"age": 2,
"role": "<string>",
"style": "<string>",
"domain_knowledge": [
"<string>"
],
"quirks": "<string>",
"bio": "<string>",
"lore": "<string>",
"personality": "<string>",
"conversation_style": "<string>",
"description": "<string>",
"friendliness": 123,
"creativity": 123,
"curiosity": 123,
"empathy": 123,
"humor": 123,
"formality": 123,
"emotional_stability": 123
},
"args": {
"type": "<string>"
}
}
'import requests
url = "https://api.intelligence.io.solutions/api/v1/workflows/run"
payload = {
"agent_names": ["<string>"],
"text": "<string>",
"objective": "<string>",
"persona": {
"name": "<string>",
"age": 2,
"role": "<string>",
"style": "<string>",
"domain_knowledge": ["<string>"],
"quirks": "<string>",
"bio": "<string>",
"lore": "<string>",
"personality": "<string>",
"conversation_style": "<string>",
"description": "<string>",
"friendliness": 123,
"creativity": 123,
"curiosity": 123,
"empathy": 123,
"humor": 123,
"formality": 123,
"emotional_stability": 123
},
"args": { "type": "<string>" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent_names: ['<string>'],
text: '<string>',
objective: '<string>',
persona: {
name: '<string>',
age: 2,
role: '<string>',
style: '<string>',
domain_knowledge: ['<string>'],
quirks: '<string>',
bio: '<string>',
lore: '<string>',
personality: '<string>',
conversation_style: '<string>',
description: '<string>',
friendliness: 123,
creativity: 123,
curiosity: 123,
empathy: 123,
humor: 123,
formality: 123,
emotional_stability: 123
},
args: {type: '<string>'}
})
};
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([
'agent_names' => [
'<string>'
],
'text' => '<string>',
'objective' => '<string>',
'persona' => [
'name' => '<string>',
'age' => 2,
'role' => '<string>',
'style' => '<string>',
'domain_knowledge' => [
'<string>'
],
'quirks' => '<string>',
'bio' => '<string>',
'lore' => '<string>',
'personality' => '<string>',
'conversation_style' => '<string>',
'description' => '<string>',
'friendliness' => 123,
'creativity' => 123,
'curiosity' => 123,
'empathy' => 123,
'humor' => 123,
'formality' => 123,
'emotional_stability' => 123
],
'args' => [
'type' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 \"agent_names\": [\n \"<string>\"\n ],\n \"text\": \"<string>\",\n \"objective\": \"<string>\",\n \"persona\": {\n \"name\": \"<string>\",\n \"age\": 2,\n \"role\": \"<string>\",\n \"style\": \"<string>\",\n \"domain_knowledge\": [\n \"<string>\"\n ],\n \"quirks\": \"<string>\",\n \"bio\": \"<string>\",\n \"lore\": \"<string>\",\n \"personality\": \"<string>\",\n \"conversation_style\": \"<string>\",\n \"description\": \"<string>\",\n \"friendliness\": 123,\n \"creativity\": 123,\n \"curiosity\": 123,\n \"empathy\": 123,\n \"humor\": 123,\n \"formality\": 123,\n \"emotional_stability\": 123\n },\n \"args\": {\n \"type\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_names\": [\n \"<string>\"\n ],\n \"text\": \"<string>\",\n \"objective\": \"<string>\",\n \"persona\": {\n \"name\": \"<string>\",\n \"age\": 2,\n \"role\": \"<string>\",\n \"style\": \"<string>\",\n \"domain_knowledge\": [\n \"<string>\"\n ],\n \"quirks\": \"<string>\",\n \"bio\": \"<string>\",\n \"lore\": \"<string>\",\n \"personality\": \"<string>\",\n \"conversation_style\": \"<string>\",\n \"description\": \"<string>\",\n \"friendliness\": 123,\n \"creativity\": 123,\n \"curiosity\": 123,\n \"empathy\": 123,\n \"humor\": 123,\n \"formality\": 123,\n \"emotional_stability\": 123\n },\n \"args\": {\n \"type\": \"<string>\"\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["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent_names\": [\n \"<string>\"\n ],\n \"text\": \"<string>\",\n \"objective\": \"<string>\",\n \"persona\": {\n \"name\": \"<string>\",\n \"age\": 2,\n \"role\": \"<string>\",\n \"style\": \"<string>\",\n \"domain_knowledge\": [\n \"<string>\"\n ],\n \"quirks\": \"<string>\",\n \"bio\": \"<string>\",\n \"lore\": \"<string>\",\n \"personality\": \"<string>\",\n \"conversation_style\": \"<string>\",\n \"description\": \"<string>\",\n \"friendliness\": 123,\n \"creativity\": 123,\n \"curiosity\": 123,\n \"empathy\": 123,\n \"humor\": 123,\n \"formality\": 123,\n \"emotional_stability\": 123\n },\n \"args\": {\n \"type\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Getting Started with AI Agents API
Workflows Run
Enables users to execute AI-driven workflows by submitting text inputs to one or more AI agents.
POST
/
api
/
v1
/
workflows
/
run
Run Builtin Workflow
curl --request POST \
--url https://api.intelligence.io.solutions/api/v1/workflows/run \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_names": [
"<string>"
],
"text": "<string>",
"objective": "<string>",
"persona": {
"name": "<string>",
"age": 2,
"role": "<string>",
"style": "<string>",
"domain_knowledge": [
"<string>"
],
"quirks": "<string>",
"bio": "<string>",
"lore": "<string>",
"personality": "<string>",
"conversation_style": "<string>",
"description": "<string>",
"friendliness": 123,
"creativity": 123,
"curiosity": 123,
"empathy": 123,
"humor": 123,
"formality": 123,
"emotional_stability": 123
},
"args": {
"type": "<string>"
}
}
'import requests
url = "https://api.intelligence.io.solutions/api/v1/workflows/run"
payload = {
"agent_names": ["<string>"],
"text": "<string>",
"objective": "<string>",
"persona": {
"name": "<string>",
"age": 2,
"role": "<string>",
"style": "<string>",
"domain_knowledge": ["<string>"],
"quirks": "<string>",
"bio": "<string>",
"lore": "<string>",
"personality": "<string>",
"conversation_style": "<string>",
"description": "<string>",
"friendliness": 123,
"creativity": 123,
"curiosity": 123,
"empathy": 123,
"humor": 123,
"formality": 123,
"emotional_stability": 123
},
"args": { "type": "<string>" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent_names: ['<string>'],
text: '<string>',
objective: '<string>',
persona: {
name: '<string>',
age: 2,
role: '<string>',
style: '<string>',
domain_knowledge: ['<string>'],
quirks: '<string>',
bio: '<string>',
lore: '<string>',
personality: '<string>',
conversation_style: '<string>',
description: '<string>',
friendliness: 123,
creativity: 123,
curiosity: 123,
empathy: 123,
humor: 123,
formality: 123,
emotional_stability: 123
},
args: {type: '<string>'}
})
};
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([
'agent_names' => [
'<string>'
],
'text' => '<string>',
'objective' => '<string>',
'persona' => [
'name' => '<string>',
'age' => 2,
'role' => '<string>',
'style' => '<string>',
'domain_knowledge' => [
'<string>'
],
'quirks' => '<string>',
'bio' => '<string>',
'lore' => '<string>',
'personality' => '<string>',
'conversation_style' => '<string>',
'description' => '<string>',
'friendliness' => 123,
'creativity' => 123,
'curiosity' => 123,
'empathy' => 123,
'humor' => 123,
'formality' => 123,
'emotional_stability' => 123
],
'args' => [
'type' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 \"agent_names\": [\n \"<string>\"\n ],\n \"text\": \"<string>\",\n \"objective\": \"<string>\",\n \"persona\": {\n \"name\": \"<string>\",\n \"age\": 2,\n \"role\": \"<string>\",\n \"style\": \"<string>\",\n \"domain_knowledge\": [\n \"<string>\"\n ],\n \"quirks\": \"<string>\",\n \"bio\": \"<string>\",\n \"lore\": \"<string>\",\n \"personality\": \"<string>\",\n \"conversation_style\": \"<string>\",\n \"description\": \"<string>\",\n \"friendliness\": 123,\n \"creativity\": 123,\n \"curiosity\": 123,\n \"empathy\": 123,\n \"humor\": 123,\n \"formality\": 123,\n \"emotional_stability\": 123\n },\n \"args\": {\n \"type\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_names\": [\n \"<string>\"\n ],\n \"text\": \"<string>\",\n \"objective\": \"<string>\",\n \"persona\": {\n \"name\": \"<string>\",\n \"age\": 2,\n \"role\": \"<string>\",\n \"style\": \"<string>\",\n \"domain_knowledge\": [\n \"<string>\"\n ],\n \"quirks\": \"<string>\",\n \"bio\": \"<string>\",\n \"lore\": \"<string>\",\n \"personality\": \"<string>\",\n \"conversation_style\": \"<string>\",\n \"description\": \"<string>\",\n \"friendliness\": 123,\n \"creativity\": 123,\n \"curiosity\": 123,\n \"empathy\": 123,\n \"humor\": 123,\n \"formality\": 123,\n \"emotional_stability\": 123\n },\n \"args\": {\n \"type\": \"<string>\"\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["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent_names\": [\n \"<string>\"\n ],\n \"text\": \"<string>\",\n \"objective\": \"<string>\",\n \"persona\": {\n \"name\": \"<string>\",\n \"age\": 2,\n \"role\": \"<string>\",\n \"style\": \"<string>\",\n \"domain_knowledge\": [\n \"<string>\"\n ],\n \"quirks\": \"<string>\",\n \"bio\": \"<string>\",\n \"lore\": \"<string>\",\n \"personality\": \"<string>\",\n \"conversation_style\": \"<string>\",\n \"description\": \"<string>\",\n \"friendliness\": 123,\n \"creativity\": 123,\n \"curiosity\": 123,\n \"empathy\": 123,\n \"humor\": 123,\n \"formality\": 123,\n \"emotional_stability\": 123\n },\n \"args\": {\n \"type\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Beta Notice: This project is in rapid development and may not be stable for production use.
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Headers
JWT token
io.net provided API Key
API key set by an SDK client
Body
application/json
A configuration object that describes an agent's persona or character.
Show child attributes
Show child attributes
- ReasoningArgs
- SummarizeArgs
- SentimentArgs
- ExtractEntitiesArgs
- TranslateArgs
- ClassificationArgs
- ModerationArgs
- CustomArgs
Show child attributes
Show child attributes
Response
Successful Response
Was this page helpful?
⌘I