API key used for authenticating requests to the API.
Workspace identifier for the API.
Request Body
A friendly name for this call flow (e.g., “Customer Support Flow”).
Direction of the flow. Possible values: “outbound”, “bidirectional”.
Description of the call flow (e.g. “Handles inbound support calls”).
ID of the agent to associate with this flow. If provided, the system looks for a pending phone number for that agent and activates it.
promptType
string
default: "simple"
required
Only “simple” type of prompt configuration is allowed now.
ID of the folder to organize this call flow.
Whether this is a global call flow. Only specific workspaces can create global flows.
Whether this call flow is pre-configured. Defaults to false.
Workspace ID for pre-configured flows.
Welcome message type. Possible values: “user_initiated”, “ai_dynamic”, “ai_custom”. Defaults to “user_initiated”.
Custom welcome message text when welcomeMessage is set to “ai_custom” only.
Flow-based configuration using a node/edge approach for complex call routing. Array of node objects, each representing a point in the call routing process. Each node object may include properties like id
, type
, and data
for custom configurations.
Array of edge objects, connecting the nodes defined in the nodes
array. Each edge object can specify the source and target nodes, along with additional routing logic.
A system or initial prompt for the flow. This will be used to create the first prompt version.
Whether the flow is currently active. Defaults to true.
Webhook URL for agent-related events.
Webhook URL for inbound call events.
dynamicVariableCollections
Array of dynamic variable collections for the call flow. Show dynamicVariableCollections
Unique identifier for the variable collection.
Name of the variable collection.
Array of key-value pairs for variables. Whether this is the default variable collection. Defaults to false.
Array of webhook configurations for the call flow. HTTP method. Possible values: “GET”, “POST”, “PUT”, “DELETE”. Defaults to “POST”.
Key-value pairs for HTTP headers.
Description of the webhook purpose.
Variables available for call flow. Variables extracted from webhook responses. JSON path to extract the variable value.
Response variable description.
Whether the webhook is in testing mode.
Text to be spoken when webhook is triggered.
Mock response for testing purposes.
Main configuration object for the call flow. Welcome message type. Possible values: “user_initiated”, “ai_dynamic”, “ai_custom”.
Custom welcome message text.
enableHumanLikeVoiceAndTone
Enable human-like voice and tone. Defaults to false.
Delay in seconds before welcome message. Defaults to 0.
Webhook URLs for different events. Customer location for the call flow. Defaults to “new york”.
Array of transfer configurations.
Array of knowledge base IDs to associate with this call flow.
Whether to utilize context from prior calls. Defaults to false.
Call-specific settings. Enable Trillet voice guard. Defaults to true.
Array of reminder message strings.
Security configuration settings. Whether to opt out of security features (affects HIPAA compliance).
Whether to allow public access to the call flow.
Response Fields
The unique identifier for the newly created call flow.
The identifier of the workspace where the call flow has been created.
The identifier of the folder where the call flow is organized.
Whether this is a global call flow.
Whether this call flow is pre-configured.
Workspace ID for pre-configured flows.
The name given to the call flow.
The direction configuration of the call flow; can be “inbound”, “outbound”, or “bidirectional”.
A description of what the call flow is designed to handle.
The identifier of the agent associated with this call flow.
Only “simple” prompt types allowed now.
Welcome message type configuration.
Custom welcome message text if configured.
The configuration of nodes and edges that define the call routing logic within the flow. Detailed configuration of the nodes within the call flow.
Configurations of the edges connecting nodes within the call flow.
The initial or system prompt used in the call flow.
ID of the current active prompt version.
Array of prompt versions with their metadata. Unique identifier for the prompt version.
Name of the prompt version.
Prompt content for this version.
Additional metadata including notes.
Sanitized version of the prompt for Gemini processing.
Indicates whether the call flow is currently active or inactive.
Webhook URL for agent-related events.
Webhook URL for inbound call events.
dynamicVariableCollections
Array of dynamic variable collections configured for the call flow.
Array of location objects for visual flow positioning.
Array of configured webhooks with their complete configuration.
Configuration settings for various aspects of the call flow, including welcome messages, webhooks, knowledge bases, call settings, and security. Security settings with processed values. HIPAA compliance status (processed from securityOptOut).
Public access configuration.
Timestamp when the call flow was created.
Timestamp when the call flow was last updated.
The version number of the call flow document.
{
"_id" : "676b8e123456789012345678" ,
"workspaceId" : "6764d172953253138a3a70f4" ,
"folderId" : null ,
"isGlobal" : false ,
"isPreConfigured" : false ,
"preConfiguredWorkspaceId" : null ,
"name" : "Customer Support Flow" ,
"direction" : "inbound" ,
"description" : "Handles inbound support calls" ,
"agent" : "676b8e123456789012345679" ,
"promptType" : "simple" ,
"welcomeMessage" : "user_initiated" ,
"customWelcomeMessage" : "" ,
"flowData" : {
"nodes" : [
{
"id" : "node1" ,
"type" : "start" ,
"data" : {
"prompt" : "Welcome to our support line. How can I help you?"
}
}
],
"edges" : []
},
"prompt" : "Keep the conversation short and friendly." ,
"currentPromptId" : "676b8e123456789012345680" ,
"promptVersions" : [
{
"_id" : "676b8e123456789012345680" ,
"name" : "Prompt Version - 1/15/2025, 3:00:00 PM" ,
"prompt" : "Keep the conversation short and friendly." ,
"metadata" : {
"notes" : ""
},
"createdAt" : "2025-01-15T15:00:00.000Z" ,
"updatedAt" : "2025-01-15T15:00:00.000Z"
}
],
"gemini_prompt" : "Keep the conversation short and friendly." ,
"startNodeId" : null ,
"isActive" : true ,
"agentWebhookUrl" : "" ,
"inboundWebhookUrl" : "" ,
"dynamicVariableCollections" : [],
"locations" : [],
"webhooks" : [],
"settings" : {
"welcomeMessage" : "user_initiated" ,
"customWelcomeMessage" : "" ,
"enableHumanLikeVoiceAndTone" : false ,
"welcomeMessageDelay" : 0 ,
"webhooks" : {
"agent" : "" ,
"inbound" : ""
},
"customerLocation" : "new york" ,
"transfers" : [],
"knowledgeBases" : [],
"utilizePriorCallsContext" : false ,
"callSettings" : {
"trilletVoiceGuard" : true ,
"reminderMessages" : []
},
"security" : {
"hipaaCompliance" : false ,
"publicAccess" : false
}
},
"createdAt" : "2025-01-15T15:00:00.000Z" ,
"updatedAt" : "2025-01-15T15:00:00.000Z" ,
"__v" : 0
}