Skip to main content
POST
/
get_suggestions
Retrieve follow-up suggestions
curl --request POST \
  --url https://api.webless.ai/get_suggestions \
  --header 'Content-Type: application/json' \
  --data '
{
  "company": "YOUR_COMPANY",
  "requestId": "1f7c5f74-7b9e-4a0a-9b7d-4e3e2a5e3b60",
  "sessionId": "a1c2d3e4-1111-2222-3333-444455556666"
}
'
{
  "suggestions": [
    "<string>"
  ]
}
Pass previous_suggestions when you want to avoid repeating prompts already shown to the user.

Body

application/json
company
string
required
Example:

"YOUR_COMPANY"

requestId
string
required
Example:

"1f7c5f74-7b9e-4a0a-9b7d-4e3e2a5e3b60"

sessionId
string
required
Example:

"a1c2d3e4-1111-2222-3333-444455556666"

query
string

Current query context.

Example:

"What does Webless do?"

n
integer
default:5
Example:

3

previous_suggestions
string[]
Example:
["How does Webless work?"]

Response

Suggested follow-up prompts

suggestions
string[]