Skip to content

docs: route support questions to the Intercom chat instead of email - #88

Merged
tristantelleb merged 2 commits into
mainfrom
docs/intercom-chat-launcher
Aug 5, 2026
Merged

docs: route support questions to the Intercom chat instead of email#88
tristantelleb merged 2 commits into
mainfrom
docs/intercom-chat-launcher

Conversation

@tristantelleb

@tristantelleb tristantelleb commented Aug 4, 2026

Copy link
Copy Markdown
Member

Why

Questions the Ask AI assistant can't answer currently land in the Mintlify deflection contact form, which emails noreply@mintlify.com to contact@. We would rather people ask in Intercom, which is already loaded on every docs page via integrations.intercom and feeds our normal triage.

Nothing in the docs pointed at that chat, and two places actively pointed elsewhere.

Changes

  • intercom-chat.js (new): capture-phase click delegate on a[href$="#chat"] that calls window.Intercom("show"). Mintlify boots Intercom itself and owns window.intercomSettings, so Intercom's custom_launcher_selector is unavailable to us. Retries for up to 5s while the snippet boots and no-ops if the widget is blocked. Same pattern as the #manage-cookies delegate in cookie-consent.js.
  • docs.json: Chat with us navbar link.
  • v3/general/support.mdx: the Live Chat section said the chat was dashboard-only. It runs on every docs page too.
  • .mintlify/Assistant.md: the Scope section sent billing and account questions to edenai.co or "the in-app Intercom chat". Replaced with an Escalation section naming the chat on the docs page, and explicitly not an email address.

Checks

  • docs.json parses, intercom-chat.js parses.
  • mint broken-links: 172 in 50 files, identical with and without this branch. The #chat anchor is not reported.
  • No code snippets touched, so no snippet tests affected.

Needs a human

  • Deploy preview: confirm the navbar link and the support-page CTA actually open the messenger. Intercom does not reliably boot under mint dev, so this could not be verified locally.
  • Mintlify dashboard: Assistant > Configure > Response handling still has the support and sales deflection addresses set. Until those are cleared and the contact form is switched off, submissions keep arriving as email regardless of what this branch says.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added a “Chat with us” link to the documentation navigation.
    • Enabled the link and chat bubble to open live support chat directly.
  • Documentation

    • Added guidance for escalating billing, account, quota, plan, outage, and other support questions.
    • Updated the support page with live chat availability and access instructions.

tristantelleb and others added 2 commits August 4, 2026 10:16
Steer docs readers to the support chat instead of the Ask AI deflection
email. Mintlify boots Intercom itself from `integrations.intercom`, so it
owns `window.intercomSettings` and Intercom `custom_launcher_selector` is
unavailable; a click delegate on links ending in #chat calls the global
Intercom() API instead. Mirrors the #manage-cookies handling already in
cookie-consent.js.

- intercom-chat.js: capture-phase delegate for a[href$="#chat"], retries
  for up to 5s while the snippet boots, no-ops if the widget is blocked
- docs.json: "Chat with us" navbar link
- v3/general/support.mdx: Live Chat said the chat was dashboard-only; it
  runs on every docs page too

`mint broken-links` unchanged at 172 in 50 files.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The assistant's Scope section pointed billing and account questions at
edenai.co or "the in-app Intercom chat", so unanswered questions ended up
in the Ask AI deflection contact form and reached us as Mintlify emails
rather than as Intercom conversations. Replace it with an explicit
Escalation section naming the chat available on the docs page itself.

Note this steers what the assistant says; the deflection contact form is
platform behaviour driven by the support/sales addresses in the Mintlify
dashboard and has to be cleared there too.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Aug 4, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
edenai 🟢 Ready View Preview Aug 4, 2026, 8:22 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

The documentation now provides live-chat escalation guidance, adds a navbar chat link, and loads an Intercom launcher for #chat links. The support page describes chat access across documentation and the dashboard.

Changes

Live chat support

Layer / File(s) Summary
Chat launcher and navigation wiring
docs.json, intercom-chat.js
The navbar adds a “Chat with us” link targeting #chat. The launcher intercepts matching clicks, waits for Intercom readiness, and opens the messenger.
Support guidance updates
.mintlify/Assistant.md, v3/general/support.mdx
Support guidance now directs users to live chat for listed support topics. The support page documents chat access and updates its modification date.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant DocumentationNavbar
  participant intercom-chat.js
  participant IntercomMessenger
  DocumentationNavbar->>intercom-chat.js: User clicks "Chat with us"
  intercom-chat.js->>IntercomMessenger: Call Intercom("show") when available
  IntercomMessenger-->>DocumentationNavbar: Display chat
Loading

Suggested reviewers: fahimagold

Poem

A rabbit clicks the chat-link bright,
Intercom opens, soft and light.
Support words hop across the page,
Guidance springs from every stage.
“Chat with us!” the bunny sings.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the primary change: routing documentation support questions from email to Intercom chat.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/intercom-chat-launcher

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
.mintlify/Assistant.md (1)

44-51: 📐 Maintainability & Code Quality | 🔵 Trivial

Update the dashboard deflection setting before release.

These instructions change assistant responses only. They do not stop dashboard contact-form submissions from being sent by email. Apply the separate Mintlify dashboard setting and verify the production configuration.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.mintlify/Assistant.md around lines 44 - 51, Update the Mintlify dashboard
deflection setting separately from the documentation in Assistant.md before
release, and verify the production configuration. Keep the documented escalation
instructions unchanged, including directing users to live support chat rather
than email.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@intercom-chat.js`:
- Around line 20-28: Register intercom-chat.js in the tracked Mintlify script
configuration so it is loaded on the documentation pages containing `#chat` links,
using the existing configuration mechanism for site scripts. Preserve the
script’s current SPA guard and avoid changing its runtime behavior.

---

Nitpick comments:
In @.mintlify/Assistant.md:
- Around line 44-51: Update the Mintlify dashboard deflection setting separately
from the documentation in Assistant.md before release, and verify the production
configuration. Keep the documented escalation instructions unchanged, including
directing users to live support chat rather than email.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 6bad013f-fa6a-44af-acc8-18702adbcd8b

📥 Commits

Reviewing files that changed from the base of the PR and between b45358d and 54117a4.

📒 Files selected for processing (4)
  • .mintlify/Assistant.md
  • docs.json
  • intercom-chat.js
  • v3/general/support.mdx

Comment thread intercom-chat.js
Comment on lines +20 to +28
(function () {
var SELECTOR = 'a[href$="#chat"]';
var BOOT_TIMEOUT_MS = 5000;
var POLL_INTERVAL_MS = 150;

// Mintlify is a SPA; guard against re-registering the listener on
// client-side navigation.
if (window.__edenaiChatLauncherLoaded) return;
window.__edenaiChatLauncherLoaded = true;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Expect: the Mintlify script configuration references intercom-chat.js.
rg -n -C 4 'intercom-chat\.js|cookie-consent\.js' \
  --glob '*.json' --glob '*.js' --glob '*.md' --glob '*.mdx' || true

Repository: edenai/docs

Length of output: 149


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== tracked files matching likely config/js/mdx docs =="
git ls-files | rg '(^docs|\.mintlify|mintlify|docs\.json|support\.mdx|intercom-chat\.js|cookie-consent\.js|\.json$|\.mdx$)' | sed -n '1,200p'

echo
echo "== candidate filenames =="
git ls-files | rg 'intercom-chat\.js|cookie-consent\.js|docs\.json|general/support\.mdx|docs.json|mintlify|mintlify|docs' | sed -n '1,200p'

echo
echo "== search intercom-chat references =="
rg -n -C 3 'intercom-chat\.js|integrations|script|script-loads|scripting|cookie-consent|Intercom|chat' --glob '*.json' --glob '*.js' --glob '*.md' --glob '*.mdx' || true

Repository: edenai/docs

Length of output: 4461


Register intercom-chat.js in the Mintlify script config.

The #chat links in docs.json and v3/general/support.mdx depend on this file running, but there is no tracked Mintlify reference to intercom-chat.js. Add it as a loaded script; otherwise those links can silently prevent navigation without opening Intercom.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@intercom-chat.js` around lines 20 - 28, Register intercom-chat.js in the
tracked Mintlify script configuration so it is loaded on the documentation pages
containing `#chat` links, using the existing configuration mechanism for site
scripts. Preserve the script’s current SPA guard and avoid changing its runtime
behavior.

@tristantelleb
tristantelleb merged commit 446dbd8 into main Aug 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant