Skip to main content
POST
/
conversationSimulator
/
generateNextUserMessage
Generate next user message
curl --request POST \
  --url https://api.galtea.ai/conversationSimulator/generateNextUserMessage \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "scenario": "Customer support",
  "turns": [
    {}
  ]
}
'
{
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

API key authorization. Pass your API key in the Authorization header as a Bearer token. Both new (gsk_*) and legacy (gsk-) API keys are accepted, e.g. Authorization: Bearer gsk_... or Authorization: Bearer gsk-....

Body

application/json
scenario
string
Example:

"Customer support"

turns
object[]

Response

Next user message generated successfully

message
string

The generated next user message