Generate Sync Or Streaming Response

Generation endpoint supporting synchronous response as well as streaming based on your usecase.

Query Params
boolean
Defaults to false

Set to true if you want to stream data otherwise, use false for standard data retrieval.

Body Params
string
required
length ≥ 1

User question for bot

uuid
required

chat_id for given chat

string

Sources to refer

uuid

starter question id

boolean
Defaults to false
boolean
Defaults to false
enum
string

integration user unique identifier

string

Can be passed to store some additional user data in inbox

chat_history
array of objects

Previous chat history for reference

Chat History
string
enum
Defaults to text

An enumeration.

Allowed:
string

chat_user_id for given chat , this links with old user data

extra_metadata
object

extra metadata for given chat(integration specific)

boolean

if true, will return full history of chat till now

uuid

message id of any chat message to be used to resolve handoff

hands_off_metadata
object

metadata for handoff

number

The timeout duration, measured in seconds, represents the maximum period that the endpoint will maintain the connection open to generate a response before terminating the request

Responses

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json