Create Message Flow
Create a new message flow with full settings.
Headers
API key used for authenticating requests to the API.
Workspace identifier for the API.
Request Body
The name of this message flow (e.g., “New Years Sale”).
Direction of the flow. Possible values: “inbound” “outbound” “bidirectional”.
Short description (e.g., “Handles customer support inquiries via SMS”).
ID of the OmniFlowAgent to associate with this flow.
Full configuration object. This can include:
The first message that triggers the message flow. This field is essential for the generateMessage functionality.
A system prompt or instructions for the AI agent.
Enable or disable autopilot for this flow (default false).
Enable or disable autopilot for this flow (default false).
Channel type: “SMS” or “Email”.
Response Fields
The unique identifier for the newly created message flow.
The identifier of the workspace where the message flow is configured.
The name given to the message flow.
The direction of the message flow; possible values include “inbound”, “outbound”, or “bidirectional”.
A brief description of what the message flow is designed to handle.
The identifier of the agent associated with this message flow.
Configuration settings of the message flow, including response, security, and email settings.
Settings related to response timing and handling within the message flow.
The delay in seconds before a response is issued.
Settings defining the working hours during which the message flow is active.
Whether working hours are enabled.
The start time of working hours.
The end time of working hours.
The timezone for the working hours.
The message delivered outside of working hours.
Security settings for the message flow.
Indicates if HIPAA compliance is enforced.
The system prompt or instructions for the AI agent.
The initial message that activates the message flow.
Indicates whether the message flow is currently active.
Indicates whether the autopilot feature of the message flow is enabled.
The communication channel used by the message flow, such as “SMS” or “Email”.
The timestamp when the message flow was created.
The timestamp when the message flow was last updated.
The version number of the message flow document.