Start Bot Chat
Changed onOpen a chat. One bot, no title and no members: the caller's direct chat with the bot, reused when it exists. A title, several bot_ids or any member_ids make a new group chat. A message starts the first turn, billed to the workspace's compute units like a turn in the app. In a group it goes to the bots it names as @Name, or to the lead when it names none.
Request
- Base URLhttps://api.krea.ai
- AuthHTTP bearer
Request body
A bot from GET /bots.
Several bots, for a group chat. The first leads: it answers a message that names no bot. Pass this, bot_id, or both.
People in the workspace to bring into the chat, by user id. Every bot in the chat has to be shared with the workspace, or owned by the one person it is not shared with.
The first message. Without one, a new chat opens with the bot saying hi.
Opens a new chat with this name. Without a title, one bot and no members, the request opens the caller's one direct chat with the bot, which is reused when it already exists.
A key of your choosing that names this request. Repeating the request with the same key, for example after a timeout, sends nothing again: it answers with the same chat, message and cursor as the first. A start without a message sends nothing either way, and its cursor always follows your newest message.
Response
The chat, and where to read from.
The message just sent. Null when a chat was opened without one.
Pass to GET /bots/chats/{chat_id}/messages.
Changes
- info
endpoint added
- info