/streams
:
streamId
. You will use this later to send the GenerativeAgent events to this SSE stream.
You need to listen and handle these events to enable GenerativeAgent to interact with your users.
conversation
represents a thread of messages between an end user and one or more agents. GenerativeAgent evaluates and responds in a given conversation.
Create a conversation
providing your Ids for the conversation and customer:
id
. Save the conversation id as it is used when calling GenerativeAgent
messages
. A message
represents a single communication within a conversation.
Create a message
providing the text of what your user said:
/analyze
call if that better works with the design of your system./analyze
:
streamId
created when you started the SSE Stream.
GenerativeAgent evaluates the conversation at that moment of time to determine a response. GenerativeAgent is not aware of any additional messages that are sent while processing.
A successful response returns a 200 and the conversation Id.
taskName
and inputVariables
attributes.
You can also simulate Tasks and Input Variables in the Previewer