Generate a workflow from a description
curl --request POST \
--url https://api.vonative.com/v1/workflows/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"reference_material": "<string>"
}
'import requests
url = "https://api.vonative.com/v1/workflows/generate"
payload = {
"prompt": "<string>",
"reference_material": "<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({prompt: '<string>', reference_material: '<string>'})
};
fetch('https://api.vonative.com/v1/workflows/generate', 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/generate",
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([
'prompt' => '<string>',
'reference_material' => '<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/generate"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"reference_material\": \"<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/generate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"reference_material\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vonative.com/v1/workflows/generate")
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 \"prompt\": \"<string>\",\n \"reference_material\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "success",
"data": {
"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": {}
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Workflows
Generate a workflow from a description
Generate a workflow graph using AI based on a text prompt.
Required permission: workflows:write
POST
/
v1
/
workflows
/
generate
Generate a workflow from a description
curl --request POST \
--url https://api.vonative.com/v1/workflows/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"reference_material": "<string>"
}
'import requests
url = "https://api.vonative.com/v1/workflows/generate"
payload = {
"prompt": "<string>",
"reference_material": "<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({prompt: '<string>', reference_material: '<string>'})
};
fetch('https://api.vonative.com/v1/workflows/generate', 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/generate",
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([
'prompt' => '<string>',
'reference_material' => '<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/generate"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"reference_material\": \"<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/generate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"reference_material\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vonative.com/v1/workflows/generate")
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 \"prompt\": \"<string>\",\n \"reference_material\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "success",
"data": {
"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": {}
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
An API key from Dashboard → Developers → API keys.
Body
application/json
⌘I

