American Hospital DubaiMedricsAI integration handbook

Deployment readiness

One controlled path from the Sprinklr API node to a verified AHD patient-support response and a safe human handoff.

Sprinklr
Medrics
OpenAI
Handoff
API endpoint contractMedrics AI gateway for AHD
POST/v1/ahd/chat
message
Current user message supplied by Sprinklr
conversation_history
Previous turns owned and sent by Sprinklr
answer → medrics_answer
The only response value displayed when handoff is false
handoff → human branch
Boolean signal that activates the AHD support queue
Monitoring
OpenAI abuse monitoring is enabled for this project
Stateless gatewayEvery request is independent
Server-side credentialsKeys stay inside Medrics-controlled services
No message body loggingOperational logs exclude conversation content

Implementation flow

Sprinklr owns the conversation and routing. Medrics validates the request, retrieves approved AHD knowledge, and returns a stable decision object.

User messageArrives in the active Sprinklr conversation.
API nodeSends the message and prior context.
Medrics gatewayAuthenticates, validates, and invokes the model.
DecisionReturns answer and handoff fields.
Dialogue branchReplies or transfers to an AHD agent.
Continue to API contract