Serve the Help Page from a path on your site
Forward three routes from your own site to AgentStack so the Help Page answers at your own address, without a custom domain.
There are two ways to put the Help Page on your own address.
- A custom domain. The page answers at a subdomain you own, for example support.example.com. AgentStack manages the SSL certificate. This needs the Custom Domain add-on. See Add a custom domain.
- A reverse proxy. Your own site forwards a few routes to AgentStack. The page answers at a path you choose, for example example.com/help. This needs no add-on. You set it up in your own stack.
This page covers the second way. Give it to your engineer, or point a coding agent at it. Read Point a coding agent at this page at the end.
The routes to forward
Forward these three routes. Replace AGENT_ID with the agent's public ID from Channels → Help Page.
| Your route | Forwards to | Carries |
|---|---|---|
/help | https://www.agentstack.build/help/AGENT_ID | The page itself |
/api/chat | https://www.agentstack.build/api/chat | Each chat message. This is a POST. |
/api/chat/* | https://www.agentstack.build/api/chat/* | The session and agent-config calls the page makes |
Send every request to www.agentstack.build. The apex address redirects, and the redirect drops headers.
Rules for every platform
- Forward POST, not only GET. Every chat message is a POST. A read-only proxy loads the page and then answers nothing.
- Send
Hostaswww.agentstack.build. Pass your own host through and AgentStack cannot tell which page you want. - Turn response buffering off on
/api/chat. Answers stream word by word. A buffering proxy holds the whole answer, so the page looks frozen. - Leave
/.well-known/*alone. Certificate checks run there. Forward it and your own SSL renewal fails.
If your own site runs Next.js
Do not use a reverse proxy. Use a custom domain instead.
The Help Page loads its own JavaScript and CSS from /_next/*. Your Next.js site serves its own files from the same path. Forward that path and you break your site. Leave it alone and the Help Page loads with no styles and no chat.
Every other platform below is safe, including a Vercel site that is not Next.js.
Vercel
Put this in vercel.json. Vercel reads the file at build time, so redeploy after you save it.
Netlify
Put this in public/_redirects. The 200 at the end of each line makes it a proxy. Leave the 200 off and Netlify sends a redirect, so visitors land on agentstack.build.
Express
Mount this above express.json(). A body parser above the proxy reads the body first, so the forwarded POST arrives empty.
Cloudflare Workers
Add routes for example.com/help and example.com/api/chat*. Everything else passes through untouched.
CloudFront
Add one origin, www.agentstack.build, and two behaviors. CloudFront allows only GET and HEAD by default, which blocks every chat message.
nginx
Keep proxy_buffering off on the chat route. Run nginx -t and reload after you save.
Caddy
flush_interval -1 keeps the answer streaming. Run caddy reload after you save.
Apache
Load mod_proxy and mod_proxy_http first. flushpackets=on sends each part of the answer straight through. Run apachectl configtest and restart after you save.
Check your work
- Open example.com/help. The page loads with your agent's name and colors.
- Send a message. The answer appears word by word, not all at once.
- Open the browser network panel. The POST to
/api/chatreturns 200. - Open the page in a private window. It works with no dashboard session.
If the page loads but no answer arrives, check rule 1 and rule 3 above. If the answer arrives in one block after a long pause, buffering is still on.
Point a coding agent at this page
Give your coding agent this prompt. Replace the agent ID and the platform.
An index of every AgentStack docs page is at https://www.agentstack.build/docs/llms.txt. Give that address to an agent that needs to find other pages on its own.