POST
/
converse

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
prompt
string
required

The input prompt.

agent_id
string

The ID of the agent that should be used for the converse. If both agent_id and conversation_id aren't provided - the new agent is created.

config
object

The config that overrides the default config of the agent for that converse.

conversation_id
string

The ID of the present conversation to use. If it's not provided - a new conversation will be created.

stream
boolean
default:
false

Determines the response type of the converse. Response is the Server-Sent Events if stream is set to true.

Response

200 - application/json
agent_id
string
required

The ID of the agent used for the converse.

content
object[]
required

Contents of the converse response.

conversation_id
string
required

The ID of the agent conversation.

object
enum<string>
required
Available options:
conversation.message