Preview a condition path
curl --request POST \
--url https://app.famulor.io/api/v1/assistants/{id}/flow/conditions/{nodeId}/preview \
--header 'Content-Type: application/json' \
--data '
{
"sample": "<string>",
"variables": {}
}
'import requests
url = "https://app.famulor.io/api/v1/assistants/{id}/flow/conditions/{nodeId}/preview"
payload = {
"sample": "<string>",
"variables": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({sample: '<string>', variables: {}})
};
fetch('https://app.famulor.io/api/v1/assistants/{id}/flow/conditions/{nodeId}/preview', 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://app.famulor.io/api/v1/assistants/{id}/flow/conditions/{nodeId}/preview",
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([
'sample' => '<string>',
'variables' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.famulor.io/api/v1/assistants/{id}/flow/conditions/{nodeId}/preview"
payload := strings.NewReader("{\n \"sample\": \"<string>\",\n \"variables\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.famulor.io/api/v1/assistants/{id}/flow/conditions/{nodeId}/preview")
.header("Content-Type", "application/json")
.body("{\n \"sample\": \"<string>\",\n \"variables\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.famulor.io/api/v1/assistants/{id}/flow/conditions/{nodeId}/preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"sample\": \"<string>\",\n \"variables\": {}\n}"
response = http.request(request)
puts response.read_body{
"data": {
"result": {
"pathId": "<string>",
"pathLabel": "<string>",
"source": "rule"
}
}
}{
"error": {
"code": "rate_limited",
"message": "Too many requests. Retry after the indicated delay."
}
}{
"error": {
"code": "internal_error",
"message": "Request protection is temporarily unavailable."
}
}Assistants
Preview a condition path
Check which path a saved condition with a default path would take with sample values and an optional caller reply. The preview stops at the condition. Requires Flow Builder access and the assistants:write scope. Also available through the preview_assistant_flow_condition MCP tool and famulor preview-assistant-flow-condition.
POST
/
assistants
/
{id}
/
flow
/
conditions
/
{nodeId}
/
preview
Preview a condition path
curl --request POST \
--url https://app.famulor.io/api/v1/assistants/{id}/flow/conditions/{nodeId}/preview \
--header 'Content-Type: application/json' \
--data '
{
"sample": "<string>",
"variables": {}
}
'import requests
url = "https://app.famulor.io/api/v1/assistants/{id}/flow/conditions/{nodeId}/preview"
payload = {
"sample": "<string>",
"variables": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({sample: '<string>', variables: {}})
};
fetch('https://app.famulor.io/api/v1/assistants/{id}/flow/conditions/{nodeId}/preview', 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://app.famulor.io/api/v1/assistants/{id}/flow/conditions/{nodeId}/preview",
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([
'sample' => '<string>',
'variables' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.famulor.io/api/v1/assistants/{id}/flow/conditions/{nodeId}/preview"
payload := strings.NewReader("{\n \"sample\": \"<string>\",\n \"variables\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.famulor.io/api/v1/assistants/{id}/flow/conditions/{nodeId}/preview")
.header("Content-Type", "application/json")
.body("{\n \"sample\": \"<string>\",\n \"variables\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.famulor.io/api/v1/assistants/{id}/flow/conditions/{nodeId}/preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"sample\": \"<string>\",\n \"variables\": {}\n}"
response = http.request(request)
puts response.read_body{
"data": {
"result": {
"pathId": "<string>",
"pathLabel": "<string>",
"source": "rule"
}
}
}{
"error": {
"code": "rate_limited",
"message": "Too many requests. Retry after the indicated delay."
}
}{
"error": {
"code": "internal_error",
"message": "Request protection is temporarily unavailable."
}
}Body
application/json