Skip to main content
POST
Create Message Flow

Headers

string
required
API key used for authenticating requests to the API.
string
required
Workspace identifier for the API.

Request Body

string
required
The name of this message flow (e.g., “New Years Sale”).
string
required
Direction of the flow. Possible values: “inbound” “outbound” “bidirectional”.
string
Short description (e.g., “Handles customer support inquiries via SMS”).
string
required
ID of the OmniFlowAgent to associate with this flow.
object
Full configuration object. This can include:
string
required
The first message that triggers the message flow. This field is essential for the generateMessage functionality.
string
required
A system prompt or instructions for the AI agent.
boolean
Enable or disable autopilot for this flow (default false).
boolean
Enable or disable autopilot for this flow (default false).
string
required
Channel type: “SMS” or “Email”.

Response Fields

string
The unique identifier for the newly created message flow.
string
The identifier of the workspace where the message flow is configured.
string
The name given to the message flow.
string
The direction of the message flow; possible values include “inbound”, “outbound”, or “bidirectional”.
string
A brief description of what the message flow is designed to handle.
string
The identifier of the agent associated with this message flow.
object
Configuration settings of the message flow, including response, security, and email settings.
object
Settings related to response timing and handling within the message flow.
number
The delay in seconds before a response is issued.
object
Settings defining the working hours during which the message flow is active.
boolean
Whether working hours are enabled.
string
The start time of working hours.
string
The end time of working hours.
string
The timezone for the working hours.
string
The message delivered outside of working hours.
object
Security settings for the message flow.
boolean
Indicates if HIPAA compliance is enforced.
object
Settings related to email communication.
string
The default subject line for emails sent within this flow.
string
The signature appended to email messages.
string
The system prompt or instructions for the AI agent.
string
The initial message that activates the message flow.
boolean
Indicates whether the message flow is currently active.
boolean
Indicates whether the autopilot feature of the message flow is enabled.
string
The communication channel used by the message flow, such as “SMS” or “Email”.
string
The timestamp when the message flow was created.
string
The timestamp when the message flow was last updated.