Update Message Flow
Update an existing message flow with partial or full settings.
Headers
x-api-keystringrequiredAPI key used for authenticating requests to the API.
x-workspace-idstringrequiredWorkspace identifier for the API.
Path Parameters
idstringrequiredThe unique identifier of the message flow to update.
Request Body
descriptionstringUpdate the description for this message flow.
toggleAutopilotbooleanIf present and set to true, this toggles the autopilot setting.
settingsobjectConfiguration settings for the message flow.
Response Fields
_idstringThe unique identifier for the message flow that was updated.
workspaceIdstringThe identifier of the workspace where the message flow is configured.
namestringThe name of the message flow. While not specified as updated in the request body, it remains a critical part of the response for context.
directionstringIndicates the direction of the message flow, such as "bidirectional".
descriptionstringThe updated description of what the message flow is designed to handle.
agentstringThe identifier of the agent associated with this message flow.
settingsobjectThe configuration settings for the message flow, detailing updated and existing settings.
responseSettingsobjectSettings related to the timing and conditions under which responses are issued within the message flow.
delaynumberThe delay in seconds before a response is issued.
workingHoursobjectConfiguration for working hours during which the message flow is active.
enabledbooleanWhether working hours are enabled.
startstringStart time of the working hours.
endstringEnd time of the working hours.
timezonestringTimezone applicable to the working hours.
outOfHoursMessagestringMessage to be delivered outside of working hours.
securityobjectSecurity settings for the message flow, including HIPAA compliance status.
hipaaCompliancebooleanIndicates if HIPAA compliance is enforced.
emailSettingsobjectEmail settings for managing email-based message flows.
subjectLinestringThe subject line used for emails sent in this flow.
signaturestringThe email signature appended to messages.
promptstringThe system or initial prompt set for the AI agent in the message flow.
isActivebooleanIndicates whether the message flow is currently active.
autopilotbooleanSpecifies whether autopilot is enabled or disabled after the update.
messageChannelstringThe type of communication channel used by the message flow, such as "SMS".
createdAtstringThe timestamp when the message flow was created.
updatedAtstringThe timestamp when the message flow was last updated.
{
"_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"
}
