Initiate AI answer generation
Submits a natural language query to the AI engine. Returns a questionAnswerId used to poll for the result.
Content targeting. When kbBaseUrl points to a knowledge base in your team, that knowledge base's content-targeting rules apply to the answer, just as they do for a visitor browsing it. Guides and folders whose rules the end user doesn't meet are left out of retrieval, citations and guided answers, and a guide inside an excluded folder is excluded too. Only that knowledge base's rules apply: content the AI agent takes from other sources is not filtered. If kbBaseUrl doesn't match a knowledge base in your team, no targeting is applied.
Identify the end user with customerUserId, properties, or both. For an identified user, rules on standard properties (country, device, browser, language) use the values stored from their widget sessions. If you send neither, the end user is treated as an anonymous visitor and targeted guides and folders are hidden. Each request is evaluated on its own, so send the same identity on every turn of a conversation.
Request
- Base URLhttps://public.stonly.com/api/v3
- AuthHTTP basic
Query parameters
ID of the team to manage. Optional if the API key is associated with a single team.
Request body
Response
Successful search request. Returns a questionAnswerId that can be used to poll for results.
Example response
{
"questionAnswerId": "92c3c11c-5a2b-4814-a97d-cf2e0e5256a9"
}Changes
No recorded changes to this operation across all 1 revision of this API.