cURL
curl --request PUT \ --url https://api.trillet.ai/v1/api/call-flows/{id} \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --header 'x-workspace-id: <x-workspace-id>' \ --data '{ "name": "<string>", "description": "<string>", "direction": "<string>", "isActive": true, "isGlobal": true, "promptType": "<string>", "prompt": "<string>", "welcomeMessage": "<string>", "customWelcomeMessage": "<string>", "dynamicVariableCollections": [ { "id": "<string>", "name": "<string>", "isDefault": true, "variables": [ { "key": "<string>", "value": "<string>" } ] } ], "settings": { "enableHumanLikeVoiceAndTone": true, "welcomeMessageDelay": 123, "customerLocation": "<string>", "utilizePriorCallsContext": true, "responseSettings": { "delay": 123, "workingHours": { "enabled": true, "start": "<string>", "end": "<string>", "timezone": "<string>", "outOfHoursMessage": "<string>" } }, "security": { "hipaaCompliance": true, "publicAccess": true }, "callSetting": { "maxCallDuration": 123, "endCallOnSilence": 123, "trilletVoiceGuard": true, "reminderMessages": [ {} ] }, "knowledgeBaseFiles": [ { "filename": "<string>", "key": "<string>", "url": "<string>" } ], "knowledgeBases": [ {} ], "transfers": [ {} ] }, "webhooks": [ { "name": "<string>", "description": "<string>", "url": "<string>", "method": "<string>", "headers": {}, "body": "<string>", "variables": [ { "name": "<string>", "description": "<string>" } ], "responseVariables": [ { "name": "<string>", "path": "<string>", "description": "<string>" } ], "isTesting": true, "testResponse": "<string>", "textToSpeak": "<string>" } ] }'
{ "_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 }
Update an existing call flow.
Show dynamicVariableCollections
Show variables
Show settings
Show responseSettings
Show workingHours
Show security
Show callSetting
Show knowledgeBaseFiles
Show webhooks
Show responseVariables
endCallOnSilence
maxCallDuration