[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BWPD47DR7K1TZYBER9CZZ7":3,"skill-same:01M7BWPD47DR7K1TZYBER9CZZ7":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":48},"01M7BWPD47DR7K1TZYBER9CZZ7","install-messenger",null,"Install the Intercom Messenger on a website or web application with secure JWT-based identity verification. Generates backend and frontend code for React, Next.js, Vue.js, Angular, Ember, and plain JavaScript. Supports Node.js, Python (Flask\u002FDjango), PHP, and Ruby backends. Use when the user asks to \"install Intercom\", \"add the Intercom Messenger\", \"set up Intercom chat widget\", \"add customer chat to my website\", or \"integrate Intercom\".","CognitionAI\u002Fdevin-marketplace","CognitionAI","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F163493330?v=4","01M7BVSRD98NC4FG8T3EZS6V5M","Cognition","01M7BVSRDX111C2XPWJ0E6MY26",29,"MIT","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fintercom\u002Fskills\u002Finstall-messenger\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: install-messenger\nlicense: MIT\ndescription: >\n  Install the Intercom Messenger on a website or web application with\n  secure JWT-based identity verification. Generates backend and frontend\n  code for React, Next.js, Vue.js, Angular, Ember, and plain JavaScript.\n  Supports Node.js, Python (Flask\u002FDjango), PHP, and Ruby backends. Use when\n  the user asks to \"install Intercom\", \"add the Intercom Messenger\", \"set up\n  Intercom chat widget\", \"add customer chat to my website\", or \"integrate Intercom\".\ndisable-model-invocation: true\nargument-hint: \"[framework]\"\n---\n\n# Install Intercom Messenger\n\nHelp the user install the Intercom Messenger on their website or application with JWT-based identity verification. This is the secure default — it prevents user impersonation by cryptographically signing user identity on the server.\n\nOnly use the insecure (non-JWT) installation if the user explicitly asks for an \"insecure installation\". Never default to it.\n\n## Requirements\n\nGather these from the user before proceeding:\n\n1. **Workspace ID** (also called App ID) — A short alphanumeric string like `abc12345`.\n   - Found on the [Intercom Messenger install page](https:\u002F\u002Fapp.intercom.com\u002Fa\u002Fapps\u002F_\u002Fsettings\u002Fchannels\u002Fmessenger\u002Finstall)\n   - Or in the URL bar: `https:\u002F\u002Fapp.intercom.com\u002Fa\u002Fapps\u002F\u003Cworkspace_id>\u002F...`\n\n2. **Identity Verification Secret** (also called Messenger API Secret) — Found on the [Messenger Security page](https:\u002F\u002Fapp.intercom.com\u002Fa\u002Fapps\u002F_\u002Fsettings\u002Fchannels\u002Fmessenger\u002Fsecurity). This is the HMAC secret used to sign JWTs. It must never appear in frontend code.\n\nAsk the user for both values. Do not proceed without the Workspace ID. If they don't have the Identity Verification Secret yet, direct them to the [Messenger Security page](https:\u002F\u002Fapp.intercom.com\u002Fa\u002Fapps\u002F_\u002Fsettings\u002Fchannels\u002Fmessenger\u002Fsecurity) to enable it.\n\nIn all generated code, replace `YOUR_WORKSPACE_ID` with the user's actual Workspace ID. Do not leave placeholders — substitute the real values they provided.\n\n## Installation Overview\n\nThe secure installation has two parts:\n\n1. **Backend**: Create an API endpoint that generates a signed JWT for the current authenticated user\n2. **Frontend**: Boot the Messenger with the JWT from the backend\n\nAlways implement both parts. The backend generates the JWT; the frontend passes it to the Messenger.\n\n## Step 1: Backend — JWT Generation Endpoint\n\nCreate a server-side endpoint that the frontend calls to get a signed JWT for the currently authenticated user. The JWT must be signed with **HS256** using the Identity Verification Secret.\n\n### Required JWT Claims\n\n| Claim | Required | Description |\n|-------|----------|-------------|\n| `user_id` | Yes | Stable, unique identifier for the user. Must match across sessions. |\n| `email` | Recommended | User's email address |\n| `name` | Recommended | User's display name |\n| `exp` | Recommended | Expiration timestamp (Unix seconds). Use short-lived tokens — 2 hours is reasonable. |\n\n**Important**: `user_id` is mandatory. If multiple users share the same email and you only pass `email` without `user_id`, Intercom will reject the request with a conflict error.\n\n### Node.js \u002F Express Example\n\n```javascript\nconst jwt = require('jsonwebtoken');\n\nconst INTERCOM_SECRET = process.env.INTERCOM_IDENTITY_SECRET; \u002F\u002F Never hardcode this\n\napp.get('\u002Fapi\u002Fintercom-jwt', requireAuth, (req, res) => {\n  const token = jwt.sign(\n    {\n      user_id: req.user.id,\n      email: req.user.email,\n      name: req.user.name,\n      exp: Math.floor(Date.now() \u002F 1000) + (2 * 60 * 60), \u002F\u002F 2 hours\n    },\n    INTERCOM_SECRET,\n    { algorithm: 'HS256' }\n  );\n\n  res.json({ token });\n});\n```\n\nFor Python (Flask\u002FDjango), PHP, and Ruby\u002FRails examples, see `references\u002Fbackend-examples.md`. The pattern is identical across languages.\n\nAdapt the example to the user's backend language and framework. The key requirements are:\n- The endpoint is authenticated (only the logged-in user can get their own JWT)\n- The secret comes from an environment variable, never hardcoded\n- The token includes `user_id` and has a short expiration\n\n## Step 2: Frontend — Boot Messenger with JWT\n\nThe frontend fetches the JWT from the backend and passes it to the Messenger via `intercom_user_jwt`.\n\n### Basic JavaScript (No Framework)\n\nAdd before the closing `\u003C\u002Fbody>` tag:\n\n```html\n\u003Cscript>\n  \u002F\u002F Fetch JWT from your backend, then boot the Messenger\n  fetch('\u002Fapi\u002Fintercom-jwt', { credentials: 'include' })\n    .then(res => res.json())\n    .then(({ token }) => {\n      window.Intercom('boot', {\n        app_id: 'YOUR_WORKSPACE_ID',\n        intercom_user_jwt: token,\n      });\n    });\n\u003C\u002Fscript>\n\u003Cscript>\n  (function(){var w=window;var ic=w.Intercom;if(typeof ic===\"function\"){ic('reattach_activator');ic('update',w.intercomSettings);}else{var d=document;var i=function(){i.c(arguments);};i.q=[];i.c=function(args){i.q.push(args);};w.Intercom=i;var l=function(){var s=d.createElement('script');s.type='text\u002Fjavascript';s.async=true;s.src='https:\u002F\u002Fwidget.intercom.io\u002Fwidget\u002FYOUR_WORKSPACE_ID';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);};if(document.readyState==='complete'){l();}else if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})();\n\u003C\u002Fscript>\n```\n\n### Anonymous Visitors\n\nFor unauthenticated pages, boot without a JWT: `Intercom('boot', { app_id: 'YOUR_WORKSPACE_ID' })`. Intercom tracks anonymous visitors as leads.\n\n## Framework-Specific Installation\n\nIf the user is using React, Next.js, Vue.js, Angular, Ember, or another SPA framework, refer to `references\u002Fframework-guides.md` for JWT-integrated installation code. Ask the user what framework they are using if it is not obvious from their codebase.\n\nAfter reading the framework guide, adapt the code to the user's specific project structure — find their main layout component, app entry point, or equivalent, and integrate the Messenger there.\n\n## Regional Data Centers\n\nMost Intercom workspaces are in the US region, which is the default — no `api_base` is needed. Only add `api_base` if the user's workspace is hosted in EU or Australia:\n\n| Region | `api_base` | Required? |\n|--------|------------|-----------|\n| US (default) | *(not needed)* | No |\n| EU (Ireland) | `https:\u002F\u002Fapi-iam.eu.intercom.io` | Yes |\n| Australia | `https:\u002F\u002Fapi-iam.au.intercom.io` | Yes |\n\nIf the user mentions EU or Australian hosting, GDPR compliance, or data residency requirements, add the appropriate `api_base` to every `Intercom('boot', ...)` call. Otherwise, omit it.\n\n## Security Best Practices\n\n### Logout and Shutdown\n\nWhen a user logs out, shut down the Messenger to clear session cookies and prevent data leakage:\n\n```javascript\n\u002F\u002F Call this in your logout handler, BEFORE clearing session data\nIntercom('shutdown');\n```\n\nAfter shutdown, re-initialize for the next user or as anonymous:\n\n```javascript\nIntercom('boot', {\n  app_id: 'YOUR_WORKSPACE_ID',\n});\n```\n\nAlways include the shutdown call. Skipping it leaks conversation data between users on shared devices.\n\n### Token Expiration\n\nSet short JWT expiration times — two hours is a good default. To refresh an expired token, re-fetch the JWT from the backend and call `Intercom('boot', ...)` again with the new token.\n\n## Troubleshooting\n\n### JWT Library Not Installed\nError: `Cannot find module 'jsonwebtoken'` (Node.js), `ModuleNotFoundError: No module named 'jwt'` (Python), or `LoadError: cannot load such file -- jwt` (Ruby)\nSolution: Install the JWT library for the user's language — `npm install jsonwebtoken`, `pip install PyJWT`, or `gem install jwt`.\n\n### Wrong Identity Verification Secret\nSymptom: Messenger loads but shows \"Identity verification failed\" or user attributes don't appear.\nCause: The secret used to sign JWTs doesn't match the workspace's Identity Verification Secret.\nSolution: Verify the secret on the [Messenger Security page](https:\u002F\u002Fapp.intercom.com\u002Fa\u002Fapps\u002F_\u002Fsettings\u002Fchannels\u002Fmessenger\u002Fsecurity). Ensure the environment variable holds the correct value for this workspace.\n\n### Plan Doesn't Support Identity Verification\nSymptom: Identity Verification Secret not available in Intercom settings.\nCause: Identity verification is a paid feature not available on all Intercom plans.\nSolution: Check the workspace's Intercom plan on the [Messenger Security page](https:\u002F\u002Fapp.intercom.com\u002Fa\u002Fapps\u002F_\u002Fsettings\u002Fchannels\u002Fmessenger\u002Fsecurity). If identity verification is unavailable, the user may need to upgrade or use the insecure installation (with explicit acknowledgment of the security trade-off).\n\n### JWT `exp` in the Past\nSymptom: Messenger rejects the token immediately after creation.\nCause: Server clock is wrong or `exp` calculation is incorrect.\nSolution: Check the server's system time (`date` command). Ensure NTP is configured. Verify the `exp` value is a future Unix timestamp in seconds (not milliseconds).\n\n### CORS Errors on JWT Endpoint\nSymptom: Browser console shows `Access-Control-Allow-Origin` errors when fetching the JWT.\nCause: The backend JWT endpoint doesn't allow requests from the frontend's origin.\nSolution: Configure CORS on the JWT endpoint to allow the frontend origin. For Express: `cors({ origin: 'https:\u002F\u002Fyour-app.com', credentials: true })`. For other frameworks, add the appropriate CORS headers.\n\n## Single-Page App (SPA) Route Changes\n\nIn SPAs, call `Intercom('update')` after each client-side route change. See `references\u002Fframework-guides.md` for framework-specific placement (React Router, Next.js, Vue Router, Angular, Ember).\n\n## Third-Party Integrations\n\nIntercom also supports code-free installation via WordPress, Shopify, Google Tag Manager, and Segment. Direct users to the [Messenger install page](https:\u002F\u002Fapp.intercom.com\u002Fa\u002Fapps\u002F_\u002Fsettings\u002Fchannels\u002Fmessenger\u002Finstall) for setup instructions.\n\n## Verifying the Installation\n\nAfter generating the code, verify the installation before considering the task complete.\n\n**With browser automation** (Playwright MCP, playwright-cli, etc.): Navigate to the app, confirm `typeof window.Intercom === 'function'`, check the script tag for `widget.intercom.io\u002Fwidget\u002FWORKSPACE_ID`, and verify the JWT endpoint returns HTTP 200 with `{ \"token\": \"...\" }` for an authenticated user. Note: in headless\u002Fsandboxed environments, the widget iframe may not load due to CDN restrictions — this is not a code problem.\n\n**With Intercom MCP tools** (`search_contacts`): After a user logs in and loads a page with the Messenger, search for the user by name or `external_id`. Confirm the contact exists with `role: \"user\"` and the correct `external_id` — this proves the full chain from JWT signing to Intercom identity creation.\n\n**Manual verification** (instruct the user): Open the app in a browser, confirm the Messenger bubble appears, log in, click the bubble, send a test message, then check the [Intercom Inbox](https:\u002F\u002Fapp.intercom.com\u002Fa\u002Finbox\u002F_\u002Finbox\u002F) to confirm the conversation appears attributed to the correct user.\n\n## Post-Installation: Enforce JWT Authentication\n\nAfter the code is deployed, the user must enable and enforce identity verification in Intercom. Direct them to complete these steps:\n\n1. Go to the [Messenger Security page](https:\u002F\u002Fapp.intercom.com\u002Fa\u002Fapps\u002F_\u002Fsettings\u002Fchannels\u002Fmessenger\u002Fsecurity)\n2. **Enable Identity Verification** if not already enabled — this activates JWT-based authentication for the Messenger\n3. **Enforce Identity Verification** — once enabled and confirmed working, switch to \"Enforced\" mode so that unauthenticated Messenger sessions are rejected\n4. **Mark identifying attributes as protected** — on the same page, mark attributes like email, phone, and account IDs as protected so only server-signed JWTs can set them\n\nThis is a critical step. Without enforcement, the JWT signing is optional and users can still be impersonated via the browser console. Enforcement ensures only server-signed identities are accepted.\n\n## Insecure Installation (Only If Explicitly Requested)\n\nIf the user explicitly asks for an \"insecure installation\" (no JWT, no identity verification), provide the basic snippet that passes user attributes directly in `intercomSettings` without server-side signing:\n\n```html\n\u003Cscript>\n  window.intercomSettings = {\n    app_id: \"YOUR_WORKSPACE_ID\",\n    name: \"Jane Doe\",\n    email: \"jane@example.com\",\n    created_at: 1312182000\n  };\n\u003C\u002Fscript>\n\u003Cscript>\n  (function(){var w=window;var ic=w.Intercom;if(typeof ic===\"function\"){ic('reattach_activator');ic('update',w.intercomSettings);}else{var d=document;var i=function(){i.c(arguments);};i.q=[];i.c=function(args){i.q.push(args);};w.Intercom=i;var l=function(){var s=d.createElement('script');s.type='text\u002Fjavascript';s.async=true;s.src='https:\u002F\u002Fwidget.intercom.io\u002Fwidget\u002FYOUR_WORKSPACE_ID';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);};if(document.readyState==='complete'){l();}else if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})();\n\u003C\u002Fscript>\n```\n\nWarn the user that this is insecure: anyone can impersonate any user by modifying the `email` or `name` values in the browser console. Recommend switching to JWT-based authentication for production use.\n","# Install Intercom Messenger\n\nHelp the user install the Intercom Messenger on their website or application with JWT-based identity verification. This is the secure default — it prevents user impersonation by cryptographically signing user identity on the server.\n\nOnly use the insecure (non-JWT) installation if the user explicitly asks for an \"insecure installation\". Never default to it.\n\n## Requirements\n\nGather these from the user before proceeding:\n\n1. **Workspace ID** (also called App ID) — A short alphanumeric string like `abc12345`.\n   - Found on the [Intercom Messenger install page](https:\u002F\u002Fapp.intercom.com\u002Fa\u002Fapps\u002F_\u002Fsettings\u002Fchannels\u002Fmessenger\u002Finstall)\n   - Or in the URL bar: `https:\u002F\u002Fapp.intercom.com\u002Fa\u002Fapps\u002F\u003Cworkspace_id>\u002F...`\n\n2. **Identity Verification Secret** (also called Messenger API Secret) — Found on the [Messenger Security page](https:\u002F\u002Fapp.intercom.com\u002Fa\u002Fapps\u002F_\u002Fsettings\u002Fchannels\u002Fmessenger\u002Fsecurity). This is the HMAC secret used to sign JWTs. It must never appear in frontend code.\n\nAsk the user for both values. Do not proceed without the Workspace ID. If they don't have the Identity Verification Secret yet, direct them to the [Messenger Security page](https:\u002F\u002Fapp.intercom.com\u002Fa\u002Fapps\u002F_\u002Fsettings\u002Fchannels\u002Fmessenger\u002Fsecurity) to enable it.\n\nIn all generated code, replace `YOUR_WORKSPACE_ID` with the user's actual Workspace ID. Do not leave placeholders — substitute the real values they provided.\n\n## Installation Overview\n\nThe secure installation has two parts:\n\n1. **Backend**: Create an API endpoint that generates a signed JWT for the current authenticated user\n2. **Frontend**: Boot the Messenger with the JWT from the backend\n\nAlways implement both parts. The backend generates the JWT; the frontend passes it to the Messenger.\n\n## Step 1: Backend — JWT Generation Endpoint\n\nCreate a server-side endpoint that the frontend calls to get a signed JWT for the currently authenticated user. The JWT must be signed with **HS256** using the Identity Verification Secret.\n\n### Required JWT Claims\n\n| Claim | Required | Description |\n|-------|----------|-------------|\n| `user_id` | Yes | Stable, unique identifier for the user. Must match across sessions. |\n| `email` | Recommended | User's email address |\n| `name` | Recommended | User's display name |\n| `exp` | Recommended | Expiration timestamp (Unix seconds). Use short-lived tokens — 2 hours is reasonable. |\n\n**Important**: `user_id` is mandatory. If multiple users share the same email and you only pass `email` without `user_id`, Intercom will reject the request with a conflict error.\n\n### Node.js \u002F Express Example\n\n```javascript\nconst jwt = require('jsonwebtoken');\n\nconst INTERCOM_SECRET = process.env.INTERCOM_IDENTITY_SECRET; \u002F\u002F Never hardcode this\n\napp.get('\u002Fapi\u002Fintercom-jwt', requireAuth, (req, res) => {\n  const token = jwt.sign(\n    {\n      user_id: req.user.id,\n      email: req.user.email,\n      name: req.user.name,\n      exp: Math.floor(Date.now() \u002F 1000) + (2 * 60 * 60), \u002F\u002F 2 hours\n    },\n    INTERCOM_SECRET,\n    { algorithm: 'HS256' }\n  );\n\n  res.json({ token });\n});\n```\n\nFor Python (Flask\u002FDjango), PHP, and Ruby\u002FRails examples, see `references\u002Fbackend-examples.md`. The pattern is identical across languages.\n\nAdapt the example to the user's backend language and framework. The key requirements are:\n- The endpoint is authenticated (only the logged-in user can get their own JWT)\n- The secret comes from an environment variable, never hardcoded\n- The token includes `user_id` and has a short expiration\n\n## Step 2: Frontend — Boot Messenger with JWT\n\nThe frontend fetches the JWT from the backend and passes it to the Messenger via `intercom_user_jwt`.\n\n### Basic JavaScript (No Framework)\n\nAdd before the closing `\u003C\u002Fbody>` tag:\n\n```html\n\u003Cscript>\n  \u002F\u002F Fetch JWT from your backend, then boot the Messenger\n  fetch('\u002Fapi\u002Fintercom-jwt', { credentials: 'include' })\n    .then(res => res.json())\n    .then(({ token }) => {\n      window.Intercom('boot', {\n        app_id: 'YOUR_WORKSPACE_ID',\n        intercom_user_jwt: token,\n      });\n    });\n\u003C\u002Fscript>\n\u003Cscript>\n  (function(){var w=window;var ic=w.Intercom;if(typeof ic===\"function\"){ic('reattach_activator');ic('update',w.intercomSettings);}else{var d=document;var i=function(){i.c(arguments);};i.q=[];i.c=function(args){i.q.push(args);};w.Intercom=i;var l=function(){var s=d.createElement('script');s.type='text\u002Fjavascript';s.async=true;s.src='https:\u002F\u002Fwidget.intercom.io\u002Fwidget\u002FYOUR_WORKSPACE_ID';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);};if(document.readyState==='complete'){l();}else if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})();\n\u003C\u002Fscript>\n```\n\n### Anonymous Visitors\n\nFor unauthenticated pages, boot without a JWT: `Intercom('boot', { app_id: 'YOUR_WORKSPACE_ID' })`. Intercom tracks anonymous visitors as leads.\n\n## Framework-Specific Installation\n\nIf the user is using React, Next.js, Vue.js, Angular, Ember, or another SPA framework, refer to `references\u002Fframework-guides.md` for JWT-integrated installation code. Ask the user what framework they are using if it is not obvious from their codebase.\n\nAfter reading the framework guide, adapt the code to the user's specific project structure — find their main layout component, app entry point, or equivalent, and integrate the Messenger there.\n\n## Regional Data Centers\n\nMost Intercom workspaces are in the US region, which is the default — no `api_base` is needed. Only add `api_base` if the user's workspace is hosted in EU or Australia:\n\n| Region | `api_base` | Required? |\n|--------|------------|-----------|\n| US (default) | *(not needed)* | No |\n| EU (Ireland) | `https:\u002F\u002Fapi-iam.eu.intercom.io` | Yes |\n| Australia | `https:\u002F\u002Fapi-iam.au.intercom.io` | Yes |\n\nIf the user mentions EU or Australian hosting, GDPR compliance, or data residency requirements, add the appropriate `api_base` to every `Intercom('boot', ...)` call. Otherwise, omit it.\n\n## Security Best Practices\n\n### Logout and Shutdown\n\nWhen a user logs out, shut down the Messenger to clear session cookies and prevent data leakage:\n\n```javascript\n\u002F\u002F Call this in your logout handler, BEFORE clearing session data\nIntercom('shutdown');\n```\n\nAfter shutdown, re-initialize for the next user or as anonymous:\n\n```javascript\nIntercom('boot', {\n  app_id: 'YOUR_WORKSPACE_ID',\n});\n```\n\nAlways include the shutdown call. Skipping it leaks conversation data between users on shared devices.\n\n### Token Expiration\n\nSet short JWT expiration times — two hours is a good default. To refresh an expired token, re-fetch the JWT from the backend and call `Intercom('boot', ...)` again with the new token.\n\n## Troubleshooting\n\n### JWT Library Not Installed\nError: `Cannot find module 'jsonwebtoken'` (Node.js), `ModuleNotFoundError: No module named 'jwt'` (Python), or `LoadError: cannot load such file -- jwt` (Ruby)\nSolution: Install the JWT library for the user's language — `npm install jsonwebtoken`, `pip install PyJWT`, or `gem install jwt`.\n\n### Wrong Identity Verification Secret\nSymptom: Messenger loads but shows \"Identity verification failed\" or user attributes don't appear.\nCause: The secret used to sign JWTs doesn't match the workspace's Identity Verification Secret.\nSolution: Verify the secret on the [Messenger Security page](https:\u002F\u002Fapp.intercom.com\u002Fa\u002Fapps\u002F_\u002Fsettings\u002Fchannels\u002Fmessenger\u002Fsecurity). Ensure the environment variable holds the correct value for this workspace.\n\n### Plan Doesn't Support Identity Verification\nSymptom: Identity Verification Secret not available in Intercom settings.\nCause: Identity verification is a paid feature not available on all Intercom plans.\nSolution: Check the workspace's Intercom plan on the [Messenger Security page](https:\u002F\u002Fapp.intercom.com\u002Fa\u002Fapps\u002F_\u002Fsettings\u002Fchannels\u002Fmessenger\u002Fsecurity). If identity verification is unavailable, the user may need to upgrade or use the insecure installation (with explicit acknowledgment of the security trade-off).\n\n### JWT `exp` in the Past\nSymptom: Messenger rejects the token immediately after creation.\nCause: Server clock is wrong or `exp` calculation is incorrect.\nSolution: Check the server's system time (`date` command). Ensure NTP is configured. Verify the `exp` value is a future Unix timestamp in seconds (not milliseconds).\n\n### CORS Errors on JWT Endpoint\nSymptom: Browser console shows `Access-Control-Allow-Origin` errors when fetching the JWT.\nCause: The backend JWT endpoint doesn't allow requests from the frontend's origin.\nSolution: Configure CORS on the JWT endpoint to allow the frontend origin. For Express: `cors({ origin: 'https:\u002F\u002Fyour-app.com', credentials: true })`. For other frameworks, add the appropriate CORS headers.\n\n## Single-Page App (SPA) Route Changes\n\nIn SPAs, call `Intercom('update')` after each client-side route change. See `references\u002Fframework-guides.md` for framework-specific placement (React Router, Next.js, Vue Router, Angular, Ember).\n\n## Third-Party Integrations\n\nIntercom also supports code-free installation via WordPress, Shopify, Google Tag Manager, and Segment. Direct users to the [Messenger install page](https:\u002F\u002Fapp.intercom.com\u002Fa\u002Fapps\u002F_\u002Fsettings\u002Fchannels\u002Fmessenger\u002Finstall) for setup instructions.\n\n## Verifying the Installation\n\nAfter generating the code, verify the installation before considering the task complete.\n\n**With browser automation** (Playwright MCP, playwright-cli, etc.): Navigate to the app, confirm `typeof window.Intercom === 'function'`, check the script tag for `widget.intercom.io\u002Fwidget\u002FWORKSPACE_ID`, and verify the JWT endpoint returns HTTP 200 with `{ \"token\": \"...\" }` for an authenticated user. Note: in headless\u002Fsandboxed environments, the widget iframe may not load due to CDN restrictions — this is not a code problem.\n\n**With Intercom MCP tools** (`search_contacts`): After a user logs in and loads a page with the Messenger, search for the user by name or `external_id`. Confirm the contact exists with `role: \"user\"` and the correct `external_id` — this proves the full chain from JWT signing to Intercom identity creation.\n\n**Manual verification** (instruct the user): Open the app in a browser, confirm the Messenger bubble appears, log in, click the bubble, send a test message, then check the [Intercom Inbox](https:\u002F\u002Fapp.intercom.com\u002Fa\u002Finbox\u002F_\u002Finbox\u002F) to confirm the conversation appears attributed to the correct user.\n\n## Post-Installation: Enforce JWT Authentication\n\nAfter the code is deployed, the user must enable and enforce identity verification in Intercom. Direct them to complete these steps:\n\n1. Go to the [Messenger Security page](https:\u002F\u002Fapp.intercom.com\u002Fa\u002Fapps\u002F_\u002Fsettings\u002Fchannels\u002Fmessenger\u002Fsecurity)\n2. **Enable Identity Verification** if not already enabled — this activates JWT-based authentication for the Messenger\n3. **Enforce Identity Verification** — once enabled and confirmed working, switch to \"Enforced\" mode so that unauthenticated Messenger sessions are rejected\n4. **Mark identifying attributes as protected** — on the same page, mark attributes like email, phone, and account IDs as protected so only server-signed JWTs can set them\n\nThis is a critical step. Without enforcement, the JWT signing is optional and users can still be impersonated via the browser console. Enforcement ensures only server-signed identities are accepted.\n\n## Insecure Installation (Only If Explicitly Requested)\n\nIf the user explicitly asks for an \"insecure installation\" (no JWT, no identity verification), provide the basic snippet that passes user attributes directly in `intercomSettings` without server-side signing:\n\n```html\n\u003Cscript>\n  window.intercomSettings = {\n    app_id: \"YOUR_WORKSPACE_ID\",\n    name: \"Jane Doe\",\n    email: \"jane@example.com\",\n    created_at: 1312182000\n  };\n\u003C\u002Fscript>\n\u003Cscript>\n  (function(){var w=window;var ic=w.Intercom;if(typeof ic===\"function\"){ic('reattach_activator');ic('update',w.intercomSettings);}else{var d=document;var i=function(){i.c(arguments);};i.q=[];i.c=function(args){i.q.push(args);};w.Intercom=i;var l=function(){var s=d.createElement('script');s.type='text\u002Fjavascript';s.async=true;s.src='https:\u002F\u002Fwidget.intercom.io\u002Fwidget\u002FYOUR_WORKSPACE_ID';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);};if(document.readyState==='complete'){l();}else if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})();\n\u003C\u002Fscript>\n```\n\nWarn the user that this is insecure: anyone can impersonate any user by modifying the `email` or `name` values in the browser console. Recommend switching to JWT-based authentication for production use.\n",{"name":5,"license":15,"description":24,"argument-hint":25,"disable-model-invocation":26},"Install the Intercom Messenger on a website or web application with secure JWT-based identity verification. Generates backend and frontend code for React, Next.js, Vue.js, Angular, Ember, and plain JavaScript. Supports Node.js, Python (Flask\u002FDjango), PHP, and Ruby backends. Use when the user asks to \"install Intercom\", \"add the Intercom Messenger\", \"set up Intercom chat widget\", \"add customer chat to my website\", or \"integrate Intercom\".\n","[framework]",true,"main","9836d94e88404aabb682086405c2aa9cba7657ac","plugins\u002Fintercom\u002Fskills\u002Finstall-messenger",156,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace","https:\u002F\u002Fgithub.com\u002FCognitionAI","https:\u002F\u002Fcognition.ai\u002F","Makers of Devin, the AI software engineer.","2026-11-13 07:08:23",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":26},[38,41,44],{"tool":39,"command":40},"npx","npx skills add CognitionAI\u002Fdevin-marketplace --skill install-messenger",{"tool":42,"command":43},"bunx","bunx skills add CognitionAI\u002Fdevin-marketplace --skill install-messenger",{"tool":45,"command":46},"pnpm","pnpm dlx skills add CognitionAI\u002Fdevin-marketplace --skill install-messenger","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fintercom\u002Fskills\u002Finstall-messenger\u002FSKILL.md",[49,55],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fbackend-examples.md","REFERENCE","参考文档",2915,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fintercom\u002Fskills\u002Finstall-messenger\u002Freferences\u002Fbackend-examples.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fframework-guides.md",13781,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fintercom\u002Fskills\u002Finstall-messenger\u002Freferences\u002Fframework-guides.md",[60,66,73,79,86,93],{"skillNo":61,"name":62,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7BYC4AJGM98P2G9JH7QS24Z","business-data","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fwindsor-ai\u002Fskills\u002Fbusiness-data\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7BYBZ0CD4CBCPZHRZ551BNK","workflow","Creates durable, resumable workflows using Vercel's Workflow SDK. Use when building workflows that need to survive restarts, pause for external events, retry on failure, or coordinate multi-step operations over time. Triggers on mentions of \"workflow\", \"durable functions\", \"resumable\", \"workflow sdk\", \"queue\", \"event\", \"push\", \"subscribe\", or step-based orchestration.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fworkflow\u002Fupstream\u002FSKILL.md",[],[],{"skillNo":74,"name":68,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7BYB1XSZHKHD8JZTQJ62JN0","Vercel Workflow SDK expert guidance. Use when building durable workflows, long-running tasks, API routes or agents that need pause\u002Fresume, retries, step-based execution, or crash-safe orchestration with Vercel Workflow.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fworkflow\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7BYASGMK935J33E21N5WTW0","verification","Full-story verification — infers what the user is building, then verifies the complete flow end-to-end: browser → API → data → response. Triggers on dev server start and 'why isn't this working' signals.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fverification\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7BY9WJERKSKEH9HK6E71GW2","vercel-storage","Vercel storage expert guidance — Blob, Global Config (formerly Edge Config), and Marketplace storage (Neon Postgres, Upstash Redis). Use when choosing, configuring, or using data storage with Vercel applications.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-storage\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7BY9N034894YV2J9DCRZHYS","vercel-services","Configure and troubleshoot Vercel Services for multiple frontends and backends in one project. Use when composing a polyglot or multi-service application on one Vercel deployment; defining the `services` key, service-targeted rewrites, or service bindings in `vercel.json`; or running all services with `vercel dev`.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-services\u002FSKILL.md",[],[]]