API
Sending Outbound Chat Message via API
POST /chat/outbound
/chat/outbound
enables you to send an outbound chat message through a predefined flow. The API requires providing text, a user ID, a flow ID, and optional metadata.
Parameters
- text (string): The message text to be sent. The message will be displayed as an AI message to the receiving user.
- user_id (string): The unique identifier of the user receiving the message.
- flow_id (string): The unique identifier of the flow to route the message through.
- metadata (json): Additional metadata related to the conversation.
Example Request
Example Response
- Status Code 200 (OK): The chat message was successfully sent.
- Status Code 400 (Bad Request): Indicates an invalid data was provided.
Usage Example