REST API
Agent FAI — REST API
6 endpoints powering the FrootAI chatbot, play search, and cost estimation.
Base URL:
API Base
https://frootai-chatbot-api.azurewebsites.netPOST
/api/chatSend a message to Agent FAI (non-streaming)
Request
{ "message": "How do I build a RAG pipeline?", "history": [...] }Response
{ "reply": "For RAG pipelines, use Play 01..." }POST
/api/chat/streamSSE streaming response from Agent FAI (GPT-4.1)
Request
{ "message": "Compare Play 01 vs 09", "history": [...] }Response
data: {"content":"For"}
data: {"content":" RAG"}
...
data: [DONE]POST
/api/search-playsSemantic search across solution plays
Request
{ "query": "document processing" }Response
{ "results": [{ "id": "06", "name": "Document Intelligence", "score": 0.92 }] }POST
/api/estimate-costEstimate monthly Azure cost for a solution play
Request
{ "play": "01", "scale": "dev" }Response
{ "play": { "id": "01", "name": "Enterprise RAG" }, "scale": "dev", "items": [...], "total": 245 }GET
/api/healthHealth check endpoint
Request
N/A
Response
{ "status": "ok", "version": "3.0.1" }GET
/api/playsList all solution plays with metadata
Request
N/A
Response
{ "plays": [{ "id": "01", "name": "Enterprise RAG", "status": "Ready" }, ...] }