AI Advisor
Chat With Advisor
Changed onHandle a chat request and return a structured AI advisor response.
Uses Mistral AI with the Scout personality to provide business insights.
Returns: AIAdvisorResponse: Advisor message, transaction metrics and summary, date range, optional warning, and timestamp.
Raises: HTTPException: with status 503 if AI backend (MISTRAL_API_KEY) is not configured; with status 500 for other internal errors.
post/api/ai-advisor
Request
- Base URLhttps://api.loyalty.dog
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
authorizationstring nullable
Request body
Response
Successful Response
Changes
- info
added the new optional
headerrequest parameterauthorization
- info