<?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' => 'solve_with_reasoning'
]
]),
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;
}