Last updated: 15 August 2026
The chatbot widget is a floating help button that appears on every page of your NICE HMS website. Visitors can ask product questions and get instant AI-powered answers. If they need to reach a human, they can send a Contact Us message with their email and mobile directly from the chat — no login required.
For direct contact outside the chat widget, email admin@nicehms.com or call/WhatsApp +919611560555.
NEXT_PUBLIC_LANGGRAPH_URL configured in your environment.GOOGLE_GMAIL_USER must be set in .env for the Contact Us email notification to work.GOOGLE_SHEET_SCRIPT_URL) logs all contact form submissions.To send an enquiry, request a demo, ask about pricing, or contact the NICE HMS team, use the Contact Us button right inside the chat widget. You do not need to send a separate email or fill out an external form.
Drag the bottom-left corner of the chat panel to resize it. On mobile, the panel opens full-screen.
The chat assistant should proactively offer to connect a user with the NICE HMS team whenever a conversation indicates the user needs human help. Escalate in any of these situations:
When any of these apply, the assistant should:
The user can also submit an enquiry themselves at any time by clicking the Contact Us button in the chat header and filling in their Email, Mobile, and Message. Either way, the enquiry is emailed to the team and logged to Google Sheets, and the team responds at the email or mobile the user provided.
If the user asks something the documentation does not cover, the assistant should:
The documentation request goes through the same contact flow, so the team can prioritise writing the missing docs.
The Contact Us form submits to /api/org/contact. External chatbots, automation tools, or custom integrations can POST to this same endpoint. The API logs to Google Sheets and sends an email notification — no auth required. The endpoint returns CORS headers (Access-Control-Allow-Origin: *) and handles OPTIONS preflight, so browser-based tools and external agents can call it directly from the client.
curl -X POST https://stage.nicehms.com/api/org/contact \
-H "Content-Type: application/json" \
-d '{
"firstname": "John Doe",
"email": "john@example.com",
"phone": "+919876543210",
"message": "I want a demo for my 20-bed hospital",
"pagePath": "/pricing",
"submittedAt": "2026-08-09T10:30:00.000Z"
}'
| Field | Required | Notes |
|---|---|---|
firstname | Yes (for sheet log) | Falls back to email if blank |
email | Yes | Contact email address |
phone | Yes | Mobile number with country code |
message | Yes | Enquiry description |
pagePath | No | Page the enquiry came from |
submittedAt | No | ISO timestamp |
lastname | No | Optional last name |
company | No | Optional company name |
The API also accepts a legacy email format with subject, text, html, from, fromName fields for direct email sending.
agent.json)NICE HMS publishes an agent discovery card at /.well-known/agent.json. This is an A2A-style description that lets external AI agents (assistants, copilots, or other chatbots) discover the NICE HMS help assistant and invoke it programmatically — no manual API wiring required.
The card describes:
POST {NEXT_PUBLIC_LANGGRAPH_URL}/invoke — send a conversation and get a single reply.POST {NEXT_PUBLIC_LANGGRAPH_URL}/runs/stream — stream a reply in real time.messages (OpenAI chat format) plus optional source, org, email, and user_id for analytics.An external agent reads the card to learn the endpoints and payload shape, then calls the invoke or stream endpoint directly. Both endpoints point at the same LangGraph server the on-page chat widget uses.
NEXT_PUBLIC_LANGGRAPH_URL is correctly set in your environment.chatbot assistant is deployed.Q: How do I send an enquiry or contact the NICE HMS team? A: Click the Contact Us button at the top of this chat widget, fill in your email, mobile, and message, then click Send Message. The team will get back to you.
Q: Who can use the chat widget? A: Anyone visiting your website — patients, staff, or prospective customers. No login is needed.
Q: Where do Contact Us messages go?
A: They are logged to Google Sheets (under the "contact" type) and an email is sent to the address configured in GOOGLE_GMAIL_USER.
Q: Does the chat remember previous conversations? A: Yes. A thread ID is stored in your browser's local storage so the assistant maintains context across sessions. Click + New to reset it.
Q: Is my data secure?
A: The chat widget streams responses directly from your LangGraph server (configured via NEXT_PUBLIC_LANGGRAPH_URL). Messages are sent to that server only, not to unrelated third parties.