Create a workflow
curl --request POST \
--url https://api.vonative.com/v1/workflows \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"nodes": [
{
"id": "<string>",
"type": "<string>",
"data": {
"label": "<string>",
"prompt": "<string>",
"firstMessage": "<string>",
"generate_from_model": true,
"max_retries": 123,
"loop_fallback_node": "<string>",
"file_ids": [
"<unknown>"
],
"top_k": 123,
"score_threshold": 123,
"max_context_chars": 6000,
"completion": {},
"avatar": {},
"pipeline_selector": {},
"text": "<string>",
"end_call_message": "<string>",
"allowInterruptions": false,
"addToChatCtx": true,
"voice": {},
"model": {},
"transcriber": {},
"extraction_type": "<string>",
"prebuilt_config": {},
"extract_variables": [
"<unknown>"
],
"conditions": [
"<unknown>"
],
"branches": [
"<unknown>"
],
"assistant_id": "<string>",
"assistant_name": "<string>",
"assistant_overrides": {},
"tool_ids": [
"<unknown>"
],
"url": "<string>",
"method": "<string>",
"headers": {},
"body_template": "<string>",
"bodyParameters": [
{}
],
"output_key": "<string>",
"timeout_ms": 5000,
"retries": 2,
"idempotency_key": "<string>",
"allowed_domains": [
"<string>"
],
"on_error": "<string>",
"auth_method": "<string>",
"server_credential_id": "<string>",
"transferCall": {},
"googleSheets": {},
"googleCalendar": {},
"googleGmail": {},
"googleGmailSend": {},
"apiRequest": {},
"node_type": "<string>"
},
"task": {},
"agent": {},
"tool": {},
"result_schema": {},
"stores": {}
}
],
"edges": [
{
"id": "<string>",
"source": "<string>",
"source_handle": "<string>",
"target": "<string>",
"from": "<string>",
"to": "<string>",
"when": {},
"on": null,
"outcome": null,
"condition": {
"variable": "<string>",
"operator": "<string>",
"value": null
}
}
],
"global_edges": [
{
"id": "<string>",
"source": "<string>",
"source_handle": "<string>",
"target": "<string>",
"from": "<string>",
"to": "<string>",
"when": {},
"on": null,
"outcome": null,
"condition": {
"variable": "<string>",
"operator": "<string>",
"value": null
}
}
],
"variables_schema": {},
"ui_state": {},
"compliance_plan": {},
"guardrail_plan": {
"enabled": true,
"mode": "enforce",
"strictness": "balanced",
"classifier": {
"provider": "openai",
"model": "gpt-4.1-mini",
"timeout_ms": 1200,
"on_error": "allow",
"observer_model": "<string>"
},
"limits": {
"max_session_turns": 250,
"max_duration_seconds": 7215,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"banned_phrases": {
"enabled": false,
"input": [
"<string>"
],
"output": [
"<string>"
],
"patterns": [
"<string>"
],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_injection": {
"enabled": false,
"sensitivity": "medium",
"use_llm": true,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"topics": {
"enabled": false,
"description": "",
"allowed": [
"<string>"
],
"blocked": [
"<string>"
],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"custom_rules": [
{
"id": "<string>",
"prompt": "<string>",
"name": "",
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
}
],
"escalation": {
"after_violations": 3,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_hardening": {
"enabled": true,
"out_of_scope": "decline",
"handoff_hint": "",
"sensitive_advice": false
},
"tool_safety": {
"validate_arguments": true,
"block_duplicate_calls": true,
"max_tool_steps": 5
},
"review": {
"enabled": false,
"judges": [],
"sample_rate": 1,
"model": "<string>"
},
"replace": true
},
"analysis_enabled": false,
"analysis_profile_id": "<string>"
}
'import requests
url = "https://api.vonative.com/v1/workflows"
payload = {
"name": "<string>",
"description": "<string>",
"nodes": [
{
"id": "<string>",
"type": "<string>",
"data": {
"label": "<string>",
"prompt": "<string>",
"firstMessage": "<string>",
"generate_from_model": True,
"max_retries": 123,
"loop_fallback_node": "<string>",
"file_ids": ["<unknown>"],
"top_k": 123,
"score_threshold": 123,
"max_context_chars": 6000,
"completion": {},
"avatar": {},
"pipeline_selector": {},
"text": "<string>",
"end_call_message": "<string>",
"allowInterruptions": False,
"addToChatCtx": True,
"voice": {},
"model": {},
"transcriber": {},
"extraction_type": "<string>",
"prebuilt_config": {},
"extract_variables": ["<unknown>"],
"conditions": ["<unknown>"],
"branches": ["<unknown>"],
"assistant_id": "<string>",
"assistant_name": "<string>",
"assistant_overrides": {},
"tool_ids": ["<unknown>"],
"url": "<string>",
"method": "<string>",
"headers": {},
"body_template": "<string>",
"bodyParameters": [{}],
"output_key": "<string>",
"timeout_ms": 5000,
"retries": 2,
"idempotency_key": "<string>",
"allowed_domains": ["<string>"],
"on_error": "<string>",
"auth_method": "<string>",
"server_credential_id": "<string>",
"transferCall": {},
"googleSheets": {},
"googleCalendar": {},
"googleGmail": {},
"googleGmailSend": {},
"apiRequest": {},
"node_type": "<string>"
},
"task": {},
"agent": {},
"tool": {},
"result_schema": {},
"stores": {}
}
],
"edges": [
{
"id": "<string>",
"source": "<string>",
"source_handle": "<string>",
"target": "<string>",
"from": "<string>",
"to": "<string>",
"when": {},
"on": None,
"outcome": None,
"condition": {
"variable": "<string>",
"operator": "<string>",
"value": None
}
}
],
"global_edges": [
{
"id": "<string>",
"source": "<string>",
"source_handle": "<string>",
"target": "<string>",
"from": "<string>",
"to": "<string>",
"when": {},
"on": None,
"outcome": None,
"condition": {
"variable": "<string>",
"operator": "<string>",
"value": None
}
}
],
"variables_schema": {},
"ui_state": {},
"compliance_plan": {},
"guardrail_plan": {
"enabled": True,
"mode": "enforce",
"strictness": "balanced",
"classifier": {
"provider": "openai",
"model": "gpt-4.1-mini",
"timeout_ms": 1200,
"on_error": "allow",
"observer_model": "<string>"
},
"limits": {
"max_session_turns": 250,
"max_duration_seconds": 7215,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"banned_phrases": {
"enabled": False,
"input": ["<string>"],
"output": ["<string>"],
"patterns": ["<string>"],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_injection": {
"enabled": False,
"sensitivity": "medium",
"use_llm": True,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"topics": {
"enabled": False,
"description": "",
"allowed": ["<string>"],
"blocked": ["<string>"],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"custom_rules": [
{
"id": "<string>",
"prompt": "<string>",
"name": "",
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
}
],
"escalation": {
"after_violations": 3,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_hardening": {
"enabled": True,
"out_of_scope": "decline",
"handoff_hint": "",
"sensitive_advice": False
},
"tool_safety": {
"validate_arguments": True,
"block_duplicate_calls": True,
"max_tool_steps": 5
},
"review": {
"enabled": False,
"judges": [],
"sample_rate": 1,
"model": "<string>"
},
"replace": True
},
"analysis_enabled": False,
"analysis_profile_id": "<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({
name: '<string>',
description: '<string>',
nodes: [
{
id: '<string>',
type: '<string>',
data: {
label: '<string>',
prompt: '<string>',
firstMessage: '<string>',
generate_from_model: true,
max_retries: 123,
loop_fallback_node: '<string>',
file_ids: ['<unknown>'],
top_k: 123,
score_threshold: 123,
max_context_chars: 6000,
completion: {},
avatar: {},
pipeline_selector: {},
text: '<string>',
end_call_message: '<string>',
allowInterruptions: false,
addToChatCtx: true,
voice: {},
model: {},
transcriber: {},
extraction_type: '<string>',
prebuilt_config: {},
extract_variables: ['<unknown>'],
conditions: ['<unknown>'],
branches: ['<unknown>'],
assistant_id: '<string>',
assistant_name: '<string>',
assistant_overrides: {},
tool_ids: ['<unknown>'],
url: '<string>',
method: '<string>',
headers: {},
body_template: '<string>',
bodyParameters: [{}],
output_key: '<string>',
timeout_ms: 5000,
retries: 2,
idempotency_key: '<string>',
allowed_domains: ['<string>'],
on_error: '<string>',
auth_method: '<string>',
server_credential_id: '<string>',
transferCall: {},
googleSheets: {},
googleCalendar: {},
googleGmail: {},
googleGmailSend: {},
apiRequest: {},
node_type: '<string>'
},
task: {},
agent: {},
tool: {},
result_schema: {},
stores: {}
}
],
edges: [
{
id: '<string>',
source: '<string>',
source_handle: '<string>',
target: '<string>',
from: '<string>',
to: '<string>',
when: {},
on: null,
outcome: null,
condition: {variable: '<string>', operator: '<string>', value: null}
}
],
global_edges: [
{
id: '<string>',
source: '<string>',
source_handle: '<string>',
target: '<string>',
from: '<string>',
to: '<string>',
when: {},
on: null,
outcome: null,
condition: {variable: '<string>', operator: '<string>', value: null}
}
],
variables_schema: {},
ui_state: {},
compliance_plan: {},
guardrail_plan: {
enabled: true,
mode: 'enforce',
strictness: 'balanced',
classifier: {
provider: 'openai',
model: 'gpt-4.1-mini',
timeout_ms: 1200,
on_error: 'allow',
observer_model: '<string>'
},
limits: {
max_session_turns: 250,
max_duration_seconds: 7215,
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
banned_phrases: {
enabled: false,
input: ['<string>'],
output: ['<string>'],
patterns: ['<string>'],
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
prompt_injection: {
enabled: false,
sensitivity: 'medium',
use_llm: true,
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
topics: {
enabled: false,
description: '',
allowed: ['<string>'],
blocked: ['<string>'],
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
custom_rules: [
{
id: '<string>',
prompt: '<string>',
name: '',
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
}
],
escalation: {
after_violations: 3,
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
prompt_hardening: {
enabled: true,
out_of_scope: 'decline',
handoff_hint: '',
sensitive_advice: false
},
tool_safety: {validate_arguments: true, block_duplicate_calls: true, max_tool_steps: 5},
review: {enabled: false, judges: [], sample_rate: 1, model: '<string>'},
replace: true
},
analysis_enabled: false,
analysis_profile_id: '<string>'
})
};
fetch('https://api.vonative.com/v1/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://api.vonative.com/v1/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([
'name' => '<string>',
'description' => '<string>',
'nodes' => [
[
'id' => '<string>',
'type' => '<string>',
'data' => [
'label' => '<string>',
'prompt' => '<string>',
'firstMessage' => '<string>',
'generate_from_model' => true,
'max_retries' => 123,
'loop_fallback_node' => '<string>',
'file_ids' => [
'<unknown>'
],
'top_k' => 123,
'score_threshold' => 123,
'max_context_chars' => 6000,
'completion' => [
],
'avatar' => [
],
'pipeline_selector' => [
],
'text' => '<string>',
'end_call_message' => '<string>',
'allowInterruptions' => false,
'addToChatCtx' => true,
'voice' => [
],
'model' => [
],
'transcriber' => [
],
'extraction_type' => '<string>',
'prebuilt_config' => [
],
'extract_variables' => [
'<unknown>'
],
'conditions' => [
'<unknown>'
],
'branches' => [
'<unknown>'
],
'assistant_id' => '<string>',
'assistant_name' => '<string>',
'assistant_overrides' => [
],
'tool_ids' => [
'<unknown>'
],
'url' => '<string>',
'method' => '<string>',
'headers' => [
],
'body_template' => '<string>',
'bodyParameters' => [
[
]
],
'output_key' => '<string>',
'timeout_ms' => 5000,
'retries' => 2,
'idempotency_key' => '<string>',
'allowed_domains' => [
'<string>'
],
'on_error' => '<string>',
'auth_method' => '<string>',
'server_credential_id' => '<string>',
'transferCall' => [
],
'googleSheets' => [
],
'googleCalendar' => [
],
'googleGmail' => [
],
'googleGmailSend' => [
],
'apiRequest' => [
],
'node_type' => '<string>'
],
'task' => [
],
'agent' => [
],
'tool' => [
],
'result_schema' => [
],
'stores' => [
]
]
],
'edges' => [
[
'id' => '<string>',
'source' => '<string>',
'source_handle' => '<string>',
'target' => '<string>',
'from' => '<string>',
'to' => '<string>',
'when' => [
],
'on' => null,
'outcome' => null,
'condition' => [
'variable' => '<string>',
'operator' => '<string>',
'value' => null
]
]
],
'global_edges' => [
[
'id' => '<string>',
'source' => '<string>',
'source_handle' => '<string>',
'target' => '<string>',
'from' => '<string>',
'to' => '<string>',
'when' => [
],
'on' => null,
'outcome' => null,
'condition' => [
'variable' => '<string>',
'operator' => '<string>',
'value' => null
]
]
],
'variables_schema' => [
],
'ui_state' => [
],
'compliance_plan' => [
],
'guardrail_plan' => [
'enabled' => true,
'mode' => 'enforce',
'strictness' => 'balanced',
'classifier' => [
'provider' => 'openai',
'model' => 'gpt-4.1-mini',
'timeout_ms' => 1200,
'on_error' => 'allow',
'observer_model' => '<string>'
],
'limits' => [
'max_session_turns' => 250,
'max_duration_seconds' => 7215,
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'banned_phrases' => [
'enabled' => false,
'input' => [
'<string>'
],
'output' => [
'<string>'
],
'patterns' => [
'<string>'
],
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'prompt_injection' => [
'enabled' => false,
'sensitivity' => 'medium',
'use_llm' => true,
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'topics' => [
'enabled' => false,
'description' => '',
'allowed' => [
'<string>'
],
'blocked' => [
'<string>'
],
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'custom_rules' => [
[
'id' => '<string>',
'prompt' => '<string>',
'name' => '',
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
]
],
'escalation' => [
'after_violations' => 3,
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'prompt_hardening' => [
'enabled' => true,
'out_of_scope' => 'decline',
'handoff_hint' => '',
'sensitive_advice' => false
],
'tool_safety' => [
'validate_arguments' => true,
'block_duplicate_calls' => true,
'max_tool_steps' => 5
],
'review' => [
'enabled' => false,
'judges' => [
],
'sample_rate' => 1,
'model' => '<string>'
],
'replace' => true
],
'analysis_enabled' => false,
'analysis_profile_id' => '<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.vonative.com/v1/workflows"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"nodes\": [\n {\n \"id\": \"<string>\",\n \"type\": \"<string>\",\n \"data\": {\n \"label\": \"<string>\",\n \"prompt\": \"<string>\",\n \"firstMessage\": \"<string>\",\n \"generate_from_model\": true,\n \"max_retries\": 123,\n \"loop_fallback_node\": \"<string>\",\n \"file_ids\": [\n \"<unknown>\"\n ],\n \"top_k\": 123,\n \"score_threshold\": 123,\n \"max_context_chars\": 6000,\n \"completion\": {},\n \"avatar\": {},\n \"pipeline_selector\": {},\n \"text\": \"<string>\",\n \"end_call_message\": \"<string>\",\n \"allowInterruptions\": false,\n \"addToChatCtx\": true,\n \"voice\": {},\n \"model\": {},\n \"transcriber\": {},\n \"extraction_type\": \"<string>\",\n \"prebuilt_config\": {},\n \"extract_variables\": [\n \"<unknown>\"\n ],\n \"conditions\": [\n \"<unknown>\"\n ],\n \"branches\": [\n \"<unknown>\"\n ],\n \"assistant_id\": \"<string>\",\n \"assistant_name\": \"<string>\",\n \"assistant_overrides\": {},\n \"tool_ids\": [\n \"<unknown>\"\n ],\n \"url\": \"<string>\",\n \"method\": \"<string>\",\n \"headers\": {},\n \"body_template\": \"<string>\",\n \"bodyParameters\": [\n {}\n ],\n \"output_key\": \"<string>\",\n \"timeout_ms\": 5000,\n \"retries\": 2,\n \"idempotency_key\": \"<string>\",\n \"allowed_domains\": [\n \"<string>\"\n ],\n \"on_error\": \"<string>\",\n \"auth_method\": \"<string>\",\n \"server_credential_id\": \"<string>\",\n \"transferCall\": {},\n \"googleSheets\": {},\n \"googleCalendar\": {},\n \"googleGmail\": {},\n \"googleGmailSend\": {},\n \"apiRequest\": {},\n \"node_type\": \"<string>\"\n },\n \"task\": {},\n \"agent\": {},\n \"tool\": {},\n \"result_schema\": {},\n \"stores\": {}\n }\n ],\n \"edges\": [\n {\n \"id\": \"<string>\",\n \"source\": \"<string>\",\n \"source_handle\": \"<string>\",\n \"target\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"when\": {},\n \"on\": null,\n \"outcome\": null,\n \"condition\": {\n \"variable\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": null\n }\n }\n ],\n \"global_edges\": [\n {\n \"id\": \"<string>\",\n \"source\": \"<string>\",\n \"source_handle\": \"<string>\",\n \"target\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"when\": {},\n \"on\": null,\n \"outcome\": null,\n \"condition\": {\n \"variable\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": null\n }\n }\n ],\n \"variables_schema\": {},\n \"ui_state\": {},\n \"compliance_plan\": {},\n \"guardrail_plan\": {\n \"enabled\": true,\n \"mode\": \"enforce\",\n \"strictness\": \"balanced\",\n \"classifier\": {\n \"provider\": \"openai\",\n \"model\": \"gpt-4.1-mini\",\n \"timeout_ms\": 1200,\n \"on_error\": \"allow\",\n \"observer_model\": \"<string>\"\n },\n \"limits\": {\n \"max_session_turns\": 250,\n \"max_duration_seconds\": 7215,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"banned_phrases\": {\n \"enabled\": false,\n \"input\": [\n \"<string>\"\n ],\n \"output\": [\n \"<string>\"\n ],\n \"patterns\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_injection\": {\n \"enabled\": false,\n \"sensitivity\": \"medium\",\n \"use_llm\": true,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"topics\": {\n \"enabled\": false,\n \"description\": \"\",\n \"allowed\": [\n \"<string>\"\n ],\n \"blocked\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"custom_rules\": [\n {\n \"id\": \"<string>\",\n \"prompt\": \"<string>\",\n \"name\": \"\",\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n }\n ],\n \"escalation\": {\n \"after_violations\": 3,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_hardening\": {\n \"enabled\": true,\n \"out_of_scope\": \"decline\",\n \"handoff_hint\": \"\",\n \"sensitive_advice\": false\n },\n \"tool_safety\": {\n \"validate_arguments\": true,\n \"block_duplicate_calls\": true,\n \"max_tool_steps\": 5\n },\n \"review\": {\n \"enabled\": false,\n \"judges\": [],\n \"sample_rate\": 1,\n \"model\": \"<string>\"\n },\n \"replace\": true\n },\n \"analysis_enabled\": false,\n \"analysis_profile_id\": \"<string>\"\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.vonative.com/v1/workflows")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"nodes\": [\n {\n \"id\": \"<string>\",\n \"type\": \"<string>\",\n \"data\": {\n \"label\": \"<string>\",\n \"prompt\": \"<string>\",\n \"firstMessage\": \"<string>\",\n \"generate_from_model\": true,\n \"max_retries\": 123,\n \"loop_fallback_node\": \"<string>\",\n \"file_ids\": [\n \"<unknown>\"\n ],\n \"top_k\": 123,\n \"score_threshold\": 123,\n \"max_context_chars\": 6000,\n \"completion\": {},\n \"avatar\": {},\n \"pipeline_selector\": {},\n \"text\": \"<string>\",\n \"end_call_message\": \"<string>\",\n \"allowInterruptions\": false,\n \"addToChatCtx\": true,\n \"voice\": {},\n \"model\": {},\n \"transcriber\": {},\n \"extraction_type\": \"<string>\",\n \"prebuilt_config\": {},\n \"extract_variables\": [\n \"<unknown>\"\n ],\n \"conditions\": [\n \"<unknown>\"\n ],\n \"branches\": [\n \"<unknown>\"\n ],\n \"assistant_id\": \"<string>\",\n \"assistant_name\": \"<string>\",\n \"assistant_overrides\": {},\n \"tool_ids\": [\n \"<unknown>\"\n ],\n \"url\": \"<string>\",\n \"method\": \"<string>\",\n \"headers\": {},\n \"body_template\": \"<string>\",\n \"bodyParameters\": [\n {}\n ],\n \"output_key\": \"<string>\",\n \"timeout_ms\": 5000,\n \"retries\": 2,\n \"idempotency_key\": \"<string>\",\n \"allowed_domains\": [\n \"<string>\"\n ],\n \"on_error\": \"<string>\",\n \"auth_method\": \"<string>\",\n \"server_credential_id\": \"<string>\",\n \"transferCall\": {},\n \"googleSheets\": {},\n \"googleCalendar\": {},\n \"googleGmail\": {},\n \"googleGmailSend\": {},\n \"apiRequest\": {},\n \"node_type\": \"<string>\"\n },\n \"task\": {},\n \"agent\": {},\n \"tool\": {},\n \"result_schema\": {},\n \"stores\": {}\n }\n ],\n \"edges\": [\n {\n \"id\": \"<string>\",\n \"source\": \"<string>\",\n \"source_handle\": \"<string>\",\n \"target\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"when\": {},\n \"on\": null,\n \"outcome\": null,\n \"condition\": {\n \"variable\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": null\n }\n }\n ],\n \"global_edges\": [\n {\n \"id\": \"<string>\",\n \"source\": \"<string>\",\n \"source_handle\": \"<string>\",\n \"target\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"when\": {},\n \"on\": null,\n \"outcome\": null,\n \"condition\": {\n \"variable\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": null\n }\n }\n ],\n \"variables_schema\": {},\n \"ui_state\": {},\n \"compliance_plan\": {},\n \"guardrail_plan\": {\n \"enabled\": true,\n \"mode\": \"enforce\",\n \"strictness\": \"balanced\",\n \"classifier\": {\n \"provider\": \"openai\",\n \"model\": \"gpt-4.1-mini\",\n \"timeout_ms\": 1200,\n \"on_error\": \"allow\",\n \"observer_model\": \"<string>\"\n },\n \"limits\": {\n \"max_session_turns\": 250,\n \"max_duration_seconds\": 7215,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"banned_phrases\": {\n \"enabled\": false,\n \"input\": [\n \"<string>\"\n ],\n \"output\": [\n \"<string>\"\n ],\n \"patterns\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_injection\": {\n \"enabled\": false,\n \"sensitivity\": \"medium\",\n \"use_llm\": true,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"topics\": {\n \"enabled\": false,\n \"description\": \"\",\n \"allowed\": [\n \"<string>\"\n ],\n \"blocked\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"custom_rules\": [\n {\n \"id\": \"<string>\",\n \"prompt\": \"<string>\",\n \"name\": \"\",\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n }\n ],\n \"escalation\": {\n \"after_violations\": 3,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_hardening\": {\n \"enabled\": true,\n \"out_of_scope\": \"decline\",\n \"handoff_hint\": \"\",\n \"sensitive_advice\": false\n },\n \"tool_safety\": {\n \"validate_arguments\": true,\n \"block_duplicate_calls\": true,\n \"max_tool_steps\": 5\n },\n \"review\": {\n \"enabled\": false,\n \"judges\": [],\n \"sample_rate\": 1,\n \"model\": \"<string>\"\n },\n \"replace\": true\n },\n \"analysis_enabled\": false,\n \"analysis_profile_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vonative.com/v1/workflows")
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 \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"nodes\": [\n {\n \"id\": \"<string>\",\n \"type\": \"<string>\",\n \"data\": {\n \"label\": \"<string>\",\n \"prompt\": \"<string>\",\n \"firstMessage\": \"<string>\",\n \"generate_from_model\": true,\n \"max_retries\": 123,\n \"loop_fallback_node\": \"<string>\",\n \"file_ids\": [\n \"<unknown>\"\n ],\n \"top_k\": 123,\n \"score_threshold\": 123,\n \"max_context_chars\": 6000,\n \"completion\": {},\n \"avatar\": {},\n \"pipeline_selector\": {},\n \"text\": \"<string>\",\n \"end_call_message\": \"<string>\",\n \"allowInterruptions\": false,\n \"addToChatCtx\": true,\n \"voice\": {},\n \"model\": {},\n \"transcriber\": {},\n \"extraction_type\": \"<string>\",\n \"prebuilt_config\": {},\n \"extract_variables\": [\n \"<unknown>\"\n ],\n \"conditions\": [\n \"<unknown>\"\n ],\n \"branches\": [\n \"<unknown>\"\n ],\n \"assistant_id\": \"<string>\",\n \"assistant_name\": \"<string>\",\n \"assistant_overrides\": {},\n \"tool_ids\": [\n \"<unknown>\"\n ],\n \"url\": \"<string>\",\n \"method\": \"<string>\",\n \"headers\": {},\n \"body_template\": \"<string>\",\n \"bodyParameters\": [\n {}\n ],\n \"output_key\": \"<string>\",\n \"timeout_ms\": 5000,\n \"retries\": 2,\n \"idempotency_key\": \"<string>\",\n \"allowed_domains\": [\n \"<string>\"\n ],\n \"on_error\": \"<string>\",\n \"auth_method\": \"<string>\",\n \"server_credential_id\": \"<string>\",\n \"transferCall\": {},\n \"googleSheets\": {},\n \"googleCalendar\": {},\n \"googleGmail\": {},\n \"googleGmailSend\": {},\n \"apiRequest\": {},\n \"node_type\": \"<string>\"\n },\n \"task\": {},\n \"agent\": {},\n \"tool\": {},\n \"result_schema\": {},\n \"stores\": {}\n }\n ],\n \"edges\": [\n {\n \"id\": \"<string>\",\n \"source\": \"<string>\",\n \"source_handle\": \"<string>\",\n \"target\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"when\": {},\n \"on\": null,\n \"outcome\": null,\n \"condition\": {\n \"variable\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": null\n }\n }\n ],\n \"global_edges\": [\n {\n \"id\": \"<string>\",\n \"source\": \"<string>\",\n \"source_handle\": \"<string>\",\n \"target\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"when\": {},\n \"on\": null,\n \"outcome\": null,\n \"condition\": {\n \"variable\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": null\n }\n }\n ],\n \"variables_schema\": {},\n \"ui_state\": {},\n \"compliance_plan\": {},\n \"guardrail_plan\": {\n \"enabled\": true,\n \"mode\": \"enforce\",\n \"strictness\": \"balanced\",\n \"classifier\": {\n \"provider\": \"openai\",\n \"model\": \"gpt-4.1-mini\",\n \"timeout_ms\": 1200,\n \"on_error\": \"allow\",\n \"observer_model\": \"<string>\"\n },\n \"limits\": {\n \"max_session_turns\": 250,\n \"max_duration_seconds\": 7215,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"banned_phrases\": {\n \"enabled\": false,\n \"input\": [\n \"<string>\"\n ],\n \"output\": [\n \"<string>\"\n ],\n \"patterns\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_injection\": {\n \"enabled\": false,\n \"sensitivity\": \"medium\",\n \"use_llm\": true,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"topics\": {\n \"enabled\": false,\n \"description\": \"\",\n \"allowed\": [\n \"<string>\"\n ],\n \"blocked\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"custom_rules\": [\n {\n \"id\": \"<string>\",\n \"prompt\": \"<string>\",\n \"name\": \"\",\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n }\n ],\n \"escalation\": {\n \"after_violations\": 3,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_hardening\": {\n \"enabled\": true,\n \"out_of_scope\": \"decline\",\n \"handoff_hint\": \"\",\n \"sensitive_advice\": false\n },\n \"tool_safety\": {\n \"validate_arguments\": true,\n \"block_duplicate_calls\": true,\n \"max_tool_steps\": 5\n },\n \"review\": {\n \"enabled\": false,\n \"judges\": [],\n \"sample_rate\": 1,\n \"model\": \"<string>\"\n },\n \"replace\": true\n },\n \"analysis_enabled\": false,\n \"analysis_profile_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "success",
"data": {
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"status": "<string>",
"nodes": [
{}
],
"edges": [
{}
],
"variables_schema": {},
"ui_state": {},
"organization_id": "<string>",
"user_id": "<string>",
"description": "<string>",
"global_edges": [
{}
],
"compliance_plan": {},
"guardrail_plan": {
"enabled": true,
"mode": "enforce",
"strictness": "balanced",
"classifier": {
"provider": "openai",
"model": "gpt-4.1-mini",
"timeout_ms": 1200,
"on_error": "allow",
"observer_model": "<string>"
},
"limits": {
"max_session_turns": 250,
"max_duration_seconds": 7215,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"banned_phrases": {
"enabled": false,
"input": [
"<string>"
],
"output": [
"<string>"
],
"patterns": [
"<string>"
],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_injection": {
"enabled": false,
"sensitivity": "medium",
"use_llm": true,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"topics": {
"enabled": false,
"description": "",
"allowed": [
"<string>"
],
"blocked": [
"<string>"
],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"custom_rules": [
{
"id": "<string>",
"prompt": "<string>",
"name": "",
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
}
],
"escalation": {
"after_violations": 3,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_hardening": {
"enabled": true,
"out_of_scope": "decline",
"handoff_hint": "",
"sensitive_advice": false
},
"tool_safety": {
"validate_arguments": true,
"block_duplicate_calls": true,
"max_tool_steps": 5
},
"review": {
"enabled": false,
"judges": [],
"sample_rate": 1,
"model": "<string>"
},
"replace": true
},
"analysis_enabled": false,
"analysis_profile_id": "<string>",
"published_at": "2023-11-07T05:31:56Z"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Workflows
Create a workflow
Create a new draft workflow state machine.
Required permission: workflows:write
POST
/
v1
/
workflows
Create a workflow
curl --request POST \
--url https://api.vonative.com/v1/workflows \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"nodes": [
{
"id": "<string>",
"type": "<string>",
"data": {
"label": "<string>",
"prompt": "<string>",
"firstMessage": "<string>",
"generate_from_model": true,
"max_retries": 123,
"loop_fallback_node": "<string>",
"file_ids": [
"<unknown>"
],
"top_k": 123,
"score_threshold": 123,
"max_context_chars": 6000,
"completion": {},
"avatar": {},
"pipeline_selector": {},
"text": "<string>",
"end_call_message": "<string>",
"allowInterruptions": false,
"addToChatCtx": true,
"voice": {},
"model": {},
"transcriber": {},
"extraction_type": "<string>",
"prebuilt_config": {},
"extract_variables": [
"<unknown>"
],
"conditions": [
"<unknown>"
],
"branches": [
"<unknown>"
],
"assistant_id": "<string>",
"assistant_name": "<string>",
"assistant_overrides": {},
"tool_ids": [
"<unknown>"
],
"url": "<string>",
"method": "<string>",
"headers": {},
"body_template": "<string>",
"bodyParameters": [
{}
],
"output_key": "<string>",
"timeout_ms": 5000,
"retries": 2,
"idempotency_key": "<string>",
"allowed_domains": [
"<string>"
],
"on_error": "<string>",
"auth_method": "<string>",
"server_credential_id": "<string>",
"transferCall": {},
"googleSheets": {},
"googleCalendar": {},
"googleGmail": {},
"googleGmailSend": {},
"apiRequest": {},
"node_type": "<string>"
},
"task": {},
"agent": {},
"tool": {},
"result_schema": {},
"stores": {}
}
],
"edges": [
{
"id": "<string>",
"source": "<string>",
"source_handle": "<string>",
"target": "<string>",
"from": "<string>",
"to": "<string>",
"when": {},
"on": null,
"outcome": null,
"condition": {
"variable": "<string>",
"operator": "<string>",
"value": null
}
}
],
"global_edges": [
{
"id": "<string>",
"source": "<string>",
"source_handle": "<string>",
"target": "<string>",
"from": "<string>",
"to": "<string>",
"when": {},
"on": null,
"outcome": null,
"condition": {
"variable": "<string>",
"operator": "<string>",
"value": null
}
}
],
"variables_schema": {},
"ui_state": {},
"compliance_plan": {},
"guardrail_plan": {
"enabled": true,
"mode": "enforce",
"strictness": "balanced",
"classifier": {
"provider": "openai",
"model": "gpt-4.1-mini",
"timeout_ms": 1200,
"on_error": "allow",
"observer_model": "<string>"
},
"limits": {
"max_session_turns": 250,
"max_duration_seconds": 7215,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"banned_phrases": {
"enabled": false,
"input": [
"<string>"
],
"output": [
"<string>"
],
"patterns": [
"<string>"
],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_injection": {
"enabled": false,
"sensitivity": "medium",
"use_llm": true,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"topics": {
"enabled": false,
"description": "",
"allowed": [
"<string>"
],
"blocked": [
"<string>"
],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"custom_rules": [
{
"id": "<string>",
"prompt": "<string>",
"name": "",
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
}
],
"escalation": {
"after_violations": 3,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_hardening": {
"enabled": true,
"out_of_scope": "decline",
"handoff_hint": "",
"sensitive_advice": false
},
"tool_safety": {
"validate_arguments": true,
"block_duplicate_calls": true,
"max_tool_steps": 5
},
"review": {
"enabled": false,
"judges": [],
"sample_rate": 1,
"model": "<string>"
},
"replace": true
},
"analysis_enabled": false,
"analysis_profile_id": "<string>"
}
'import requests
url = "https://api.vonative.com/v1/workflows"
payload = {
"name": "<string>",
"description": "<string>",
"nodes": [
{
"id": "<string>",
"type": "<string>",
"data": {
"label": "<string>",
"prompt": "<string>",
"firstMessage": "<string>",
"generate_from_model": True,
"max_retries": 123,
"loop_fallback_node": "<string>",
"file_ids": ["<unknown>"],
"top_k": 123,
"score_threshold": 123,
"max_context_chars": 6000,
"completion": {},
"avatar": {},
"pipeline_selector": {},
"text": "<string>",
"end_call_message": "<string>",
"allowInterruptions": False,
"addToChatCtx": True,
"voice": {},
"model": {},
"transcriber": {},
"extraction_type": "<string>",
"prebuilt_config": {},
"extract_variables": ["<unknown>"],
"conditions": ["<unknown>"],
"branches": ["<unknown>"],
"assistant_id": "<string>",
"assistant_name": "<string>",
"assistant_overrides": {},
"tool_ids": ["<unknown>"],
"url": "<string>",
"method": "<string>",
"headers": {},
"body_template": "<string>",
"bodyParameters": [{}],
"output_key": "<string>",
"timeout_ms": 5000,
"retries": 2,
"idempotency_key": "<string>",
"allowed_domains": ["<string>"],
"on_error": "<string>",
"auth_method": "<string>",
"server_credential_id": "<string>",
"transferCall": {},
"googleSheets": {},
"googleCalendar": {},
"googleGmail": {},
"googleGmailSend": {},
"apiRequest": {},
"node_type": "<string>"
},
"task": {},
"agent": {},
"tool": {},
"result_schema": {},
"stores": {}
}
],
"edges": [
{
"id": "<string>",
"source": "<string>",
"source_handle": "<string>",
"target": "<string>",
"from": "<string>",
"to": "<string>",
"when": {},
"on": None,
"outcome": None,
"condition": {
"variable": "<string>",
"operator": "<string>",
"value": None
}
}
],
"global_edges": [
{
"id": "<string>",
"source": "<string>",
"source_handle": "<string>",
"target": "<string>",
"from": "<string>",
"to": "<string>",
"when": {},
"on": None,
"outcome": None,
"condition": {
"variable": "<string>",
"operator": "<string>",
"value": None
}
}
],
"variables_schema": {},
"ui_state": {},
"compliance_plan": {},
"guardrail_plan": {
"enabled": True,
"mode": "enforce",
"strictness": "balanced",
"classifier": {
"provider": "openai",
"model": "gpt-4.1-mini",
"timeout_ms": 1200,
"on_error": "allow",
"observer_model": "<string>"
},
"limits": {
"max_session_turns": 250,
"max_duration_seconds": 7215,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"banned_phrases": {
"enabled": False,
"input": ["<string>"],
"output": ["<string>"],
"patterns": ["<string>"],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_injection": {
"enabled": False,
"sensitivity": "medium",
"use_llm": True,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"topics": {
"enabled": False,
"description": "",
"allowed": ["<string>"],
"blocked": ["<string>"],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"custom_rules": [
{
"id": "<string>",
"prompt": "<string>",
"name": "",
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
}
],
"escalation": {
"after_violations": 3,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_hardening": {
"enabled": True,
"out_of_scope": "decline",
"handoff_hint": "",
"sensitive_advice": False
},
"tool_safety": {
"validate_arguments": True,
"block_duplicate_calls": True,
"max_tool_steps": 5
},
"review": {
"enabled": False,
"judges": [],
"sample_rate": 1,
"model": "<string>"
},
"replace": True
},
"analysis_enabled": False,
"analysis_profile_id": "<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({
name: '<string>',
description: '<string>',
nodes: [
{
id: '<string>',
type: '<string>',
data: {
label: '<string>',
prompt: '<string>',
firstMessage: '<string>',
generate_from_model: true,
max_retries: 123,
loop_fallback_node: '<string>',
file_ids: ['<unknown>'],
top_k: 123,
score_threshold: 123,
max_context_chars: 6000,
completion: {},
avatar: {},
pipeline_selector: {},
text: '<string>',
end_call_message: '<string>',
allowInterruptions: false,
addToChatCtx: true,
voice: {},
model: {},
transcriber: {},
extraction_type: '<string>',
prebuilt_config: {},
extract_variables: ['<unknown>'],
conditions: ['<unknown>'],
branches: ['<unknown>'],
assistant_id: '<string>',
assistant_name: '<string>',
assistant_overrides: {},
tool_ids: ['<unknown>'],
url: '<string>',
method: '<string>',
headers: {},
body_template: '<string>',
bodyParameters: [{}],
output_key: '<string>',
timeout_ms: 5000,
retries: 2,
idempotency_key: '<string>',
allowed_domains: ['<string>'],
on_error: '<string>',
auth_method: '<string>',
server_credential_id: '<string>',
transferCall: {},
googleSheets: {},
googleCalendar: {},
googleGmail: {},
googleGmailSend: {},
apiRequest: {},
node_type: '<string>'
},
task: {},
agent: {},
tool: {},
result_schema: {},
stores: {}
}
],
edges: [
{
id: '<string>',
source: '<string>',
source_handle: '<string>',
target: '<string>',
from: '<string>',
to: '<string>',
when: {},
on: null,
outcome: null,
condition: {variable: '<string>', operator: '<string>', value: null}
}
],
global_edges: [
{
id: '<string>',
source: '<string>',
source_handle: '<string>',
target: '<string>',
from: '<string>',
to: '<string>',
when: {},
on: null,
outcome: null,
condition: {variable: '<string>', operator: '<string>', value: null}
}
],
variables_schema: {},
ui_state: {},
compliance_plan: {},
guardrail_plan: {
enabled: true,
mode: 'enforce',
strictness: 'balanced',
classifier: {
provider: 'openai',
model: 'gpt-4.1-mini',
timeout_ms: 1200,
on_error: 'allow',
observer_model: '<string>'
},
limits: {
max_session_turns: 250,
max_duration_seconds: 7215,
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
banned_phrases: {
enabled: false,
input: ['<string>'],
output: ['<string>'],
patterns: ['<string>'],
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
prompt_injection: {
enabled: false,
sensitivity: 'medium',
use_llm: true,
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
topics: {
enabled: false,
description: '',
allowed: ['<string>'],
blocked: ['<string>'],
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
custom_rules: [
{
id: '<string>',
prompt: '<string>',
name: '',
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
}
],
escalation: {
after_violations: 3,
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
prompt_hardening: {
enabled: true,
out_of_scope: 'decline',
handoff_hint: '',
sensitive_advice: false
},
tool_safety: {validate_arguments: true, block_duplicate_calls: true, max_tool_steps: 5},
review: {enabled: false, judges: [], sample_rate: 1, model: '<string>'},
replace: true
},
analysis_enabled: false,
analysis_profile_id: '<string>'
})
};
fetch('https://api.vonative.com/v1/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://api.vonative.com/v1/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([
'name' => '<string>',
'description' => '<string>',
'nodes' => [
[
'id' => '<string>',
'type' => '<string>',
'data' => [
'label' => '<string>',
'prompt' => '<string>',
'firstMessage' => '<string>',
'generate_from_model' => true,
'max_retries' => 123,
'loop_fallback_node' => '<string>',
'file_ids' => [
'<unknown>'
],
'top_k' => 123,
'score_threshold' => 123,
'max_context_chars' => 6000,
'completion' => [
],
'avatar' => [
],
'pipeline_selector' => [
],
'text' => '<string>',
'end_call_message' => '<string>',
'allowInterruptions' => false,
'addToChatCtx' => true,
'voice' => [
],
'model' => [
],
'transcriber' => [
],
'extraction_type' => '<string>',
'prebuilt_config' => [
],
'extract_variables' => [
'<unknown>'
],
'conditions' => [
'<unknown>'
],
'branches' => [
'<unknown>'
],
'assistant_id' => '<string>',
'assistant_name' => '<string>',
'assistant_overrides' => [
],
'tool_ids' => [
'<unknown>'
],
'url' => '<string>',
'method' => '<string>',
'headers' => [
],
'body_template' => '<string>',
'bodyParameters' => [
[
]
],
'output_key' => '<string>',
'timeout_ms' => 5000,
'retries' => 2,
'idempotency_key' => '<string>',
'allowed_domains' => [
'<string>'
],
'on_error' => '<string>',
'auth_method' => '<string>',
'server_credential_id' => '<string>',
'transferCall' => [
],
'googleSheets' => [
],
'googleCalendar' => [
],
'googleGmail' => [
],
'googleGmailSend' => [
],
'apiRequest' => [
],
'node_type' => '<string>'
],
'task' => [
],
'agent' => [
],
'tool' => [
],
'result_schema' => [
],
'stores' => [
]
]
],
'edges' => [
[
'id' => '<string>',
'source' => '<string>',
'source_handle' => '<string>',
'target' => '<string>',
'from' => '<string>',
'to' => '<string>',
'when' => [
],
'on' => null,
'outcome' => null,
'condition' => [
'variable' => '<string>',
'operator' => '<string>',
'value' => null
]
]
],
'global_edges' => [
[
'id' => '<string>',
'source' => '<string>',
'source_handle' => '<string>',
'target' => '<string>',
'from' => '<string>',
'to' => '<string>',
'when' => [
],
'on' => null,
'outcome' => null,
'condition' => [
'variable' => '<string>',
'operator' => '<string>',
'value' => null
]
]
],
'variables_schema' => [
],
'ui_state' => [
],
'compliance_plan' => [
],
'guardrail_plan' => [
'enabled' => true,
'mode' => 'enforce',
'strictness' => 'balanced',
'classifier' => [
'provider' => 'openai',
'model' => 'gpt-4.1-mini',
'timeout_ms' => 1200,
'on_error' => 'allow',
'observer_model' => '<string>'
],
'limits' => [
'max_session_turns' => 250,
'max_duration_seconds' => 7215,
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'banned_phrases' => [
'enabled' => false,
'input' => [
'<string>'
],
'output' => [
'<string>'
],
'patterns' => [
'<string>'
],
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'prompt_injection' => [
'enabled' => false,
'sensitivity' => 'medium',
'use_llm' => true,
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'topics' => [
'enabled' => false,
'description' => '',
'allowed' => [
'<string>'
],
'blocked' => [
'<string>'
],
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'custom_rules' => [
[
'id' => '<string>',
'prompt' => '<string>',
'name' => '',
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
]
],
'escalation' => [
'after_violations' => 3,
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'prompt_hardening' => [
'enabled' => true,
'out_of_scope' => 'decline',
'handoff_hint' => '',
'sensitive_advice' => false
],
'tool_safety' => [
'validate_arguments' => true,
'block_duplicate_calls' => true,
'max_tool_steps' => 5
],
'review' => [
'enabled' => false,
'judges' => [
],
'sample_rate' => 1,
'model' => '<string>'
],
'replace' => true
],
'analysis_enabled' => false,
'analysis_profile_id' => '<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.vonative.com/v1/workflows"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"nodes\": [\n {\n \"id\": \"<string>\",\n \"type\": \"<string>\",\n \"data\": {\n \"label\": \"<string>\",\n \"prompt\": \"<string>\",\n \"firstMessage\": \"<string>\",\n \"generate_from_model\": true,\n \"max_retries\": 123,\n \"loop_fallback_node\": \"<string>\",\n \"file_ids\": [\n \"<unknown>\"\n ],\n \"top_k\": 123,\n \"score_threshold\": 123,\n \"max_context_chars\": 6000,\n \"completion\": {},\n \"avatar\": {},\n \"pipeline_selector\": {},\n \"text\": \"<string>\",\n \"end_call_message\": \"<string>\",\n \"allowInterruptions\": false,\n \"addToChatCtx\": true,\n \"voice\": {},\n \"model\": {},\n \"transcriber\": {},\n \"extraction_type\": \"<string>\",\n \"prebuilt_config\": {},\n \"extract_variables\": [\n \"<unknown>\"\n ],\n \"conditions\": [\n \"<unknown>\"\n ],\n \"branches\": [\n \"<unknown>\"\n ],\n \"assistant_id\": \"<string>\",\n \"assistant_name\": \"<string>\",\n \"assistant_overrides\": {},\n \"tool_ids\": [\n \"<unknown>\"\n ],\n \"url\": \"<string>\",\n \"method\": \"<string>\",\n \"headers\": {},\n \"body_template\": \"<string>\",\n \"bodyParameters\": [\n {}\n ],\n \"output_key\": \"<string>\",\n \"timeout_ms\": 5000,\n \"retries\": 2,\n \"idempotency_key\": \"<string>\",\n \"allowed_domains\": [\n \"<string>\"\n ],\n \"on_error\": \"<string>\",\n \"auth_method\": \"<string>\",\n \"server_credential_id\": \"<string>\",\n \"transferCall\": {},\n \"googleSheets\": {},\n \"googleCalendar\": {},\n \"googleGmail\": {},\n \"googleGmailSend\": {},\n \"apiRequest\": {},\n \"node_type\": \"<string>\"\n },\n \"task\": {},\n \"agent\": {},\n \"tool\": {},\n \"result_schema\": {},\n \"stores\": {}\n }\n ],\n \"edges\": [\n {\n \"id\": \"<string>\",\n \"source\": \"<string>\",\n \"source_handle\": \"<string>\",\n \"target\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"when\": {},\n \"on\": null,\n \"outcome\": null,\n \"condition\": {\n \"variable\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": null\n }\n }\n ],\n \"global_edges\": [\n {\n \"id\": \"<string>\",\n \"source\": \"<string>\",\n \"source_handle\": \"<string>\",\n \"target\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"when\": {},\n \"on\": null,\n \"outcome\": null,\n \"condition\": {\n \"variable\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": null\n }\n }\n ],\n \"variables_schema\": {},\n \"ui_state\": {},\n \"compliance_plan\": {},\n \"guardrail_plan\": {\n \"enabled\": true,\n \"mode\": \"enforce\",\n \"strictness\": \"balanced\",\n \"classifier\": {\n \"provider\": \"openai\",\n \"model\": \"gpt-4.1-mini\",\n \"timeout_ms\": 1200,\n \"on_error\": \"allow\",\n \"observer_model\": \"<string>\"\n },\n \"limits\": {\n \"max_session_turns\": 250,\n \"max_duration_seconds\": 7215,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"banned_phrases\": {\n \"enabled\": false,\n \"input\": [\n \"<string>\"\n ],\n \"output\": [\n \"<string>\"\n ],\n \"patterns\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_injection\": {\n \"enabled\": false,\n \"sensitivity\": \"medium\",\n \"use_llm\": true,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"topics\": {\n \"enabled\": false,\n \"description\": \"\",\n \"allowed\": [\n \"<string>\"\n ],\n \"blocked\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"custom_rules\": [\n {\n \"id\": \"<string>\",\n \"prompt\": \"<string>\",\n \"name\": \"\",\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n }\n ],\n \"escalation\": {\n \"after_violations\": 3,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_hardening\": {\n \"enabled\": true,\n \"out_of_scope\": \"decline\",\n \"handoff_hint\": \"\",\n \"sensitive_advice\": false\n },\n \"tool_safety\": {\n \"validate_arguments\": true,\n \"block_duplicate_calls\": true,\n \"max_tool_steps\": 5\n },\n \"review\": {\n \"enabled\": false,\n \"judges\": [],\n \"sample_rate\": 1,\n \"model\": \"<string>\"\n },\n \"replace\": true\n },\n \"analysis_enabled\": false,\n \"analysis_profile_id\": \"<string>\"\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.vonative.com/v1/workflows")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"nodes\": [\n {\n \"id\": \"<string>\",\n \"type\": \"<string>\",\n \"data\": {\n \"label\": \"<string>\",\n \"prompt\": \"<string>\",\n \"firstMessage\": \"<string>\",\n \"generate_from_model\": true,\n \"max_retries\": 123,\n \"loop_fallback_node\": \"<string>\",\n \"file_ids\": [\n \"<unknown>\"\n ],\n \"top_k\": 123,\n \"score_threshold\": 123,\n \"max_context_chars\": 6000,\n \"completion\": {},\n \"avatar\": {},\n \"pipeline_selector\": {},\n \"text\": \"<string>\",\n \"end_call_message\": \"<string>\",\n \"allowInterruptions\": false,\n \"addToChatCtx\": true,\n \"voice\": {},\n \"model\": {},\n \"transcriber\": {},\n \"extraction_type\": \"<string>\",\n \"prebuilt_config\": {},\n \"extract_variables\": [\n \"<unknown>\"\n ],\n \"conditions\": [\n \"<unknown>\"\n ],\n \"branches\": [\n \"<unknown>\"\n ],\n \"assistant_id\": \"<string>\",\n \"assistant_name\": \"<string>\",\n \"assistant_overrides\": {},\n \"tool_ids\": [\n \"<unknown>\"\n ],\n \"url\": \"<string>\",\n \"method\": \"<string>\",\n \"headers\": {},\n \"body_template\": \"<string>\",\n \"bodyParameters\": [\n {}\n ],\n \"output_key\": \"<string>\",\n \"timeout_ms\": 5000,\n \"retries\": 2,\n \"idempotency_key\": \"<string>\",\n \"allowed_domains\": [\n \"<string>\"\n ],\n \"on_error\": \"<string>\",\n \"auth_method\": \"<string>\",\n \"server_credential_id\": \"<string>\",\n \"transferCall\": {},\n \"googleSheets\": {},\n \"googleCalendar\": {},\n \"googleGmail\": {},\n \"googleGmailSend\": {},\n \"apiRequest\": {},\n \"node_type\": \"<string>\"\n },\n \"task\": {},\n \"agent\": {},\n \"tool\": {},\n \"result_schema\": {},\n \"stores\": {}\n }\n ],\n \"edges\": [\n {\n \"id\": \"<string>\",\n \"source\": \"<string>\",\n \"source_handle\": \"<string>\",\n \"target\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"when\": {},\n \"on\": null,\n \"outcome\": null,\n \"condition\": {\n \"variable\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": null\n }\n }\n ],\n \"global_edges\": [\n {\n \"id\": \"<string>\",\n \"source\": \"<string>\",\n \"source_handle\": \"<string>\",\n \"target\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"when\": {},\n \"on\": null,\n \"outcome\": null,\n \"condition\": {\n \"variable\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": null\n }\n }\n ],\n \"variables_schema\": {},\n \"ui_state\": {},\n \"compliance_plan\": {},\n \"guardrail_plan\": {\n \"enabled\": true,\n \"mode\": \"enforce\",\n \"strictness\": \"balanced\",\n \"classifier\": {\n \"provider\": \"openai\",\n \"model\": \"gpt-4.1-mini\",\n \"timeout_ms\": 1200,\n \"on_error\": \"allow\",\n \"observer_model\": \"<string>\"\n },\n \"limits\": {\n \"max_session_turns\": 250,\n \"max_duration_seconds\": 7215,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"banned_phrases\": {\n \"enabled\": false,\n \"input\": [\n \"<string>\"\n ],\n \"output\": [\n \"<string>\"\n ],\n \"patterns\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_injection\": {\n \"enabled\": false,\n \"sensitivity\": \"medium\",\n \"use_llm\": true,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"topics\": {\n \"enabled\": false,\n \"description\": \"\",\n \"allowed\": [\n \"<string>\"\n ],\n \"blocked\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"custom_rules\": [\n {\n \"id\": \"<string>\",\n \"prompt\": \"<string>\",\n \"name\": \"\",\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n }\n ],\n \"escalation\": {\n \"after_violations\": 3,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_hardening\": {\n \"enabled\": true,\n \"out_of_scope\": \"decline\",\n \"handoff_hint\": \"\",\n \"sensitive_advice\": false\n },\n \"tool_safety\": {\n \"validate_arguments\": true,\n \"block_duplicate_calls\": true,\n \"max_tool_steps\": 5\n },\n \"review\": {\n \"enabled\": false,\n \"judges\": [],\n \"sample_rate\": 1,\n \"model\": \"<string>\"\n },\n \"replace\": true\n },\n \"analysis_enabled\": false,\n \"analysis_profile_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vonative.com/v1/workflows")
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 \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"nodes\": [\n {\n \"id\": \"<string>\",\n \"type\": \"<string>\",\n \"data\": {\n \"label\": \"<string>\",\n \"prompt\": \"<string>\",\n \"firstMessage\": \"<string>\",\n \"generate_from_model\": true,\n \"max_retries\": 123,\n \"loop_fallback_node\": \"<string>\",\n \"file_ids\": [\n \"<unknown>\"\n ],\n \"top_k\": 123,\n \"score_threshold\": 123,\n \"max_context_chars\": 6000,\n \"completion\": {},\n \"avatar\": {},\n \"pipeline_selector\": {},\n \"text\": \"<string>\",\n \"end_call_message\": \"<string>\",\n \"allowInterruptions\": false,\n \"addToChatCtx\": true,\n \"voice\": {},\n \"model\": {},\n \"transcriber\": {},\n \"extraction_type\": \"<string>\",\n \"prebuilt_config\": {},\n \"extract_variables\": [\n \"<unknown>\"\n ],\n \"conditions\": [\n \"<unknown>\"\n ],\n \"branches\": [\n \"<unknown>\"\n ],\n \"assistant_id\": \"<string>\",\n \"assistant_name\": \"<string>\",\n \"assistant_overrides\": {},\n \"tool_ids\": [\n \"<unknown>\"\n ],\n \"url\": \"<string>\",\n \"method\": \"<string>\",\n \"headers\": {},\n \"body_template\": \"<string>\",\n \"bodyParameters\": [\n {}\n ],\n \"output_key\": \"<string>\",\n \"timeout_ms\": 5000,\n \"retries\": 2,\n \"idempotency_key\": \"<string>\",\n \"allowed_domains\": [\n \"<string>\"\n ],\n \"on_error\": \"<string>\",\n \"auth_method\": \"<string>\",\n \"server_credential_id\": \"<string>\",\n \"transferCall\": {},\n \"googleSheets\": {},\n \"googleCalendar\": {},\n \"googleGmail\": {},\n \"googleGmailSend\": {},\n \"apiRequest\": {},\n \"node_type\": \"<string>\"\n },\n \"task\": {},\n \"agent\": {},\n \"tool\": {},\n \"result_schema\": {},\n \"stores\": {}\n }\n ],\n \"edges\": [\n {\n \"id\": \"<string>\",\n \"source\": \"<string>\",\n \"source_handle\": \"<string>\",\n \"target\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"when\": {},\n \"on\": null,\n \"outcome\": null,\n \"condition\": {\n \"variable\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": null\n }\n }\n ],\n \"global_edges\": [\n {\n \"id\": \"<string>\",\n \"source\": \"<string>\",\n \"source_handle\": \"<string>\",\n \"target\": \"<string>\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"when\": {},\n \"on\": null,\n \"outcome\": null,\n \"condition\": {\n \"variable\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": null\n }\n }\n ],\n \"variables_schema\": {},\n \"ui_state\": {},\n \"compliance_plan\": {},\n \"guardrail_plan\": {\n \"enabled\": true,\n \"mode\": \"enforce\",\n \"strictness\": \"balanced\",\n \"classifier\": {\n \"provider\": \"openai\",\n \"model\": \"gpt-4.1-mini\",\n \"timeout_ms\": 1200,\n \"on_error\": \"allow\",\n \"observer_model\": \"<string>\"\n },\n \"limits\": {\n \"max_session_turns\": 250,\n \"max_duration_seconds\": 7215,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"banned_phrases\": {\n \"enabled\": false,\n \"input\": [\n \"<string>\"\n ],\n \"output\": [\n \"<string>\"\n ],\n \"patterns\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_injection\": {\n \"enabled\": false,\n \"sensitivity\": \"medium\",\n \"use_llm\": true,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"topics\": {\n \"enabled\": false,\n \"description\": \"\",\n \"allowed\": [\n \"<string>\"\n ],\n \"blocked\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"custom_rules\": [\n {\n \"id\": \"<string>\",\n \"prompt\": \"<string>\",\n \"name\": \"\",\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n }\n ],\n \"escalation\": {\n \"after_violations\": 3,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_hardening\": {\n \"enabled\": true,\n \"out_of_scope\": \"decline\",\n \"handoff_hint\": \"\",\n \"sensitive_advice\": false\n },\n \"tool_safety\": {\n \"validate_arguments\": true,\n \"block_duplicate_calls\": true,\n \"max_tool_steps\": 5\n },\n \"review\": {\n \"enabled\": false,\n \"judges\": [],\n \"sample_rate\": 1,\n \"model\": \"<string>\"\n },\n \"replace\": true\n },\n \"analysis_enabled\": false,\n \"analysis_profile_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "success",
"data": {
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"status": "<string>",
"nodes": [
{}
],
"edges": [
{}
],
"variables_schema": {},
"ui_state": {},
"organization_id": "<string>",
"user_id": "<string>",
"description": "<string>",
"global_edges": [
{}
],
"compliance_plan": {},
"guardrail_plan": {
"enabled": true,
"mode": "enforce",
"strictness": "balanced",
"classifier": {
"provider": "openai",
"model": "gpt-4.1-mini",
"timeout_ms": 1200,
"on_error": "allow",
"observer_model": "<string>"
},
"limits": {
"max_session_turns": 250,
"max_duration_seconds": 7215,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"banned_phrases": {
"enabled": false,
"input": [
"<string>"
],
"output": [
"<string>"
],
"patterns": [
"<string>"
],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_injection": {
"enabled": false,
"sensitivity": "medium",
"use_llm": true,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"topics": {
"enabled": false,
"description": "",
"allowed": [
"<string>"
],
"blocked": [
"<string>"
],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"custom_rules": [
{
"id": "<string>",
"prompt": "<string>",
"name": "",
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
}
],
"escalation": {
"after_violations": 3,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_hardening": {
"enabled": true,
"out_of_scope": "decline",
"handoff_hint": "",
"sensitive_advice": false
},
"tool_safety": {
"validate_arguments": true,
"block_duplicate_calls": true,
"max_tool_steps": 5
},
"review": {
"enabled": false,
"judges": [],
"sample_rate": 1,
"model": "<string>"
},
"replace": true
},
"analysis_enabled": false,
"analysis_profile_id": "<string>",
"published_at": "2023-11-07T05:31:56Z"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
An API key from Dashboard → Developers → API keys.
Body
application/json
Maximum string length:
255Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Safety checks for this conversation. See Guardrails.
Show child attributes
Show child attributes
⌘I

