POST
/
agents
/
{agent_id}
/
interact
/
{user_id}
/
state

Authorizations

Authorization
string
headerrequired

Agent/Workspace secret API key as bearer token.

Path Parameters

agent_id
string
required

The ID of the agent to interact with

user_id
string
required

The ID of the user to interact with

Body

application/json
turns
object[]

Completely change the entire conversation state. (optional)

delete
object

Messages to delete with the provided ids. (optional)

metadata
object

Metadata related to the conversation transcript.

Response

200 - application/json
platformName
enum<string>
required

Name of the platform (virtual flow or TIXAE Agents).

Available options:
vf,
vg
success
boolean
required

Indicates if the interaction was successful.

message
string
required

General message.

chatState
object

State of the chat.

actionMessages
any[]

Messages related to actions.

turns
object[]

Turns in the conversation.

appError
string

Error message related to the app.

agentData
object

Data related to the agent in the conversation.

origin
enum<string>

Origin of the message.

Available options:
web-chat,
whatsapp,
discord,
gb-chat
userID
string

User/Conversation ID.

agentID
string

Agent ID.

oldTurns
object[]

Previously recorded turns in the conversation.