Help Page Proxy
You can put the help page on a path of your own site — yourdomain.com/help — by proxying it. Visitors never see a denser.ai URL and never see your chatbot ID.
The path is always /help and is not configurable, so a site that already serves its own page at /help cannot proxy one today.
Open Deploy → Help page → Set up, scroll to Serve it from your own domain, and copy the snippet for your platform. Each one is pre-filled with your chatbot ID.
Open Deploy → Help page → Manage, scroll to Serve it from your own domain, and copy the snippet for your platform. The snippets on this page are generic; the ones in the dashboard are pre-filled with your chatbot ID.
Next.js
Section titled “Next.js”module.exports = { async rewrites() { // beforeFiles, not a plain array. A returned array is treated as // afterFiles, which is checked only AFTER your own routes — an app with // something like app/api/[...slug]/route.ts would answer these paths // itself and the help page would never load. beforeFiles runs first, and // only for the paths listed below. return { beforeFiles: [ // Bootstrap must come first — it is the only rule that swaps the // "self" placeholder for your chatbot id, so the id never appears // in your visitors' URLs. Anything of your own that matches this path // ahead of it sends the placeholder to denser.ai unchanged, and the // page reports itself unavailable. { source: "/api/chatbots/help/self/bootstrap", destination: "https://denser.ai/api/chatbots/help/{chatbotId}/bootstrap", }, // The help page is always served at /help; the path is not // configurable. These two rules take precedence over a /help page of // your own, so a site that already uses that path cannot proxy one. { source: "/help", destination: "https://denser.ai/u/help/{chatbotId}" }, { source: "/help/:path*", destination: "https://denser.ai/u/help/{chatbotId}/:path*", }, // SPA bundle and static assets ONLY. Do NOT rewrite all of /u/* — // yourdomain.com/u/anything would boot the SPA with basename /u and // render Denser's dashboard chrome on your own domain. { source: "/u/assets/:path*", destination: "https://denser.ai/u/assets/:path*" }, { source: "/u/images/:path*", destination: "https://denser.ai/u/images/:path*" }, { source: "/u/favicon.ico", destination: "https://denser.ai/u/favicon.ico" }, // Only the API prefixes the help page calls, so your own /api routes // are left alone. Delete any whose feature this chatbot does not use. { source: "/api/chat/:path*", destination: "https://denser.ai/api/chat/:path*" }, // streaming replies, voice input, talking to a person and card files { source: "/api/v2/conversations/public/:path*", destination: "https://denser.ai/api/v2/conversations/public/:path*" }, // the visitor's own conversations { source: "/api/v2/messages/:path*", destination: "https://denser.ai/api/v2/messages/:path*" }, // thumbs up / thumbs down on a reply { source: "/api/leadGeneration/:path*", destination: "https://denser.ai/api/leadGeneration/:path*" }, // lead capture form, if enabled { source: "/api/data-source/:path*", destination: "https://denser.ai/api/data-source/:path*" }, // source names behind citations, if enabled { source: "/api/upload/presigned-url", destination: "https://denser.ai/api/upload/presigned-url" }, // opening a citation's source file, if citations are enabled { source: "/api/custom-actions/:path*", destination: "https://denser.ai/api/custom-actions/:path*" }, // action form submissions, if enabled { source: "/api/integrations/helpdesk/ticket", destination: "https://denser.ai/api/integrations/helpdesk/ticket" }, // helpdesk tickets, if enabled ], afterFiles: [], fallback: [], }; },};Vercel
Section titled “Vercel”{ "rewrites": [ { "source": "/api/chatbots/help/self/bootstrap", "destination": "https://denser.ai/api/chatbots/help/{chatbotId}/bootstrap" }, { "source": "/help", "destination": "https://denser.ai/u/help/{chatbotId}" }, { "source": "/help/:path*", "destination": "https://denser.ai/u/help/{chatbotId}/:path*" }, { "source": "/u/assets/:path*", "destination": "https://denser.ai/u/assets/:path*" }, { "source": "/u/images/:path*", "destination": "https://denser.ai/u/images/:path*" }, { "source": "/u/favicon.ico", "destination": "https://denser.ai/u/favicon.ico" }, { "source": "/api/chat/:path*", "destination": "https://denser.ai/api/chat/:path*" }, { "source": "/api/v2/conversations/public/:path*", "destination": "https://denser.ai/api/v2/conversations/public/:path*" }, { "source": "/api/v2/messages/:path*", "destination": "https://denser.ai/api/v2/messages/:path*" }, { "source": "/api/leadGeneration/:path*", "destination": "https://denser.ai/api/leadGeneration/:path*" }, { "source": "/api/data-source/:path*", "destination": "https://denser.ai/api/data-source/:path*" }, { "source": "/api/upload/presigned-url", "destination": "https://denser.ai/api/upload/presigned-url" }, { "source": "/api/custom-actions/:path*", "destination": "https://denser.ai/api/custom-actions/:path*" }, { "source": "/api/integrations/helpdesk/ticket", "destination": "https://denser.ai/api/integrations/helpdesk/ticket" } ]}Netlify
Section titled “Netlify”# Paste this ABOVE your own [[redirects]]. Netlify takes the first rule that# matches, and force = true is what lets each one win over a file or function# you already serve at that path.## Bootstrap must come first — it is the only rule that swaps the# "self" placeholder for your chatbot id, so the id never appears in your# visitors' URLs. Anything of your own that matches this path ahead of it sends# the placeholder to denser.ai unchanged, and the page reports itself# unavailable.[[redirects]] from = "/api/chatbots/help/self/bootstrap" to = "https://denser.ai/api/chatbots/help/{chatbotId}/bootstrap" status = 200 force = true
# The help page is always served at /help; the path is not configurable.# force = true means these two rules win over a /help page of your own, so a# site that already uses that path cannot proxy one.[[redirects]] from = "/help" to = "https://denser.ai/u/help/{chatbotId}" status = 200 force = true
[[redirects]] from = "/help/*" to = "https://denser.ai/u/help/{chatbotId}/:splat" status = 200 force = true
# SPA bundle and static assets ONLY. Do NOT proxy all of /u/* —# yourdomain.com/u/anything would boot the SPA with basename /u and render# Denser's dashboard chrome on your own domain.[[redirects]] from = "/u/assets/*" to = "https://denser.ai/u/assets/:splat" status = 200 force = true
[[redirects]] from = "/u/images/*" to = "https://denser.ai/u/images/:splat" status = 200 force = true
[[redirects]] from = "/u/favicon.ico" to = "https://denser.ai/u/favicon.ico" status = 200 force = true
# Only the API prefixes the help page calls, so your own /api routes are left# alone. Delete any whose feature this chatbot does not use.# streaming replies, voice input, talking to a person and card files[[redirects]] from = "/api/chat/*" to = "https://denser.ai/api/chat/:splat" status = 200 force = true
# the visitor's own conversations[[redirects]] from = "/api/v2/conversations/public/*" to = "https://denser.ai/api/v2/conversations/public/:splat" status = 200 force = true
# thumbs up / thumbs down on a reply[[redirects]] from = "/api/v2/messages/*" to = "https://denser.ai/api/v2/messages/:splat" status = 200 force = true
# lead capture form, if enabled[[redirects]] from = "/api/leadGeneration/*" to = "https://denser.ai/api/leadGeneration/:splat" status = 200 force = true
# source names behind citations, if enabled[[redirects]] from = "/api/data-source/*" to = "https://denser.ai/api/data-source/:splat" status = 200 force = true
# opening a citation's source file, if citations are enabled[[redirects]] from = "/api/upload/presigned-url" to = "https://denser.ai/api/upload/presigned-url" status = 200 force = true
# action form submissions, if enabled[[redirects]] from = "/api/custom-actions/*" to = "https://denser.ai/api/custom-actions/:splat" status = 200 force = true
# helpdesk tickets, if enabled[[redirects]] from = "/api/integrations/helpdesk/ticket" to = "https://denser.ai/api/integrations/helpdesk/ticket" status = 200 force = trueNode.js
Section titled “Node.js”// Express + http-proxy-middleware v3const express = require("express");const { createProxyMiddleware } = require("http-proxy-middleware");
const app = express();const DENSER_ORIGIN = "https://denser.ai";const CHATBOT_ID = "{chatbotId}";
const forward = (pathFilter, pathRewrite) => createProxyMiddleware({ target: DENSER_ORIGIN, changeOrigin: true, pathFilter, ...(pathRewrite ? { pathRewrite } : {}), });
// Register all of this BEFORE your own routers — Express takes the first// handler that responds.//// Register the bootstrap rule first. It is the only rule that swaps the// "self" placeholder for your chatbot id, so the id never appears in your// visitors' URLs. Anything of your own that matches this path ahead of it// sends the placeholder to denser.ai unchanged, and the page reports itself// unavailable.app.use( forward("/api/chatbots/help/self/bootstrap", { "^.*$": `/api/chatbots/help/${CHATBOT_ID}/bootstrap`, }),);
// The help page itself, always at /help — the path is not configurable. These// rules are registered first, so they win over a /help page of your own, and a// site that already uses that path cannot proxy one.app.use( forward(["/help", "/help/**"], { "^/help": `/u/help/${CHATBOT_ID}` }),);
// SPA bundle and static assets ONLY. Do NOT proxy all of /u/** —// yourdomain.com/u/anything would boot the SPA with basename /u and render// Denser's dashboard chrome on your own domain.app.use( forward([ "/u/assets/**", "/u/images/**", "/u/favicon.ico", ]),);
// Only the API prefixes the help page calls, so your own /api routes are left// alone. Delete any whose feature this chatbot does not use.app.use( forward([ "/api/chat/**", // streaming replies, voice input, talking to a person and card files "/api/v2/conversations/public/**", // the visitor's own conversations "/api/v2/messages/**", // thumbs up / thumbs down on a reply "/api/leadGeneration/**", // lead capture form, if enabled "/api/data-source/**", // source names behind citations, if enabled "/api/upload/presigned-url", // opening a citation's source file, if citations are enabled "/api/custom-actions/**", // action form submissions, if enabled "/api/integrations/helpdesk/ticket", // helpdesk tickets, if enabled ]),);
app.listen(3000, () => { console.log("Help page proxy listening on http://localhost:3000/help");});What each API rule is for
Section titled “What each API rule is for”The snippets do not proxy all of /api/*. Each rule is scoped to an endpoint the help page calls, so the rest of your own /api routes keep working — which matters most on Next.js, where your app’s API already lives there.
| Rule | Used for | Needed |
|---|---|---|
/api/chatbots/help/self/bootstrap | Resolving which chatbot this page serves | Always |
/api/chat/* | Streaming replies, voice input from the mic button, asking for a person, and files attached to a card | Always |
/api/v2/conversations/public/* | Loading a conversation and listing the visitor’s recent chats | Always |
/api/v2/messages/* | Thumbs up / thumbs down on a reply | Always |
/api/leadGeneration/* | The lead capture form | Only with lead generation on |
/api/data-source/* | Source names behind citations | Only with citations on |
/api/upload/presigned-url | Opening a citation’s source file | Only with citations on |
/api/custom-actions/* | Submitting an action form | Only with form actions |
/api/integrations/helpdesk/ticket | Creating a helpdesk ticket | Only with a helpdesk connected |
Delete the rules for features this chatbot does not use — they are listed separately so you can.
Indexing a proxied page
Section titled “Indexing a proxied page”A proxied help page is your URL, not ours, so it is not in Denser’s sitemap and Denser cannot submit it for you. If you want search engines to index it, add https://yourdomain.com/help to your own sitemap and link to it from your site the way you would any other page.