Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Authentication header containing API key (find it in dashboard). The format is "Bearer YOUR_API_KEY"

Body

application/json

Override properties for conversation flow configuration in agent override requests.

model_choice
object
required

The model choice for the conversation flow.

start_speaker
enum<string>
required

Who starts the conversation - user or agent.

Available options:
user,
agent
Example:

"agent"

nodes
object · any · any · any · any · any · any · any · any · any · any · any · object · any · any[]
required

Array of nodes in the conversation flow.

Example:
model_temperature
number | null

Controls the randomness of the model's responses. Lower values make responses more deterministic.

Required range: 0 <= x <= 1
Example:

0.7

tool_call_strict_mode
boolean | null

Whether to use strict mode for tool calls. Only applicable when using certain supported models.

Example:

true

knowledge_base_ids
string[] | null

Knowledge base IDs for RAG (Retrieval-Augmented Generation).

Example:
kb_config
object

Knowledge base configuration for RAG retrieval.

begin_after_user_silence_ms
integer | null

If set, the AI will begin the conversation after waiting for the user for the duration (in milliseconds) specified by this attribute. This only applies if the agent is configured to wait for the user to speak first. If not set, the agent will wait indefinitely for the user to speak.

Example:

2000

global_prompt
string | null

Global prompt used in every node of the conversation flow.

Example:

"You are a helpful customer service agent."

flex_mode
boolean | null

If enabled, the whole conversation flow will be converted as a Single Prompt agent.

Example:

false

tools
object[] | null

Tools available in the conversation flow.

Example:
components
object[] | null

Local components embedded within the conversation flow.

start_node_id
string | null

ID of the start node in the conversation flow.

Example:

"start"

default_dynamic_variables
object | null

Default dynamic variables that can be referenced throughout the conversation flow.

Example:
begin_tag_display_position
object | null

Display position for the begin tag in the frontend.

notes
object[] | null

Visual annotations displayed on the flow canvas.

mcps
object[] | null

A list of MCP server configurations to use for this conversation flow.

is_transfer_llm
boolean | null

Whether this conversation flow is used for transfer LLM.

Example:

false

Response

Successfully created a conversation flow

Override properties for conversation flow configuration in agent override requests.

conversation_flow_id
string
required

Unique identifier for the conversation flow

version
integer
required

Version number of the conversation flow

last_modification_timestamp
integer
required

Last modification timestamp (milliseconds since epoch). Either the time of last update or creation if no updates available.

Example:

1703413636133

model_choice
object

The model choice for the conversation flow.

model_temperature
number | null

Controls the randomness of the model's responses. Lower values make responses more deterministic.

Required range: 0 <= x <= 1
Example:

0.7

tool_call_strict_mode
boolean | null

Whether to use strict mode for tool calls. Only applicable when using certain supported models.

Example:

true

knowledge_base_ids
string[] | null

Knowledge base IDs for RAG (Retrieval-Augmented Generation).

Example:
kb_config
object

Knowledge base configuration for RAG retrieval.

start_speaker
enum<string>

Who starts the conversation - user or agent.

Available options:
user,
agent
Example:

"agent"

begin_after_user_silence_ms
integer | null

If set, the AI will begin the conversation after waiting for the user for the duration (in milliseconds) specified by this attribute. This only applies if the agent is configured to wait for the user to speak first. If not set, the agent will wait indefinitely for the user to speak.

Example:

2000

global_prompt
string | null

Global prompt used in every node of the conversation flow.

Example:

"You are a helpful customer service agent."

flex_mode
boolean | null

If enabled, the whole conversation flow will be converted as a Single Prompt agent.

Example:

false

tools
object[] | null

Tools available in the conversation flow.

Example:
components
object[] | null

Local components embedded within the conversation flow.

start_node_id
string | null

ID of the start node in the conversation flow.

Example:

"start"

default_dynamic_variables
object | null

Default dynamic variables that can be referenced throughout the conversation flow.

Example:
begin_tag_display_position
object | null

Display position for the begin tag in the frontend.

notes
object[] | null

Visual annotations displayed on the flow canvas.

mcps
object[] | null

A list of MCP server configurations to use for this conversation flow.

is_transfer_llm
boolean | null

Whether this conversation flow is used for transfer LLM.

Example:

false

nodes
object · any · any · any · any · any · any · any · any · any · any · any · object · any · any[]

Array of nodes in the conversation flow.

Example: