cURL
curl --request PUT \ --url https://api.trillet.ai/v1/api/message-flows/{id} \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --header 'x-workspace-id: <x-workspace-id>' \ --data '{ "description": "<string>", "toggleAutopilot": true, "settings": { "responseSettings": { "delay": 123, "workingHours": { "enabled": true, "start": "<string>", "end": "<string>", "timezone": "<string>", "outOfHoursMessage": "<string>" } }, "security": { "hipaaCompliance": true }, "emailSettings": { "subjectLine": "<string>", "signature": "<string>" } } }'
{ "_id": "exampleId1", "workspaceId": "exampleWorkspaceId1", "name": "New Years Sale", "direction": "bidirectional", "description": "Handles customer support inquiries via SMS", "agent": "exampleAgentId1", "settings": { "responseSettings": { "delay": 0, "workingHours": { "enabled": false, "start": "09:00", "end": "17:00", "timezone": "UTC", "outOfHoursMessage": "" } }, "security": { "hipaaCompliance": false }, "emailSettings": { "subjectLine": "Follow Up on Your Inquiry", "signature": "Regards" } }, "prompt": "You are a helpful AI that responds to user inquiries.", "isActive": true, "autopilot": true, "messageChannel": "SMS", "createdAt": "2025-01-02T10:15:00Z", "updatedAt": "2025-01-02T10:15:00Z", "__v": 0 }
Update an existing message flow with partial or full settings.
Show settings
Show responseSettings
Show workingHours
Show security
Show emailSettings