Skip to main content
POST
/
v1
/
voice
/
agents
/
{agent}
/
optimizer
/
generate-welcome
Generate a welcome message using AI
curl --request POST \
  --url https://api.comm.com/api/v1/voice/agents/{agent}/optimizer/generate-welcome \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "system_prompt": "<string>"
}
'
{
  "welcome_message": "<string>",
  "test_hypothesis": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

agent
string<uuid>
required

The agent ID

Body

application/json
system_prompt
string | null
Maximum string length: 2000

Response

welcome_message
string
required
test_hypothesis
string
required