API request flow
Last updated
Last updated
A common approach to using the Rainbird API is described in the diagram below.
Start endpoint is called to start a new session.
Query endpoint is called to perform a query. The response to query will contain either a question or a result.
If a question has been returned, then the response endpoint should be called with an answer. This request may return another question.
The response endpoint will return a result once the query has reached a conclusion.
In addition to the endpoints mentioned in the example flow, the inject endpoint can be used to inject facts into a Rainbird session. This can be used to inject data into Rainbird from other systems and/or to reduce the number of questions asked during an interaction before a result is returned. It is not recommended to inject more than 250 facts per request as this could lead to inconsistent responses.